TEST CASE FOR WEB APPLICATION PREPARED BY DATE
Reusable Test Cases for Web based Applications Login Screen The following test cases are for the Login Screen in Web Applications The following assumptions are made 1. There exists a Username field which is a text box 2. There exists a Password field which is a text box 3. There exists an OK button TF SL No
Test Case 1 Type some characters in the username field as well as password field 2 Enter spaces in user name and password field and click on ‘Submit’ 3 Enter special symbols like &, $, #, @, (, ), ! in the username and password fields 4 Check for case sensitiveness of ‘User name’ and ‘Password’ 5 Enter valid Username and valid Password. Then click on the OK button 6 Enter valid Username and invalid Password. Then click on the OK button 7 Enter valid invalid Username and valid Password. Then click on the OK button 8 Enter valid invalid Username and invalid Password. Then click on the OK button 9 Leave the Username and Password fields blank. Then click on the OK button 10 Enter valid Username and leave the Password field blank. Then click on the OK button 11 Enter valid Username and valid Password. Then click on the Cancel button
Security The following test cases can be used for the general security checking that needs to be done for Web Applications SL No 1 2 3
Test Case Type the URL of the Home page in the address bar of the browser and try to access the application bypassing the Login page Login into the application by giving valid Username and Password. Then logout from the application. Then click on the Back button of the browser Check whether the password field is stored in encrypted format in the database
Forgot Password The following test cases can be used for the Forgot Password screen The following assumptions are made Forgot password has a question field and answer field an ok button and cancel button. SL No Test Case 1 Verify the answer Fields 2
Verify the question field.
3
Verify the ok button
4
Select one question and enter correct answer. Click on OK button Select one question and enter wrong answer.Click on OK button
5 6
Click on cancel button.
Change Password The following test cases can be used for the Change Password screen The following assumptions are made Change password has three edit fields and ok and cancel button Edit Fields are the following: Old password New password Confirm new password SL No 1 2 3 4 5 6 7 8 9
Test Case Type in all edit fields Click on OK button without entering anything in the edit fields Click on Cancel button without entering anything in the edit fields Enter the old password, and enter the new password in new password field and confirm new password field. Click on ok button Enter old password and new password. Click on ok button. Enter old password and confirm new password. Click on ok button. Enter new password and confirm new password. Click on ok button. Enter incorrect old password with both the other two fields having new password.Click on ok button Enter old password and new password in new password field and some other value in confirm password field.Click on ok button.
10 11 12 13 14 15 16
Enter the old password, and enter the new password in new password field and confirm new password field. Click on Cancel button Enter the old password, and enter the new password in new password field and confirm new password field. Click on Cancel button Enter old password and new password. Click on Cancel button. Enter old password and confirm new password.Click on Cancel button. Enter new password and confirm new password . Click on Cancel button. Enter incorrect old password with both the other two fields having new password. Click on Cancel button. Enter old password and new password in new password field and some other thing in confirm password field. Click on Cancel button.
GUI Testing The following test cases can be used for the GUI Testing SL No 1
Test Case Check the title of the internet explorer window.
2 3
Check the size of buttons in all windows. Check the size of pop up screen.
4 5 6
Check the placement of all the controls. Check the color in all window. Check the font and size of font in different pages
General Browser related testing The following test cases can be used for the general Browser related testing SL No 1 2 3 4 5 6 7 8
Test Case Check by default ‘Back’ button and ‘Forward’ buttons are disabled Login to the site and check for Back button Login to the site and click on ‘Refresh’ button on the browser Click on ‘Back’ button on the browser (other than Home Page) Click on ‘Forward’ button on the browser While doing any of the functions w.r.t application click on browser ‘Stop’ button In the site, check if there any link appears, if there is any, right click on that link and select ‘Open in a New Window’ In the site check if there any link appears, if there is any, right click on that link and select ‘Open Link’
9
Check for the expiration of the session.
10
Check the functionalities in all the browsers like different versions of IE, different versions of Netscape etc… Click on the ‘Back’ button provided in the application
11
Logout The following test cases can be used for the Logout functionality SL No 1 2
Test Case Click on the link provided for logout After logging out click on back button in the browser
ed Applications
Required Output The characters typed in user name field should be visible in normal alphanumeric format and those in password field should be masked with * Appropriate error message should be displayed Appropriate error message should be displayed to the user. ‘User name’ should be case insensitive and ‘Password’ should be case sensitive The Home page of the application should be displayed A message "Invalid Password" should be displayed and the cursor should wait in the Password field A message "Invalid Username" should be displayed and the cursor should wait in the Username field A message "Invalid Username" should be displayed and the cursor should wait in the Username field A message "Username should not be blank" should be displayed A message "Password should not be blank" should be displayed The Username and Password fields should be cleared and the cursor should wait in the Username filed
or Web Applications Required Output The Login page of the application page should be displayed and the user should not be allowed to access the application directly The Login page should be displayed and user should not be allowed to view the previous page The password should be stored in the database in encrypted format
Required Output The answer field should be blank. The question field should contain question which the user entered while registering else the question field should be blank. If one or more question are there it should be listed in a combo box. The ok button should be enabled only when both the question and answer field contain some text. The password should be displayed Message indicating that answer is wrong should be shown. The Forgot password screen should be closed
Required Output The typed item should be in asterisk. Error message should pop up saying that all fields are blank. The change password screen should close. A message indicating that password changed should pop up. An error message should pop up saying that confirm password should not be blank An error message should pop up saying that new password should not be blank An error message should pop up saying that old password should not be blank An error message should pop up saying that old password is wrong. An error message should pop up saying that the new password in confirm password is different.
The old password should be retained. The change password screen should close. The change password screen should close. The change password screen should close. The change password screen should close. The change password screen should close. The change password screen should close.
Required Output The name should be meaningful and should reflect the action done in window. All the buttons should be of same size. All the pop up screens should be of appropriate size according to the action it is doing. All controls should be properly placed. The color should be uniform. The font and size of font should be same.
Required Output It should be disabled It should be disabled The page should get refreshed It should go back to the previous page It should go to the next page (only for those pages for which are browsed already) It should stop that process The corresponding link should be displayed in new window The corresponding page for the link should be displayed.
An opened session should be kept as open for predefined time, the session should not get expired in between some operations are being performed In all the versions of the browsers the functionalities, fonts and images should be same. It should take to the previous page
Required Output It should take to the login screen It should not go to the previous page