cookie is small information stored in text file on user’s hard drive by web server. this...

21
COOKIES TESTING SESSION TIMEOUT TESTING JAVASCRIPT TESTING

Upload: victor-holt

Post on 12-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

COOKIES TESTINGSESSION TIMEOUT

TESTINGJAVASCRIPT TESTING

Page 2: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Cookie is small information stored in text file on user’s hard drive by web server.

This information is later used by web browser to retrieve information from that machine.

Generally cookie contains personalized user data or information that is used to communicate between different web pages.

What is Cookie ?

Page 3: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Why we have to test Cookie ?

To make sure that the cookies do not store confidential information .

To check the number of cookies used

Make sure that the application maintains its efficiency when switched off or Accept cookies

Page 4: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Why we have to test Cookie ?

To check application response to the damaged cookies

Make sure that cookies are stored and removed it to the pages on which it is expected and necessary

Testing that cookies are working correctly in all browsers that will be used by application

Page 5: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Why we have to test Cookie ?

To make sure that the application adequately responds to delete cookies manually

To verify that the access to different parts of the application can not be done to bypass the cookie used for authentication or authorization

Page 6: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

A. Disabling Cookies

This is probably the easiest area of cookie testing

Disable all cookies and attempt to use the site’s major featuresand functions

With cookies disabled,our testing job is somewhat reduced

How To Test Cookie ?

Page 7: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

B. Selective Rejecting Cookie

Start by deleting all cookies from our PC

Analyze site cookie usage in advance and draw up a test plan

Detailing what cookies to reject/accept for each function

How To Test Cookie ?

Page 8: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

C.Corrupting Cookies

Altering the data in the persistent cookies

Allow the cookie to be modified

Selectively deleting cookies

How To Test Cookie ?

Page 9: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

D.Cookies Encryption

By using encryption of thecookiedata

Sensitive information like usernames and passwords should been crypted before it is sent to our computer

A case can certainly be made that certain types of sensitive data – credit card numbers

How To Test Cookie ?

Page 10: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Check if the application is writing cookies properly or not.

Test to make sure that no personal or sensitive data is stored in the cookie.If it is there in cookies,it should be in encrypted format.

If the application undertest is a public website,there should not be overuse of cookies

Test Cases For Cookie Testing

Page 11: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Close all browsers,delete all previously written cookies and disable the cookies from our browser settings

Set browser options to prompt whenever cookie is being stored/saved in your system

Close all browsers windows and manually delete all cookies

Test Cases For Cookie Testing

Page 12: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Cookies shouldn't be put in the same category as the viruses,spam,or spyware

They are the tools to help us and manage our time more efficiently on the web

Testing should be done properly to check that website is working with different cookie setting

Test Cases For Cookie Testing

Page 13: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

The time-out period assigned to the Session object for the application.

If the user does not refresh or request a page within the time-out period, the session ends.

Session Timeout

Page 14: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

1 – Login into specific web application. 2 – Sleep that script for (some time) >

timing of one User session. 3 – Then perform some action on the page. 4 – Observe the response of that action. 5 – Application should show alert. If it is not

then probably session is not ending properly.

How to test the session timeout

Page 15: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

JavaScript is an interpreted language.

A lightweight programming language.

Client side programming language.

Directly embedded into HTML page.

JavaScript

Page 16: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Web page doesn’t operate or work abnormally.

Tested websites:◦ Gmail◦ Youtube◦ Vnexpress◦ Facebook◦ Mediafire

Turn Off JavaScript

Page 17: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Turn off before loading:

Standard HTML:

Gmail

Page 18: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Turn off before loading:

YOUTUBE

Page 19: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Before turning off javascript:

GOOGLE

Page 20: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

After turning off javascript:

GOOGLE

Page 21: Cookie is small information stored in text file on user’s hard drive by web server.  This information is later used by web browser to retrieve information

Vnexpress: unable to load dynamic images. Facebook: unable to use like and comment

functions. Mediafire:

◦ Loading before turning off :

◦ Turning off before loading : unable to load the web.

OTHER WEBSITES