Wednesday, August 6, 2008

Cookies Testing

Following are some possible test cases to test the cookies. There are more cases are possible. add them and revert back with them

Test1
-
----------------------------------------------------------------------------------------------
Purpose:
Test for Disable cookies

Prerequisite: Close all browsers, delete all previously written cookies before performing this test
Steps action: Disable the cookies on browser and open the application.
Expected Result: The major functionalities should not work properly. Appropriate message like “For smooth functioning of this site make sure that cookies are enabled on your browser” should be displayed. There should not be any page crash

Test2-
------------------------------------------------------------------------------------------------
Purpose:
Test for Delete cookies

Prerequisite: Close all browsers, delete all previously written cookies before performing this test
Steps action: Open site/page and allow cookies to be written and then delete these cookies and then navigate application.
Expected Result:No crash should be there. Site should function well.

Test3-
-------------------------------------------------------------------------------------------------
Purpose:
Test for Corrupt cookies

Prerequisite: Close all browsers, delete all previously written cookies before performing this test
Steps action: Allow cookies to be written and edit them in note pad by changing the parameters by some vague values. eg. Alter the name or its expiry date. Now navigates the site.
Expected Result:

Test4-
-----------------------------------------------------------------------------------------------
Purpose:
Test Session cookies

Prerequisite: Close all browsers, delete all previously written cookies before performing this test
Steps action: allow cookies to be written and then close the browser. Now check for stored cookies
Expected Result: There should be no any cookie stored.

these are some possible points to keep in mind while testing for cookies. Revert back with your feedback. Thanks


No comments :

Post a Comment