You are on page 1of 5

TEST CASES - List of Conditions

Project: BookMyDoc Program/System: J2EE, MySQL, JBOSS Server


S No. Conditions Expected Result Observed Result

1. ADMIN LOGIN SCREEN

1.1 If both the entries i.e. user id and password are empty Error message will occur “Please Enter your
Login Credentials”

1.2 If user ID is incorrect Error message will occur “Invalid Login


Credentials”
Error message will occur “Invalid Login
1.3 If password is incorrect Credentials”

1.4 If user id is specified but password is not specified Error message will occur “Please
enter your Login Credentials”

Error message will occur “Please


1.5 If password is specified but user id is not specified enter your Login Credentials”

1.6 If user id and password are incorrect Error message will occur “Invalid Login
Credentials”
1.7 If user id specified is not numeric
Error message will occur
Employee no. should be Numeric
1.8 If both the fields are correct
Login is successful and main
2. screen will appear
PATIENT REGISTRATION

2.1 If username is null.


Error message will occur
“User name cannot be blank.”

2.2 If password is null.


Error message will occur
“”Password cannot be blank.”

2.3 If confirmed password is not same as


Error message will occur
the password.
“Confirmed password must be same as
password”
2.4 If age is empty
Error message will occur
“age cannot be blank.”
2.5 If email id is null Error message will occur
“Email Id cannot be blank.”

2.8 If above all the fields are valid and filled Display Thanks for Registration

3 “
DOCTOR REGISTRATION
3.1 If username is null.
Error message will occur
“User name cannot be blank.”
3.2 If password is null. Error message will occur
“”Password cannot be blank.”

3.3 If confirmed password is not same as Error message will occur


the password. “Confirmed password must be same as
password”

If age is empty Error message will occur


3.4
“age cannot be blank.”
3.5 Error message will occur
If email id is null
“Email Id cannot be blank.”

3.6 If pin is null Error message will occur


“Pin cannot be blank.”

3.7 Display Thanks for Registration


If above all the fields are valid and filled

4
DOCTOR LOGIN SCREEN
4.1
If both the entries i.e. user id and password are empty
Error message will occur “Please Enter your
Login Credentials”
4.2
If user ID is incorrect
Error message will occur “ Invalid Login
4.3 Credentials”
If password is incorrect Error message will occur “Invalid Login
Credentials”
4.4
If user id is specified but password is not specified
Error message will occur “Please
enter your Login Credentials”
4.5
If password is specified but user id is not specified Error message will occur “Please
enter your Login Credentials”

4.6
If user id and password are incorrect Error message will occur “Invalid Login
Credentials”
4.7
If user id specified is not numeric
Error message will occur
Employee no. should be Numeric
4.8
If both the fields are correct Login is successful and main
screen will appear

5
PATIENT LOGIN SCREEN
5.1
If both the entries i.e. user id and password are empty
Error message will occur “Please Enter your
Login Credentials”
5.2
If user ID is incorrect Error message will occur “
5.3 Invalid Login Credentials”
If password is incorrect
Error message will occur “Invalid Login
Credentials”
5.4
If user id is specified but password is not specified
Error message will occur “Please
enter your Login Credentials”
5.5
If password is specified but user id is not specified

Error message will occur “Please


5.6 enter your Login Credentials”
If user id and password are incorrect

5.7 Error message will occur “Invalid Login


If user id specified is not numeric Credentials”
Error message will occur
Employee no. should be Numeric
5.8
If both the fields are correct
Login is successful and main
screen will appear

You might also like