5. CLASS DIAGRAM
In software engineering, a class diagram is a type of static
structure diagram that describes the structure of a system by
showing the system's classes, their attributes, methods, and the
relationships among objects.
4/18/2017 5
7. A test case is a set of conditions or variables under which a tester will
determine whether a system under test satisfies requirements or works
correctly.
The process of developing test cases can also help find problems in
the requirements or design of an application.
4/18/2017 7
Test Case
8. 4/18/2017 8
TEST CASE 1- ADMIN REGISTRATION
Test
Id
Test Scenario Test Steps Test Data Expected Result Actual Result Pass/Fail
TC-01 Registration by admin valid
email address.
1. Go to site
2. Enter user name
3. Enter email
4. Enter password
5. Check Submit
Admin name =
“adminname”
admin email = “valid email”
Password = “pass”
Admin should register
into Application
Admin can
register into
application
Pass
TC-02 Registration by admin invalid
email address.
1. Go to site
2. Enter user name
3. Enter email
4. Enter password
5. Check Submit
Admin name =
“adminname”
Admin email = “invalid
email”
Password = “pass”
Admin should not register
into application
Admin can’t
register into
application
pass
9. 4/18/2017 9
TEST CASE 2- USER REGISTRATION
Test
Id
Test Scenario Test Steps Test Data Expected Result Actual Result Pass/Fail
TC-01 Registration by user valid email
address.
1. Go to site
2. Enter user name
3. Enter email
4. Enter password
5. Check Submit
User name = “username”
User email = “valid email”
Password = “pass”
User should register into
Application
User can register
into application
Pass
TC-02 Registration by user invalid email
address.
1. Go to site
2. Enter user name
3. Enter email
4. Enter password
5. Check Submit
User name = “username”
User email = “invalid email”
Password = “pass”
User should not register
into application
User can’t
register into
application
pass
10. TEST CASE 3 – USER LOGIN
4/18/2017 10
Test
Id
Test Scenario Test Steps Test Data Expected Result Actual Result Pass/Fail
TC-01 Check customer login with valid
data
1. Go to site
2. Enter user Id
3. Enter password
4. Check Submit
User id = “username”
Password = “pass”
User should login into
Application
User can login
into application
Pass
TC-02 Check customer login with
invalid data
1. Go to site
2. Enter user Id
3. Enter password
4. Check Submit
User id = “userName”
Password = “passw”
User should not login into
application
User can’t login
into application
pass
11. 4/18/2017 11
TEST CASE 4- SEARCH AND BOOK RESERVATION
Test
Id
Test Scenario Test Steps Test Data Expected Result Actual Result Pass/Fail
TC-01 Search and buy bus ticket by
valid road name and bus name.
1. Go to site
2. Enter user name
3. Enter email
4. Enter password
5. Check Submit
Search the bus ticket for
travelling by valid road
name and bus name.
User should get the right
bus and road name.
User get the right
bus and road
name.
Pass
TC-02 Search and buy bus ticket by
invalid road name and bus
name.
1. Go to site
2. Enter user name
3. Enter email
4. Enter password
Check Submit
Search the bus ticket for
travelling by invalid road
name and bus name.
User should not get the
right bus and road name.
User can’t get the
right bus and road
name
pass