web-b ase a pplication t esting

27
WEB-BASE APPLICATION TESTING Group leader: D1:Phm B Thun 0812504 D2:Liu Quang Tn 0812520 D3: D4:Hoàng Quốc Minh Trung 0912493 D5:Phm Danh 0912051 Group: D Seminar Software Testing – Group D 1 Teacher: Lâm Quang V Trn Duy Hoàng

Upload: darius-mccall

Post on 01-Jan-2016

38 views

Category:

Documents


1 download

DESCRIPTION

WEB-B ASE A PPLICATION T ESTING. Teacher: Lâm Quang Vũ Trần Duy Hoàng. Group : D. Group leader: D1:Phạm Bá Thuần0812504 D2:Liễu Quang Tín0812520 D3: D4: Hoàng Quốc Minh Trung 0912493 D5:Phạm Danh0912051. Content. Overview Web Application Testing Q&A. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: WEB-B ASE  A PPLICATION  T ESTING

WEB-BASE APPLICATION TESTING

Group leader:D1:Pham Ba Thuân 0812504D2:Liêu Quang Tin 0812520D3:D4:Hoàng Quốc Minh Trung 0912493D5:Pham Danh 0912051

Group: D

Seminar Software Testing – Group D 1

Teacher: Lâm Quang Vu Trân Duy Hoàng

Page 2: WEB-B ASE  A PPLICATION  T ESTING

Content

I. OverviewII. Web Application TestingIII.Q&A

Seminar Software Testing – Group D 2

Page 3: WEB-B ASE  A PPLICATION  T ESTING

I. Overview

Web testing is the name given to software testing that focuses on web applications

Seminar Software Testing – Group D 3

What is web testing?

Page 4: WEB-B ASE  A PPLICATION  T ESTING

I. Overview

To solve address issues before the system is revealed to the public

To solve issues such as the security of the web application, the basic functionality of the site

To ready for large number of user and access with hight bandwidth

Seminar Software Testing – Group D 4

Why ?

Page 5: WEB-B ASE  A PPLICATION  T ESTING

I. Overview

Large varied user baseBusiness environmentLocalesTesting environmentsSecurityBrowsers CompabilityFirewallIntranet and Internet based ApplicationsNetwork Speed

Seminar Software Testing – Group D 5

Testing Challenges

Page 6: WEB-B ASE  A PPLICATION  T ESTING

II. Web Application Testing

Seminar Software Testing – Group D 6

1. Link checker

2. Cookies-Javscript Testing

3. Web Browser

4. Load Test And Stress Test

5. Web Service Testing

Page 7: WEB-B ASE  A PPLICATION  T ESTING

1. Link checker

Seminar Software Testing – Group D 7

A tool or online service that is used

to test and report on the validity of the hypertext

links on the pages in a Web site

What is link checker ?

Page 8: WEB-B ASE  A PPLICATION  T ESTING

1. Link checker

Seminar Software Testing – Group D 8

Link Checker Pro(30 day trial)LinkTiger(15 day trial)W3C Link Checker(Free)Google Webmaster Tools(Free)LinkChecker by 2bone(Free)REL Link Checker Lite(Free)WebLight(Free)....

Some link checkers tool:

Page 9: WEB-B ASE  A PPLICATION  T ESTING

1. Link checker

Seminar Software Testing – Group D 9

Page 10: WEB-B ASE  A PPLICATION  T ESTING

2. Cookies-Javscript Testing

A. Cookies TestingB. Session Timeout TestingC. JavaScript Testing

Seminar Software Testing – Group D 10

Page 11: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

What is cookie ?

Cookies 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

Seminar Software Testing – Group D 11

Page 12: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

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

Seminar Software Testing – Group D 12

Page 13: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

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.

Seminar Software Testing – Group D 13

Page 14: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

How to test cookie ?

Disabling Cookies.

Selective Rejecting Cookies.

Corrupting Cookies.

Cookies Encryption

Seminar Software Testing – Group D 14

Page 15: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

Disabling Cookies ?

This is probably the easiest area of cookie testing.

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

With cookies disabled, our testing job is somewhat reduced.

Seminar Software Testing – Group D 15

Page 16: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

Selective Rejecting Cookies ?

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.

Seminar Software Testing – Group D 16

Page 17: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

Corrupting Cookies ?

Altering the data in the persistent cookies.

Allow the cookie to be modified.

Selectively deleting cookies.

Seminar Software Testing – Group D 17

Page 18: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

Cookies Encryption?

By using encryption of the cookie data.

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

A case can certainly be made that certain types of sensitive data.

Seminar Software Testing – Group D 18

Page 19: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

Test cases for cookie testing?

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 under test is a public website, there should not be overuse of cookies.

Seminar Software Testing – Group D 19

Page 20: WEB-B ASE  A PPLICATION  T ESTING

A. Cookies Testing

Test cases for cookie testing?

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.

Seminar Software Testing – Group D 20

Page 21: WEB-B ASE  A PPLICATION  T ESTING

B. Session Timeout Testing

What is Session timeout ?

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.

Seminar Software Testing – Group D 21

Page 22: WEB-B ASE  A PPLICATION  T ESTING

B. Session Timeout Testing

How to test the Session timeout ?

1 - Login into specific web application. 2 - Sleep that script for 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

Seminar Software Testing – Group D 22

Page 23: WEB-B ASE  A PPLICATION  T ESTING

C. JavaScript Testing

What is JavaScript ?

JavaScript is an interpreted language.

A simple programming language. Client side programming language.

Directly embedded into HTML page

Seminar Software Testing – Group D 23

Page 24: WEB-B ASE  A PPLICATION  T ESTING

C. JavaScript Testing

Turn off JavaScript ?

Web page doesn’t operate or work abnormally.

Tested websites : Gmail, YouTube, VnExpress, Facebook, MediaFire

Seminar Software Testing – Group D 24

Page 25: WEB-B ASE  A PPLICATION  T ESTING

C. JavaScript Testing

GmailTurn off before loading.

Standard HTML:

Seminar Software Testing – Group D 25

Page 26: WEB-B ASE  A PPLICATION  T ESTING

C. JavaScript Testing

YOUTUBETurn off before loading.

Seminar Software Testing – Group D 26

Page 27: WEB-B ASE  A PPLICATION  T ESTING

C. JavaScript Testing

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

functionsMediaFire :

• Loading before turning off :

• Turning off before loading : unable to load

Seminar Software Testing – Group D 27