Series: Subject: Topic:
Question: 69 of 115

What is Cookie Testing and How it will be done?

Asked by: vmahi9 | Member Since Apr-2006 | Asked on: Nov 27th, 2006

View all questions by vmahi9   View all answers by vmahi9

Showing Answers 1 - 1 of 1 Answers

Answered On : Dec 4th, 2006

Different type of Cookie testings

1. Disabling Cookies- This is probably the easiest area of cookie testing. What happens to the Web site if all cookies are disabled? Start by closing all instances of your browser and deleting all cookies from your PC set by the site under test. The cookie file is kept open by the browser while its running, so you must close the browser to delete the cookies. Closing the browser also removes any per-session cookies in memory.Disable all cookies and attempt to use the sites major features and functions. Most of the time, you will find that these sites wont work when cookies are disabled. This isnt a bug, but rather a fact of life: disabling cookies on a site that requires cookies (of course!) disables the sites functionality.

2. Selectively Rejecting Cookies- What happens to the site if some cookies are accepted and others are rejected? Start by deleting all cookies from your PC set by the site under test and set your browsers cookie option to prompt you whenever a Web site attempts to set a cookie. Exercise the sites major functions. You will be prompted for each and every cookie the site attempts to set. Accept some and reject others. (Analyze site cookie usage in advance and draw up a test plan detailing what cookies to reject/accept for each function.) How does the site hold up under this selective cookie rejection? As above, does the Web server detect that certain cookies are being rejected and respond with an appropriate message? Or does the site malfunction, crash, corrupt data, or misbehave in other ways?

3. Corrupting Cookies- Along the way, as cookies are created and modified, try things like

        a. Altering the data in the persistent cookies. Since the per-session cookies are stored only in memory, they arent readily accessible for editing.

         b. Selectively deleting cookies. Allow the cookie to be written (or modified), perform several more actions on the site, then delete that cookie. Continue using the site. What happens? Is it easy to recover? Any data loss or corrupted? 

4. Cookie Encryption - While investigating cookie usage on the site youre testing, pay particular attention to the meaning of the cookie data. Sensitive information like usernames and passwords should NOT be stored in plain text for all the world to read; this data should be encrypted before it is sent to your computer.

Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.