78
WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Embed Size (px)

Citation preview

Page 1: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

WEB-BASE APPLICATION TESTING

Seminar Software Testing – Group D 1

20/04/2012

Page 2: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Small Group Leader:D1:Pham Ba Thuân 0812504D2:Liêu Quang Tin 0812520D3:Trân Đăng Trình 0812552D4:Hoàng Quốc Minh Trung 0912493D5:Pham Danh 0912051

Group: DTeam Leader: Hoàng Quốc Minh Trung

Seminar Software Testing – Group D 2

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

Page 3: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Content

I. OverviewII. Web Application TestingIII.Q&A

Seminar Software Testing – Group D 3

Page 4: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

I. Overview

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

Seminar Software Testing – Group D 4

What is web testing?

Page 5: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 5

Why ?

Page 6: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

I. Overview

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

Seminar Software Testing – Group D 6

Testing Challenges

Page 7: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

II. Web Application Testing

Seminar Software Testing – Group D 7

1. Link checker

2. Cookies-Javscript Testing

3. Web Browser

4. Load Test And Stress Test

5. Web Service Testing

Page 8: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 8

A tool or online service that is used

to tests and reports on the validity of the hypertext

links on the pages in a Web site

What is link checker ?

Page 9: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 9

SortSite(30 day trial)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 10: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 10

Http status code:

2xx Success:200 – OK

3xx Redirection:304 – Not Modified

4xx Client Error:403 Forbidden

404 – Not Found

5xx Server Error:503 – Service Unavailable,

504 – Gateway Timeout

Link state

Page 11: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 11

Error 500: Internal Server Error

Link state

Page 12: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 12

Error 403: Forbidden

Link state

Page 13: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 13

Error 503 Service Unavailable

Link state

Page 14: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 14

Error 408 Request Timeout:• "An error has occurred in the script on this

page. Line Char: Error: Code: Location: Do you want to continue running scripts on this page?"

Link state

Page 15: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

1. Link checker

Seminar Software Testing – Group D 15

Tool Sortsite

Page 16: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

2. Cookies-Javscript Testing

A. Cookies TestingB. Session Timeout TestingC. JavaScript Testing

Seminar Software Testing – Group D 16

Page 17: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

What is cookie ?

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

Example: C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Cookies

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

Seminar Software Testing – Group D 17

Page 18: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 18

Page 19: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 19

Page 20: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

How to test cookie ?

Disabling Cookies.

Selective Rejecting Cookies.

Corrupting Cookies.

Cookies Encryption

Seminar Software Testing – Group D 20

Page 21: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Disabling Cookies ?

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

Seminar Software Testing – Group D 21

Page 22: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Disabling Cookies ?

Login facebook.

Seminar Software Testing – Group D 22

Page 23: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Disabling Cookies ?

Disable cookies-> What happen?

Seminar Software Testing – Group D 23

Page 24: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Disabling Cookies ?

Try login-> What happen?

Seminar Software Testing – Group D 24

Page 25: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 25

Page 26: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Selective Rejecting Cookies ?

Seminar Software Testing – Group D 26

Page 27: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Corrupting Cookies ?

Allow the cookie to be written (or modified), perform several more actions on the site, and then delete that cookie.

Continue using the site. What happens? Any data loss or corruption?

Seminar Software Testing – Group D 27

Page 28: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Cookies Testing

Cookies Encryption?

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.

Seminar Software Testing – Group D 28

Page 29: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 29

Page 30: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 30

Page 31: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 31

Page 32: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. Session Timeout Testing

How to test the Session timeout ?

1 - Login. 2 - Sleep for timing of one User session 3 - Then perform some action on the page 4 - Observe the response. 5 - Application should show alert.

Seminar Software Testing – Group D 32

Page 33: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. Session Timeout Testing

How to test the Session timeout ?

Seminar Software Testing – Group D 33

Page 34: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. JavaScript Testing

What is JavaScript ?

JavaScript is the scripting language of the Web.

A simple programming language. Client side programming language.

Directly embedded into HTML page

Seminar Software Testing – Group D 34

Page 35: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. JavaScript Testing

What happen when Turn off JavaScript ?

Web page doesn’t operate or work abnormally.

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

Seminar Software Testing – Group D 35

Page 36: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. JavaScript Testing

GmailTurn off before loading.

Standard HTML:

Seminar Software Testing – Group D 36

Page 37: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. JavaScript Testing

YOUTUBETurn off before loading.

Seminar Software Testing – Group D 37

Page 38: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

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 38

Page 39: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

3. Web Browser

Seminar Software Testing – Group D 39

A. Browser Compatibility

B. How To Check The Compatibility

C. Tool Browershots

Page 40: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Browser Compatibility

Seminar Software Testing – Group D 40

Browser compatibility is the ability of the Web browser to properly interpret the hypertext markup language (HTML) that renders Web pages

What?

Page 41: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Browser Compatibility

Seminar Software Testing – Group D 41

Site displays correctly? On different browsers have the same layout,

same design? Time to load ? Site layout is reasonable, content updates

clearly?

What we need to test ?

Page 42: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Browser Compatibility

Seminar Software Testing – Group D 42

Screen size Information provided at this site, including

note boards, clear error messages? Font-style, font size ? Popup, Ads? Be uncomfortable for the

viewer?

What we need to test ?

Page 43: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

A. Browser Compatibility

Seminar Software Testing – Group D 43

The site must be displayed in common browsers like IE, Firefox, Chrome, Opera, Safari ...

Each of brower is different structure, design Your browser may not support the technologies

that your website is using. The site can display well in browser but not good

in other browsers Site has good displays on the

new browser version?

Why?

Page 44: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 44

Different windows version has different architecture (XP & Windows 7) The upgrade window Check on mac, linux

Compatible with the OS

Page 45: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 45

Compatible with the OS

Page 46: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 46

Compatible with the OS

Page 47: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 47

Check the web page displayed on the screen of mobile devices

Mobile browsing

Page 48: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 48

Develop web site with appropriate length so that users can print Standard printer Provides links to printable materials if the site has the resources users will want to print

Printing options

Page 49: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 49

Step 1: Download and install some common browsers like Internet Explorer, Mozilla Firefox, Opera and Safari. Step 2: Check on http://browsershots.org/ to capture images on your site operating systems and different browsers. Step 3: Try checking the google error page with the keywords "internet explorer firefox difference", or "web page can not be displayed in Firefox" etc ...

Compatibility between browsers

Page 50: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

B. How To Check The Compatibility

Seminar Software Testing – Group D 50

Compatibility between browsersTry on the online validator test as http://wave.webaim.org/ and http://www.totalvalidator.com/ to analyze the content

Page 51: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 51

Browershots is one of the popular methods in the test site. Is a free tool to check browser compatibility including several versions of the browsers and even of the more obscure browsers, can test on many different operating systems.Link to website: http://browsershots.org/

What?

Page 52: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 52

Browershots will take pictures of the site displayed on different browsers. Based on the photos, users can check the difference in screen size, color and display web pages with javascript and flash.

What?

Page 53: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 53

Access http://browsershots.org/

How?

Page 54: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 54

Enter the URL into the textbox and press submit

How?

Page 55: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 55

After waiting 30 minutes for the system to handle your request, can press the "Download All" to download picture

How?

Page 56: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 56

Free Popular, High reliability Ease of use Image quality screenshots that covers the entire screen

Advantages

Page 57: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 57

With free user, you are limited to 100 pictures in 24 hours. With 30 minute wait for a time submit, it is too long. If you want to use the extended features, register and pay.

Disadvantages

Page 58: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

C. Tool Browershots

Seminar Software Testing – Group D 58

Page 59: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 59

• Performance test (PT) is an automated testing method in order to determine the speed, load and ability to trust level of the software in the environment many users

• Include Load test và Stress test

Performance test

Page 60: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 60

• Load testing is the process of subjecting a computer, peripheral, server, network or application to a work level approaching the limits of its specifications.

• Load testing can be done under controlled lab conditions to compare the capabilities of different systems or to accurately measure the capabilities of a single system.

• Load testing is a part of a more general process known as performance testing

Performance testLoad Test:

Page 61: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 61

• Load testing can obtain a qualitative idea of how well a system functions in the "real world."

• Pinpoint bottlenecks, bugs and component limitations -> find solution to solve it.

Performance testLoad Test:

Stress Test:

• Stress testing is a form of testing that is used to determine the stability of a given system or entity. It involves testing beyond normal operational capacity, often to a breaking point, in order to observe the results. Stress testing may have a more specific meaning in certain industries, such as fatigue testing for materials

Page 62: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 62

WHAT IS LOADRUNNER ?

HP LoadRunner is the industry-standard performance testing product for predicting system behavior and performance

Read more: HP LoadRunner - Download.com http://download.cnet.com/HP-LoadRunner/3000-2383_4-10306263.html#ixzz1sV9yfNNc

Page 63: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 63

LOADRUNNER FEATURES ?

Include : • Virtual User Generator• Controller• Load Generator• Analysis• Launcher

Page 64: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 64

LOADRUNNER FEATURES ?Virtual User Generator

The Virtual User Generator (VuGen) is used to simulate the steps of real human users

 VuGen lets the user record and/or script a test to be performed against an application under test, and play back and make modifications to the script as needed, such as defining Parameterization

Page 65: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 65

LOADRUNNER FEATURES ?

Load Generator

Multiple machines can be set up to act as load generators in concert

Analysis

The Analysis tool takes the result from the completed scenario and prepares graphs and reports that are used to correlate system information and identify bottlenecks and performance issues

Page 66: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 66

A Web service is a method of communication between two electronic devices over the web (internet).

The W3C defines a "Web service" as "a software system designed to support interoperable machine-to-machine interaction over a network". It has an interface described in a machine-processable format (specifically Web Services Description Language, known by the acronym WSDL).

What is web service?

Page 67: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 67

What is web service?

Page 68: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 68

How does it work ?

Page 69: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 69

Basic Web Service platform is SML + HTTPWeb services platform elements:

SOAP (Simple Object Access Protocol)UDDI (Universal Description, Discovery and Integration)WSDL (Web Services Description Language)

How does it work ?

Page 70: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 70

SOAP is an XML-based protocol to let applications exchange information over HTTP.SOAP is a protocol for accessing a Web Service.

SOAP is based on XMLSOAP stands for Simple Object Access ProtocolSOAP is a communication protocolSOAP is a format for sending messages

What is SOAP?

Page 71: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 71

SOAP is designed to communicate via Internet SOAP is platform independentSOAP is language independentSOAP is simple and extensibleSOAP is a W3C standard

What is SOAP?

Page 72: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 72

WSDL is an XML-based language for locating and describing Web services.

WSDL stands for Web Services Description LanguageWSDL is based on XMLWSDL is used to describe Web servicesWSDL is used to locate Web servicesWSDL is a W3C standard

What is WSDL?

Page 73: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 73

UDDI is a directory service where companies can register and search for Web services.

UDDI stands for Universal Description, Discovery and IntegrationUDDI is a directory for storing information about web servicesUDDI is a directory of web service interfaces described by WSDLUDDI communicates via SOAPUDDI is built into the Microsoft .NET platform

What is UDDI?

Page 74: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 74

SoapUI is the world's leading Functional Testing tool for SOA and Web Service testing. With its easy-to-use graphical interface, and enterprise-class features, soapUI allows you to easily and rapidly create and execute automated functional, regression, and load tests. In a single test environment, soapUI provides complete test coverage - from SOAP and REST-based Web services, to JMS enterprise messaging layers, databases, Rich Internet Applications, and much more.

Tool SOAPUI

Page 75: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 75

SOAPUI is a product of SmartBear.SOAPUI is a free testing software & also have a SOAPUI Pro version with more features, you can use Pro version as Trial for 15 days.All version can download form: http://www.soapui.org/

About SOAPUI

Page 76: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

5. Web service testing

Seminar Software Testing – Group D 76

Page 77: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

III. Q&A

Seminar Software Testing – Group D 77

Page 78: WEB-BASE APPLICATION TESTING Seminar Software Testing – Group D 1 20/04/2012

Seminar Software Testing – Group D 78