Sunteți pe pagina 1din 8

TEST CASE FOR WEB APPLICATION PREPARED BY DATE

Reusable Test Cases for Web based Applicatio s


Lo!i Scree 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 . There exists an !" button T# SL No Test Case 1 T+pe some characters in the username field as well as password field 2 -nter spaces in user name and password field and clic, on .Submit/ -nter special s+mbols li,e 01 21 31 41 51 61 7 in the username and password fields $ 8hec, for case sensiti9eness of .User name/ and .Password/ % -nter 9alid Username and 9alid Password. Then clic, on the !" button & -nter 9alid Username and in9alid Password. Then clic, on the !" button ' -nter 9alid in9alid Username and 9alid Password. Then clic, on the !" button ( -nter 9alid in9alid Username and in9alid Password. Then clic, on the !" button ) Lea9e the Username and Password fields blan,. Then clic, on the !" button 1* -nter 9alid Username and lea9e the Password field blan,. Then clic, on the !" button 11 -nter 9alid Username and 9alid Password. Then clic, on the 8ancel button Securit" The following test cases can be used for the general securit+ chec,ing that needs to be done for Web Applications SL No 1 2 Test Case T+pe the U:L of the ;ome page in the address bar of the browser and tr+ to access the application b+passing the Login page Login into the application b+ gi9ing 9alid Username and Password. Then logout from the application. Then clic, on the <ac, button of the browser 8hec, whether the password field is stored in encr+pted format in the database

For!ot Pass#ord The following test cases can be used for the #orgot Password screen The following assumptions are made #orgot password has a =uestion field and answer field an o, button and cancel button. SL No Test Case 1 >erif+ the answer #ields 2 >erif+ the =uestion field.

>erif+ the o, button $ % & Select one =uestion and enter correct answer. 8lic, on !" button Select one =uestion and enter wrong answer.8lic, on !" button 8lic, on cancel button.

C$a !e Pass#ord The following test cases can be used for the 8hange Password screen The following assumptions are made 8hange password has three edit fields and o, and cancel button -dit #ields are the following? !ld password @ew password 8onfirm new password SL No 1 2 Test Case T+pe in all edit fields 8lic, on !" button without entering an+thing in the edit fields 8lic, on 8ancel button without entering an+thing in the edit fields -nter the old password1 and enter the new password in new password field and confirm new password field. 8lic, on o, button -nter old password and new password. 8lic, on o, button. -nter old password and confirm new password. 8lic, on o, button. -nter new password and confirm new password. 8lic, on o, button. -nter incorrect old password with both the other two fields ha9ing new password.8lic, on o, button -nter old password and new password in new password field and some other 9alue in confirm password field.8lic, on o, button.

$ % & ' ( )

1* 11 12 1 1$ 1% 1&

-nter the old password1 and enter the new password in new password field and confirm new password field. 8lic, on 8ancel button -nter the old password1 and enter the new password in new password field and confirm new password field. 8lic, on 8ancel button -nter old password and new password. 8lic, on 8ancel button. -nter old password and confirm new password.8lic, on 8ancel button. -nter new password and confirm new password . 8lic, on 8ancel button. -nter incorrect old password with both the other two fields ha9ing new password. 8lic, on 8ancel button. -nter old password and new password in new password field and some other thing in confirm password field. 8lic, on 8ancel button.

%&I Testi ! The following test cases can be used for the AUB Testing SL No 1 2 Test Case 8hec, the title of the internet explorer window. 8hec, the siCe of buttons in all windows. 8hec, the siCe of pop up screen. 8hec, the placement of all the controls. 8hec, the color in all window. 8hec, the font and siCe of font in different pages

$ % &

%e eral Bro#ser related testi ! The following test cases can be used for the general <rowser related testing SL No 1 2 Test Case 8hec, b+ default .<ac,/ button and .#orward/ buttons are disabled Login to the site and chec, for <ac, button Login to the site and clic, on .:efresh/ button on the browser 8lic, on .<ac,/ button on the browser 5other than ;ome Page6 8lic, on .#orward/ button on the browser While doing an+ of the functions w.r.t application clic, on browser .Stop/ button Bn the site1 chec, if there an+ lin, appears1 if there is an+1 right clic, on that lin, and select .!pen in a @ew Window/ Bn the site chec, if there an+ lin, appears1 if there is an+1 right clic, on that lin, and select .!pen Lin,/

$ % & ' (

) 1* 11

8hec, for the expiration of the session. 8hec, the functionalities in all the browsers li,e different 9ersions of B-1 different 9ersions of @etscape etcD 8lic, on the .<ac,/ button pro9ided in the application

Lo!out The following test cases can be used for the Logout functionalit+ SL No 1 2 Test Case 8lic, on the lin, pro9ided for logout After logging out clic, on bac, button in the browser

ed Applicatio s

Re'uired Output The characters t+ped in user name field should be 9isible in normal alphanumeric format and those in password field should be mas,ed with E Appropriate error message should be displa+ed Appropriate error message should be displa+ed to the user. .User name/ should be case insensiti9e and .Password/ should be case sensiti9e The ;ome page of the application should be displa+ed A message FBn9alid PasswordF should be displa+ed and the cursor should wait in the Password field A message FBn9alid UsernameF should be displa+ed and the cursor should wait in the Username field A message FBn9alid UsernameF should be displa+ed and the cursor should wait in the Username field A message FUsername should not be blan,F should be displa+ed A message FPassword should not be blan,F should be displa+ed The Username and Password fields should be cleared and the cursor should wait in the Username filed

or Web Applications Re'uired Output The Login page of the application page should be displa+ed and the user should not be allowed to access the application directl+ The Login page should be displa+ed and user should not be allowed to 9iew the pre9ious page The password should be stored in the database in encr+pted format

Re'uired Output The answer field should be blan,. The =uestion field should contain =uestion which the user entered while registering else the =uestion field should be blan,. Bf one or more =uestion are there it should be listed in a combo box. The o, button should be enabled onl+ when both the =uestion and answer field contain some text. The password should be displa+ed Gessage indicating that answer is wrong should be shown. The #orgot password screen should be closed

Re'uired Output The t+ped item should be in asteris,. -rror message should pop up sa+ing that all fields are blan,. The change password screen should close. A message indicating that password changed should pop up. An error message should pop up sa+ing that confirm password should not be blan, An error message should pop up sa+ing that new password should not be blan, An error message should pop up sa+ing that old password should not be blan, An error message should pop up sa+ing that old password is wrong. An error message should pop up sa+ing 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.

Re'uired Output The name should be meaningful and should reflect the action done in window. All the buttons should be of same siCe. All the pop up screens should be of appropriate siCe according to the action it is doing. All controls should be properl+ placed. The color should be uniform. The font and siCe of font should be same.

Re'uired Output Bt should be disabled Bt should be disabled The page should get refreshed Bt should go bac, to the pre9ious page Bt should go to the next page 5onl+ for those pages for which are browsed alread+6 Bt should stop that process The corresponding lin, should be displa+ed in new window The corresponding page for the lin, should be displa+ed.

An opened session should be ,ept as open for preH defined time1 the session should not get expired in between some operations are being performed Bn all the 9ersions of the browsers the functionalities1 fonts and images should be same. Bt should ta,e to the pre9ious page

Re'uired Output Bt should ta,e to the login screen Bt should not go to the pre9ious page

S-ar putea să vă placă și