You are on page 1of 13

Test Cases for Login Page

Test scenario: Verify on entering valid username and password to Login.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

login page be able to to login

login

User=
hassaannaeem426@g
2 Provide valid mail.com Credentials As Expected Pass

username can be entered

Password=
3 Provide valid 12345qwerty Credential can As Expected Pass

password be entered

4 Click on Login User logged User logged Pass

button successfully

User entered valid username and password.


User logged in successfully.
Test scenario: Verify on entering invalid username and password user cannot Login.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

login page be able to to login

login

2 Provide invalid User= ali Credentials As Expected Pass

username can be entered

3 Provide invalid Password= 12345 Credential can As Expected Pass

password be entered

4 Click on Login User logged User not Pass

button logged

successfully

Entered invalid username or password


Test scenario: Verify on entering invalid username and invalid password user cannot Login.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

login page be able to to login

login

2 Provide invalid User= hamza Credentials As Expected Pass

username can be entered

3 Provide invalid Password= 123 Credential can As Expected Pass

password be entered

4 Click on Login User logged User not Pass

button logged

successfully

Entered invalid username or password


Test scenario: Verify that validation message gets displayed in case user leaves username or password
field as blank.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

login page be able to to login

login

User=
hassaannaeem@gmail.
2 Provide valid com Credentials As Expected Pass

username can be entered

3 Provide valid Password= {not given} Credentials Credentials Fail

password can be entered were not

entered

4 Click on Login User logged User not Pass

button logged

successfully

User entered the valid username but forgot to enter password.


Test scenario: Verify Password field should be masked with asterisks (*****).

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

login page be able to to login

login

User=
hassaannaeem426@gm
2 Provide valid ail.com Credentials As Expected Pass

username can be entered

Password=
3 Provide valid 12345qwerty Credential can As Expected Pass

password be entered

4 Click on Login User logged User logged Pass

button successfully

Password field is masked with asterisks.


Test scenario: Verify on entering valid username and invalid password user cannot Login.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

login page be able to to login

login

User=
hassaannaeem426@gm
2 Provide valid ail.com Credentials As Expected Pass

username can be entered

3 Provide invalid Password= 1234567890 Credential can As Expected Pass

password be entered

4 Click on Login User logged User not Pass

button logged

successfully

User enter valid username and invalid password.


Test Cases for Registration
Test Scenario: Verify that the contact number field should contain only digits.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

registration be able to to register

page register

2 Provide User= Credentials As Expected Pass

username can be entered

3 Provide Contact no: asd Field should As Expected Pass

Contact have only

number digits.

4 Click on User should User is Pass

registration be able to registered

register successfully

User enter alphabets in contact number field.


Test Scenario: Verify that validation message gets displayed in case user leaves first name field as
blank.

Step Test Steps Test Data Expected Actual Status

Result Result (Pass/Fail)

1 Navigate to User should User is able Pass

registration be able to to register

page register

First name= (not


2 Provide given) Display error As Expected Pass

First name message

Email=abdulmanan@e
3 Provide Email ngineer.com Email can be As Expected Pass

entered

4 Click on User not User is not Pass

Registration registered registered

User forgot to enter in the field of first name, a validation message is displayed.
Test Scenario: Verify that validation message gets displayed in case user leaves password field as
blank.

Step Test Steps Test Data Expected Actual Status

Result Result (Pass/Fail)

1 Navigate to User should User is able Pass

registration be able to to register

page register

Username= abdul
2 Provide manan Credentials As Expected Pass

username can be

entered

3 Provide Password: {not given} Display error As Expected Pass

Password message

4 Click on User should User is not Fail

register be able to registered

register successfully

User forgot to enter the password in the field and a validation message is displayed.
Test Scenario: Verify that validation message gets displayed in case user leaves all the fields as blank.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

registration be able to to register

page register

2 Provide User= {not given} Display error As expected Pass

username message

3 Provide Contact no: {not given} Display error As expected Pass

Contact message

number

4 Provide Password: {not given} Display error As expected Pass

Password message

5 Click on User is not As expected Pass

registration registered

Messages are displayed when user leaves all the fields as blank.
Test Scenario: Verify that the fields contain both upper and lower case.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able Pass

registration be able to to register

page register

Username= Hassaan
2 Provide Naeem Field contain As expected Pass

username both upper

and lower

case

3 Provide Email Email: Field contain As expected Pass

Hassaannaeem426@g
mail.com both upper

and lower

case

4 Click on User User Pass

registration registered registered


Test Cases for Ordering Pizza
Test Scenario: Verify that the field contain only number and can be empty.

Step Test Steps Test Data Expected Actual Result Status

Result (Pass/Fail)

1 Navigate to User should User is able to Pass

Pizzas menu be able to Oder the pizza

Order the pizza successfully

3 Click on User User Pass

checkout registered registered

successfully

You might also like