Blog

Cookies Testing

Cookies Testing

Table of Contents

What is a Cookie

Cookies are text files with small pieces of data — like a username and password — that are used to identify your computer as you use a network. Specific cookies are used to identify specific users and improve their web browsing experience. Data stored in a cookie is created by the server upon your connection. This data is labeled with an ID unique to you and your computer. When the cookie is exchanged between your computer and the network server, the server reads the ID and knows what information to specifically serve you.

Cookies Test Cases

TC ID

 PRIORITY

TEST CASES/STEPS

EXP RESULT

TC_COOKIES_01

P3

Objective: To validate if the application supports cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. Observe if the application prompts the usage of cookies

The application supports cookies usage, if a prompt is displayed that says something like “For better user experience, this website uses cookies”

TC_COOKIES_02

P3

Objective: To validate the options available when the application uses cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser(s)
2. Access the application functionalites through multiple ways of navigations
3. Observe the options available when the application prompts the usage of cookies

A minimum of 2-3 options has to be displayed to the user

(i) Accept Cookies
(ii) More Information/Settings
(iii) Reject Cookies

TC_COOKIES_03

P3

Objective: To validate if the application uses cookies on all supported browsers

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on all the supported browser(s)
2. Access the application functionalites through multiple ways of navigations
3. Observe the options available when the application prompts the usage of cookies

A minimum of 2-3 options has to be displayed to the user on all supported browsers

(i) Accept Cookies
(ii) More Information/Settings
(iii) Reject Cookies

TC_COOKIES_04

P3

Objective: To validate the application behavior when user accepts cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Observe the application behavior

(i) The user has to be able to click successfully on ‘Accept Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be downloaded to the browser folder

TC_COOKIES_05

P3

Objective: To validate the application behavior when user rejects cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Reject Cookies’
4. Observe the application behavior

(i) The user has to be able to click successfully on ‘Reject Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) should not be downloaded to the browser folder

TC_COOKIES_06

P3

Objective: To validate the application behavior when user clicks on ‘Settings/Cookie Policy’ button when cookies prompt is displayed

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Settings/Cookie Policy’
4. Observe the application behavior

(i) The user has to be able to click successfully on ‘Settings/Cookie Policy’

(ii) The Cookie Privacy policy details has to be clearly displayed to the user

(iii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iv) The cookie(s) should not be downloaded to the browser folder

TC_COOKIES_07

P3

Objective: To validate if the application has successfully downloaded the cookies on the client side, when the user clicks on ‘Accept Cookies’

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Validate if the application has downloaded the cookies

The cookies has to be downloaded to the below path:

C:\Users\username\AppData\Local\Microsoft\Windows\INetCookies

OR

Click on Start –> Run –> Type shell:cookies  –> Click on OK button

This will open Cookies folder on the computer/client side

TC_COOKIES_08

P3

Objective: To ensure that the application doesn’t download the cookies on the client side, when the user clicks on ‘Reject Cookies’

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Rejct Cookies’
4. Validate if the application has not downloaded the cookies

The cookies should not be downloaded to the below path:

C:\Users\username\AppData\Local\Microsoft\Windows\INetCookies

OR

Click on Start –> Run –> Type shell:cookies  –> Click on OK button

This will open Cookies folder on the computer/client side

TC_COOKIES_09

P3

Objective: To validate the schema/structure of a downloaded cookie

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Validate the schema/structure of downloaded cookie

1. Open the cookie file from the Cookies folder

2. The below attributes has to be there for the cookie file

(i) Name
(ii) Value
(iii) HttpOnly
(iv) Secure
(v) Domain
(vi) Path
(vii) Max-Age
(viii) Expires
(ix) Same Site

TC_COOKIES_10

P3

Objective: To validate if the cookie file stores information in encrypted format which contains sensitive information

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Validate the schema/structure of downloaded cookie, which contains sensitive information

1. Open the cookie file from the Cookies folder

2. The cookie file should not store any user personal/sensitive information

3. The below attributes has to be stored in encrypted format, when sensitive information is stored (as per design/development done)

(i) Name
(ii) Value

TC_COOKIES_11

P3

Objective: To validate if the application over implements/uses the cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, start the counting of prompts
4. Validate the number of times, the cookies usage is prompted

The application under test should not download/over use of cookies, as the public traffic/foot print will decrease due to reduced usability

TC_COOKIES_12

P3

Objective: To validate if the application works as expected when the user accepts few cookies only and rejects other cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. When the application prompts the usage of cookies at a later time, click on ‘Reject Cookies’
6. Observe the application behavior

(i) The user has to be able to click successfully on ‘Accept Cookies’ and ‘Reject Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be downloaded to the browser folder

TC_COOKIES_13

P3

Objective: To validate if the application works as expected when the user accepts the cookies and later deletes the downloaded cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Navigate to Cookies folder and delete the downloaded cookies
6. Access the application functionalites through multiple ways of navigations
7. Observe the application behavior

(i) The user has to be able to click successfully on ‘Accept Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be successfully deleted from the client side

TC_COOKIES_14

P3

Objective: To validate if the application works as expected when the user accepts the cookies and later renames the downloaded cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Navigate to Cookies folder and renames the downloaded cookies
6. Access the application functionalites through multiple ways of navigations
7. Observe the application behavior

(i) The user has to be able to click successfully on ‘Accept Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be successfully renamed from the client side

TC_COOKIES_15

P3

Objective: To validate if the application works as expected when the user accepts the cookies on browser1 (Chrome) and later uses the application in another browser2 (Other than Chrome)

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser1
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Now, access the application functionalites through multiple ways of navigations in another browser2
5. Observe the application behavior

(i) The user has to be able to click successfully on ‘Accept Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be successfully dowloaded and reused on all browsers

TC_COOKIES_16

P3

Objective: To validate if the application works as expected when the user disables the cookies during application navigation

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Disable the cookies feature in the browser
6. Access the application functionalites through multiple ways of navigations
7. Observe the application behavior

The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

TC_COOKIES_17

P3

Objective: To validate the application behavior when the user disables the cookies and does the application navigation

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Disable the cookies feature in the browser
6. Access the application functionalites through multiple ways of navigations
7. Observe the application behavior

The application has to prompt the user, to enable cookies for a better experience

TC_COOKIES_18

P3

Objective: To validate if the application works as expected when the user tampers/edits/corrupts the cookies during application navigation

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Tamper/Edit/Corrupt the cookie file in a notepad editor
6. Now, access the application functionalites through multiple ways of navigations
7. Observe the application behavior

The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

TC_COOKIES_19

P3

Objective: To validate if the application works as expected when the user accepts the cookies and later deletes few of the downloaded cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Navigate to Cookies folder and delete few of the downloaded cookies
6. Access the application functionalites through multiple ways of navigations
7. Observe the application behavior

(i) The user has to be able to click successfully on ‘Accept Cookies’

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be successfully deleted from the client side

TC_COOKIES_20

P3

Objective: To validate if the application works as expected when the user tampers/edits/corrupts the cookies to another domain name, during application navigation

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Tamper/Edit/Corrupt the cookie file in a notepad editor to change the domain name (eg. FROM example.com TO tryme.com)
6. Now, access the application functionalites through multiple ways of navigations
7. Observe the application behavior

1. The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs, as if the user is the first time visitor the website

2. A new cookie may be downloaded depending upon the user navigational areas

TC_COOKIES_21

P3

Objective: To validate if the application works as expected when the user tampers/edits/corrupts the cookies to another path, during application navigation

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Access the application functionalites through multiple ways of navigations
5. Tamper/Edit/Corrupt the cookie file in a notepad editor to change the path (eg. FROM / (root) TO /sub/pages)
6. Now, access the application functionalites through multiple ways of navigations
7. Observe the application behavior

1. The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs, as if the user is the first time visitor the website

2. A new cookie may be downloaded depending upon the user navigational areas

TC_COOKIES_22

P3

Objective: To validate the application performance when user accepts cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Accept Cookies’
4. Observe the application performance

(i) The application performance has to be slightly better or as per benchmarks defined

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) has to be downloaded to the browser folder

TC_COOKIES_23

P3

Objective: To validate the application performance when user rejects cookies

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations
3. When the application prompts the usage of cookies, click on ‘Rejects Cookies’
4. Observe the application performance

(i) The application performance has to be as per benchmarks defined

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

(iii) The cookie(s) should not be downloaded to the browser folder

TC_COOKIES_24

P3

Objective: To validate if the session cookies are deleted when the user closes the browser session

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations where sessions are required
3. When the application prompts the usage of session cookies, click on ‘Accept Cookies’
4. Observe if the cookies are downloaded
5. Close the browser
6. Validate if the cookies are deleted

(i) As per step 4, the session cookies has to be downloaded to the browser folder (temporary storage)

(ii) As per step 6, the session cookies has to be deleted from the browser folder

TC_COOKIES_25

P3

Objective: To validate the application navigation behavior after session cookies are deleted when the user closes the browser session

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations where sessions are required
3. When the application prompts the usage of session cookies, click on ‘Accept Cookies’
4. Close the browser
5. Launch the application in a new browser
6. Access the application functionalites through multiple ways of navigations where sessions are required
7. Observe the application behavior/performance

(i) The application performance has to be as per benchmarks defined

(ii) The user has to be able to navigate and use the application functionalities seamlessly without any crashes/hangs

TC_COOKIES_26

P3

Objective: To validate the if the persistent cookies are deleted or maintained, when the user closes the browser session

Pre-req:
1. Latest version of the application is deployed in testing environment
2. LAN/WiFi/4G/3G/2G is available on the test environment

Test Steps:
1. Launch the application on the supported browser
2. Access the application functionalites through multiple ways of navigations where sessions are required or not required
3. When the application prompts the usage of persistent cookies, click on ‘Accept Cookies’
4. Observe if the cookies are downloaded
5. Close the browser
6. Validate if the cookies are deleted

(i) As per step 4, the persistent cookies has to be downloaded to the browser folder

(ii) As per step 6, the persistent cookies has to be still available from the browser folder

(iii) These persistent cookies should have EXPIRES or SET-AGE attributes defined