SlideShare una empresa de Scribd logo
1 de 37
Descargar para leer sin conexión
Testing Web Applications
Dr. Aprna Tripathi
1Web Testing Dr. Aprna Tripathi
Objectives
• Learn what to test in web applications.
• Learn how to test in a web application.
2Web Testing Dr. Aprna Tripathi
Introduction
• Web-based applications present new challenges, both for
developers and testers. These challenges include:
– Short releases cycles
– Constantly changing technology
– Possible huge number of users during initial website launch
– Inability to control the user’s running environment
– 24-hour availability of the website
• Any difficulty in response time, accuracy, or ease of use
will make the user to click on a competitor's site.
3Web Testing Dr. Aprna Tripathi
Topology of a Web Site
4
Web
Server
Database
Server
Application
Server
I
S
P
Browser
Internet
F
i
r
e
w
a
l
lBrowser
Browser
Web Testing Dr. Aprna Tripathi
The Need for Web Testing
• Is the site content meaningful?
• Is this application easy to use?
• How about browser compatibilities?
• How reliable is our technology?
• Do the Servers have enough power?
• How many visitors are we expecting?
• Are the machines fast enough?
• How much activity can the site handle?
5Web Testing Dr. Aprna Tripathi
Functional and Usability Issues
• The first tests for a website should focus on the
site’s intended behavior by assessing the
following issues:
– Functionality
– Usability
– Navigation
– Forms
– Page content
6Web Testing Dr. Aprna Tripathi
Why is Functionality Testing Important?
7
Missing
image
Web Testing Dr. Aprna Tripathi
Functional Testing
• Functional testing involves making sure features
that most affect user interactions work properly.
These include:
– Forms
– Searches
– Popup windows
– Shopping carts
– Online payments
• Functional testing evaluates the content of
dynamically generated pages and verifies many
behind the scene (connections to database)
8Web Testing Dr. Aprna Tripathi
Functional Testing
• Another aspect of functionality testing is to
verify many behind-the-scenes features not
readily apparent to the user such as
– Connection to legacy systems
– Connection to database
– Connection to third party applications
– Business scenarios
9Web Testing Dr. Aprna Tripathi
Steps to Perform Usability Testing
• Step 1: Identify the website’s purpose
– The designer must understand why people come to
this website
– What type of tasks they might perform
• Step 2: Identify the intended users
– Identify the profiles of typical users by specifying
specific characteristics like: gender, age,
educational level etc.
10Web Testing Dr. Aprna Tripathi
• Step 3: Define tests and conduct the usability testing
– Test cases must be clear, define and easy to use.
– During test case preparation knowledge level of participant
must be considered
– All the observations must be properly documented
• Step 4: Analyze the acquired information
– Summary of observed results
– List of usability problems
– Identification of any trends
– Analysis of videotapes
– Statistical analysis of questionnaires
11Web Testing Dr. Aprna Tripathi
Why Usability Testing
• Low tolerance level of many users during
accessing website
• Frustrated users can easily click over to a
competitor’s site.
• For subscription based website, irritated users
can become increasingly discontented due to
high waiting time and subscription loss may
occurred.
12Web Testing Dr. Aprna Tripathi
Usability Testing
• Usability testing assesses the website’s user
friendliness and suitability by gathering information
about how users interact with the site.
• The key to usability testing is to study what a user
actually does.
• Usability testing steps:
– Identify the website’s purpose
– Identify the intended users
– Define tests and conduct the usability testing
– Analyze the acquired information
13Web Testing Dr. Aprna Tripathi
Navigation Testing
• Good navigation is an essential part of a website,
especially those that are complex and provide a lot of
information.
• Most users expect the following:
– Easy and quick access to the information they want
– Logical hierarchy of pages
– Confirmation of where they are at any point
– Facility to return to previous states or the homepage
– Consistent look and layout of every page
– Uncluttered pages
14Web Testing Dr. Aprna Tripathi
Link Testing
• As the part of navigation testing, the tester
must ensure that all links works as expected;
– Following all links presented on a website,
including hyperlinked text, linked graphics, java
script enabled controls etc.
– Verifying that the pages retrieved are the ones
expected
– Ensuring that all errors are user friendly; for
example making sure that no ‘ 404 No found; error
exists
15Web Testing Dr. Aprna Tripathi
Forms Testing
• Websites that use forms need to be tested to ensure that
each field works properly and that the form posts all
data as intended by the designers.
• Testing forms include the following actions:
– Using the tab key to verify that the form traverses fields in
the proper order, both forward and backward
– Testing boundary values
– Checking that forms traps invalid data correctly, especially
data and numeric formats
– Verifying that the form updates information correctly
16Web Testing Dr. Aprna Tripathi
Page Content Testing
• Each web page must be tested for correct
content from the user perspective.
• These test fall into two categories:
– Ensuring that each component functions correctly
– Ensuring that the content of each is correct
• It includes checking content for accuracy as well as
proofreading for proper spelling, grammar and
terminology.
17Web Testing Dr. Aprna Tripathi
Page Content Testing
• First category of test includes:
– All images and graphics display correctly across
various browsers.
– All content is present as per the requirements.
– Page structure is consistent across the browsers
– Web pages are visually appealing
– Links to relevant content inside and out of the site
are accurate
18Web Testing Dr. Aprna Tripathi
Regression testing of Pages
• Since most of the websites undergo continual
changes in content, tester must have to make
sure its adverse effect.
• Regression testing includes:
– Determining whether the new pages download the
same as prior pages
– Checking whether new pages are identical with
prior versions
– Verifying whether links are still correct
19Web Testing Dr. Aprna Tripathi
Configuration and Compatibility Testing
• A key challenge in web applications is ensuring
that the user sees a web page as the designer
intended:
– The user can select different browser software and
browsers options.
– Use different network software and online service
– Run concurrent applications
• Compatibility testing ensures product
functionality and reliability on the supported
browsers and platforms that exist on the customer
computer.
20Web Testing Dr. Aprna Tripathi
Configuration and Compatibility Testing
(Cont.)
• Guideline for testing web applications (by
listing the platform and browser environments
to be tested).
Browser compatibility table
21Web Testing Dr. Aprna Tripathi
Reliability and Availability
• A key requirement of a website is that:
– It is available whenever the user requests it, often 24 hours a
day, every day.
– The number of users accessing a website simultaneously may
also affect the site’s availability.
• To assess availability, the tester must build tests around
anticipated usage spikes which can include:
– For store applications: promotional campaigns and sales
– For business cycles: month-end and quarter-end dates
– For banking applications: direct deposit dates
– During maintenance: required downtime for backups,
upgrades, and other operations.
22Web Testing Dr. Aprna Tripathi
Performance
• Performance testing evaluates system
performance under normal and heavy usage.
• Website performance is crucial to the success of
any web application.
• Factors, that are affecting the website’s
performance are:
– Download time
– Client platforms
– User arrival rates
– Internet access speeds
– Usage patterns
23Web Testing Dr. Aprna Tripathi
Performance
• Performance testing should begin early in test
cycle.
• Types of performance testing
– Scalability testing
– Load testing
– Stress testing
24Web Testing Dr. Aprna Tripathi
Performance: Scalability Testing
• Scalability concerns the website’s ability to
handle the volumes and types of activities that
can occur after launch.
• The following types of scenarios affect
scalability:
– How closely the test environment matches the
production environment
– Millions of users accessing the site during launch
– Activity spikes due to marketing promotions
25Web Testing Dr. Aprna Tripathi
Performance: Scalability Testing
• Key goals to ensure scalability of the system
includes:
– Determine which types of scenarios to anticipate
– Identify business cycles
– Plan for capacity by modeling the users expected
to access the site.
– Identify the levels and types of activities that can
degrade the performance.
– Produce performance measure like requests/ sec,
transactions/sec
26Web Testing Dr. Aprna Tripathi
Performance: Load Testing
• The purpose of load testing is to model real
world experiences, typically by generating
many simulations users accessing the website.
• Load testing may need to be repeated at least
once.
27Web Testing Dr. Aprna Tripathi
Performance: Stress Testing
• Stress testing consists of subjecting the system to
varying and maximum loads to evaluate the resulting
performance.
• Stress testing can be automated. Tools can report the
following type of information:
– Number of requests, transactions and kilobyte/second
– Round trip time (time from the user makes a request to the time that the
users receives the result)
– Number of concurrent connections
– Degradation of performance
– Types of visitors to the site and their number
– CPU and memory usage of the application server
28Web Testing Dr. Aprna Tripathi
Security Testing
• Security is a primary concern when
communicating and conducting business
especially sensitive and business critical
transactions over the internet.
• Regardless whether the application requires the
user to enter a password to access the website, the
tester must check for internet threats.
• To verify if the application is secured on web as
data theft and unauthorized access are more
common issues.
29Web Testing Dr. Aprna Tripathi
Security testing
• Techniques to verify the security level of the system.
– Injection
– Broken Authentication and Session Management
– Cross-Site Scripting (XSS)
– Insecure Direct Object References
– Security Misconfiguration
– Sensitive Data Exposure
– Missing Function Level Access Control
– Cross-Site Request Forgery (CSRF)
– Using Components with Known Vulnerabilities
– Unvalidated Redirects and Forwards
30Web Testing Dr. Aprna Tripathi
End-to-end Transaction Testing
• End-to-end transactions follow the workflow
to the customer from beginning of the visit
until the customer leaves the site.
31Web Testing Dr. Aprna Tripathi
Database Testing
• Database testing is an essential part of the web
testing.
• Key issues include:
– Data integrity (no data corruption)
– Data validity (accurate information provided to the
customer and accurate information passed back to
the database)
– Data manipulation and updates (updating the
number of books sold, books available, ...)
32Web Testing Dr. Aprna Tripathi
Post-Implementation Testing
• Post-implementation testing verifies the
behavior of the application in the production
environment.
• It is not feasible to duplicate the test
environment to match the production
environment.
• Post-implementation testing takes place in a
“production maintenance window”.
33Web Testing Dr. Aprna Tripathi
Key Points
• Testing web applications present new challenges.
• Functional and usability tests focus on the site’s intended
behavior:
– Functional testing asserts whether the main features function
correctly.
– Usability testing evaluates whether a site is user friendly by
observing users as they interact with the site.
– Testing a form ensures that each field works properly.
– Navigation testing ensures that the user can accomplish the
desired tasks by verifying access to pages, images, links, and
other page components.
– Testing page content ensures that the information provided by
the website is correct.
34Web Testing Dr. Aprna Tripathi
Key Points (Cont.)
• Configuration and compatibility testing make
sure that the application functions correctly
across the various hardware and software
environments.
• Reliability and availability testing assesses
whether the website is accessible whenever the
users request it by testing around anticipated peak
usage such as marketing promotions and high-
activity cycles.
35Web Testing Dr. Aprna Tripathi
Key Points (Cont.)
• Performance testing ensures that the website server
responds to browser requests within defined parameters.
As part of performance testing:
– Scalability testing assesses the website's ability to meet the
load requirements.
– Load testing evaluates how the system functions when
processing many simultaneous requests from a multitude of
users.
– Stress testing subjects the system to varying loads.
• Security testing aims to check for internet threats or
protect sensitive information.
36Web Testing Dr. Aprna Tripathi
Key Points (Cont.)
• End-to-end transaction testing tests all parts
that make up a particular transaction by
following a customer's workflow from
entering to leaving the site.
• Database testing verifies the integrity, validity
and manipulation and updates of the data.
• Post-implementation testing verifies an
application's behavior in the production
environment.
37Web Testing Dr. Aprna Tripathi

Más contenido relacionado

La actualidad más candente

Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
Qualitest
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testing
sonukalpana
 

La actualidad más candente (20)

Website testing
Website testingWebsite testing
Website testing
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
 
Load Testing Strategy 101
Load Testing Strategy 101Load Testing Strategy 101
Load Testing Strategy 101
 
Load Testing Best Practices
Load Testing Best PracticesLoad Testing Best Practices
Load Testing Best Practices
 
What is Performance Testing?
What is Performance Testing?What is Performance Testing?
What is Performance Testing?
 
Performance testing
Performance testingPerformance testing
Performance testing
 
Performance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter introPerformance Testing from Scratch + JMeter intro
Performance Testing from Scratch + JMeter intro
 
Testing web based applications
Testing web based applicationsTesting web based applications
Testing web based applications
 
Performance testing
Performance testingPerformance testing
Performance testing
 
QSpiders - Introduction to JMeter
QSpiders - Introduction to JMeterQSpiders - Introduction to JMeter
QSpiders - Introduction to JMeter
 
Holiday Readiness: Best Practices for Successful Holiday Readiness Testing
Holiday Readiness: Best Practices for Successful Holiday Readiness TestingHoliday Readiness: Best Practices for Successful Holiday Readiness Testing
Holiday Readiness: Best Practices for Successful Holiday Readiness Testing
 
Software testing performance testing
Software testing  performance testingSoftware testing  performance testing
Software testing performance testing
 
Performance and load testing
Performance and load testingPerformance and load testing
Performance and load testing
 
Infographic: Importance of Performance Testing
Infographic: Importance of Performance TestingInfographic: Importance of Performance Testing
Infographic: Importance of Performance Testing
 
Testing of web based Applicatons
Testing of web based ApplicatonsTesting of web based Applicatons
Testing of web based Applicatons
 
Continuous Performance Testing
Continuous Performance TestingContinuous Performance Testing
Continuous Performance Testing
 
Defect Life Cycle
Defect Life CycleDefect Life Cycle
Defect Life Cycle
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
Test Team Responsibilities
Test Team ResponsibilitiesTest Team Responsibilities
Test Team Responsibilities
 
Performance testing : An Overview
Performance testing : An OverviewPerformance testing : An Overview
Performance testing : An Overview
 

Similar a Web testing

WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
madhurpatidar2
 
SQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database educationSQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database education
RAVALCHIRAG1
 
Load testing web based applications
Load testing   web based applicationsLoad testing   web based applications
Load testing web based applications
Jitendra Yadav
 

Similar a Web testing (20)

WE-06-Testing.ppt
WE-06-Testing.pptWE-06-Testing.ppt
WE-06-Testing.ppt
 
Software Testing Introduction (Part 4))
 Software Testing Introduction (Part 4)) Software Testing Introduction (Part 4))
Software Testing Introduction (Part 4))
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
 
Other Testing Types
Other Testing TypesOther Testing Types
Other Testing Types
 
28791456 web-testing
28791456 web-testing28791456 web-testing
28791456 web-testing
 
072SWE415StNotes13.ppt
072SWE415StNotes13.ppt072SWE415StNotes13.ppt
072SWE415StNotes13.ppt
 
Pm 6 testing
Pm 6 testingPm 6 testing
Pm 6 testing
 
SQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database educationSQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database education
 
CIS375 Interaction Designs Chapter14
CIS375 Interaction Designs Chapter14CIS375 Interaction Designs Chapter14
CIS375 Interaction Designs Chapter14
 
Testing webapps, websites and mobile applications
Testing webapps, websites and mobile applicationsTesting webapps, websites and mobile applications
Testing webapps, websites and mobile applications
 
Neev Load Testing Services
Neev Load Testing ServicesNeev Load Testing Services
Neev Load Testing Services
 
A comprehensive guide on advantages, methods, and process of Usability Testin...
A comprehensive guide on advantages, methods, and process of Usability Testin...A comprehensive guide on advantages, methods, and process of Usability Testin...
A comprehensive guide on advantages, methods, and process of Usability Testin...
 
JMeter
JMeterJMeter
JMeter
 
OHA Usability Test Plan.pdf
OHA Usability Test Plan.pdfOHA Usability Test Plan.pdf
OHA Usability Test Plan.pdf
 
Using JMeter and Google Analytics for Software Performance Testing
Using JMeter and Google Analytics for Software Performance TestingUsing JMeter and Google Analytics for Software Performance Testing
Using JMeter and Google Analytics for Software Performance Testing
 
Musharraf_Syed_Resume
Musharraf_Syed_ResumeMusharraf_Syed_Resume
Musharraf_Syed_Resume
 
Web test
Web testWeb test
Web test
 
Web test
Web testWeb test
Web test
 
Software Testing Company in India.pptx
Software Testing Company in India.pptxSoftware Testing Company in India.pptx
Software Testing Company in India.pptx
 
Load testing web based applications
Load testing   web based applicationsLoad testing   web based applications
Load testing web based applications
 

Último

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 

Último (20)

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 

Web testing

  • 1. Testing Web Applications Dr. Aprna Tripathi 1Web Testing Dr. Aprna Tripathi
  • 2. Objectives • Learn what to test in web applications. • Learn how to test in a web application. 2Web Testing Dr. Aprna Tripathi
  • 3. Introduction • Web-based applications present new challenges, both for developers and testers. These challenges include: – Short releases cycles – Constantly changing technology – Possible huge number of users during initial website launch – Inability to control the user’s running environment – 24-hour availability of the website • Any difficulty in response time, accuracy, or ease of use will make the user to click on a competitor's site. 3Web Testing Dr. Aprna Tripathi
  • 4. Topology of a Web Site 4 Web Server Database Server Application Server I S P Browser Internet F i r e w a l lBrowser Browser Web Testing Dr. Aprna Tripathi
  • 5. The Need for Web Testing • Is the site content meaningful? • Is this application easy to use? • How about browser compatibilities? • How reliable is our technology? • Do the Servers have enough power? • How many visitors are we expecting? • Are the machines fast enough? • How much activity can the site handle? 5Web Testing Dr. Aprna Tripathi
  • 6. Functional and Usability Issues • The first tests for a website should focus on the site’s intended behavior by assessing the following issues: – Functionality – Usability – Navigation – Forms – Page content 6Web Testing Dr. Aprna Tripathi
  • 7. Why is Functionality Testing Important? 7 Missing image Web Testing Dr. Aprna Tripathi
  • 8. Functional Testing • Functional testing involves making sure features that most affect user interactions work properly. These include: – Forms – Searches – Popup windows – Shopping carts – Online payments • Functional testing evaluates the content of dynamically generated pages and verifies many behind the scene (connections to database) 8Web Testing Dr. Aprna Tripathi
  • 9. Functional Testing • Another aspect of functionality testing is to verify many behind-the-scenes features not readily apparent to the user such as – Connection to legacy systems – Connection to database – Connection to third party applications – Business scenarios 9Web Testing Dr. Aprna Tripathi
  • 10. Steps to Perform Usability Testing • Step 1: Identify the website’s purpose – The designer must understand why people come to this website – What type of tasks they might perform • Step 2: Identify the intended users – Identify the profiles of typical users by specifying specific characteristics like: gender, age, educational level etc. 10Web Testing Dr. Aprna Tripathi
  • 11. • Step 3: Define tests and conduct the usability testing – Test cases must be clear, define and easy to use. – During test case preparation knowledge level of participant must be considered – All the observations must be properly documented • Step 4: Analyze the acquired information – Summary of observed results – List of usability problems – Identification of any trends – Analysis of videotapes – Statistical analysis of questionnaires 11Web Testing Dr. Aprna Tripathi
  • 12. Why Usability Testing • Low tolerance level of many users during accessing website • Frustrated users can easily click over to a competitor’s site. • For subscription based website, irritated users can become increasingly discontented due to high waiting time and subscription loss may occurred. 12Web Testing Dr. Aprna Tripathi
  • 13. Usability Testing • Usability testing assesses the website’s user friendliness and suitability by gathering information about how users interact with the site. • The key to usability testing is to study what a user actually does. • Usability testing steps: – Identify the website’s purpose – Identify the intended users – Define tests and conduct the usability testing – Analyze the acquired information 13Web Testing Dr. Aprna Tripathi
  • 14. Navigation Testing • Good navigation is an essential part of a website, especially those that are complex and provide a lot of information. • Most users expect the following: – Easy and quick access to the information they want – Logical hierarchy of pages – Confirmation of where they are at any point – Facility to return to previous states or the homepage – Consistent look and layout of every page – Uncluttered pages 14Web Testing Dr. Aprna Tripathi
  • 15. Link Testing • As the part of navigation testing, the tester must ensure that all links works as expected; – Following all links presented on a website, including hyperlinked text, linked graphics, java script enabled controls etc. – Verifying that the pages retrieved are the ones expected – Ensuring that all errors are user friendly; for example making sure that no ‘ 404 No found; error exists 15Web Testing Dr. Aprna Tripathi
  • 16. Forms Testing • Websites that use forms need to be tested to ensure that each field works properly and that the form posts all data as intended by the designers. • Testing forms include the following actions: – Using the tab key to verify that the form traverses fields in the proper order, both forward and backward – Testing boundary values – Checking that forms traps invalid data correctly, especially data and numeric formats – Verifying that the form updates information correctly 16Web Testing Dr. Aprna Tripathi
  • 17. Page Content Testing • Each web page must be tested for correct content from the user perspective. • These test fall into two categories: – Ensuring that each component functions correctly – Ensuring that the content of each is correct • It includes checking content for accuracy as well as proofreading for proper spelling, grammar and terminology. 17Web Testing Dr. Aprna Tripathi
  • 18. Page Content Testing • First category of test includes: – All images and graphics display correctly across various browsers. – All content is present as per the requirements. – Page structure is consistent across the browsers – Web pages are visually appealing – Links to relevant content inside and out of the site are accurate 18Web Testing Dr. Aprna Tripathi
  • 19. Regression testing of Pages • Since most of the websites undergo continual changes in content, tester must have to make sure its adverse effect. • Regression testing includes: – Determining whether the new pages download the same as prior pages – Checking whether new pages are identical with prior versions – Verifying whether links are still correct 19Web Testing Dr. Aprna Tripathi
  • 20. Configuration and Compatibility Testing • A key challenge in web applications is ensuring that the user sees a web page as the designer intended: – The user can select different browser software and browsers options. – Use different network software and online service – Run concurrent applications • Compatibility testing ensures product functionality and reliability on the supported browsers and platforms that exist on the customer computer. 20Web Testing Dr. Aprna Tripathi
  • 21. Configuration and Compatibility Testing (Cont.) • Guideline for testing web applications (by listing the platform and browser environments to be tested). Browser compatibility table 21Web Testing Dr. Aprna Tripathi
  • 22. Reliability and Availability • A key requirement of a website is that: – It is available whenever the user requests it, often 24 hours a day, every day. – The number of users accessing a website simultaneously may also affect the site’s availability. • To assess availability, the tester must build tests around anticipated usage spikes which can include: – For store applications: promotional campaigns and sales – For business cycles: month-end and quarter-end dates – For banking applications: direct deposit dates – During maintenance: required downtime for backups, upgrades, and other operations. 22Web Testing Dr. Aprna Tripathi
  • 23. Performance • Performance testing evaluates system performance under normal and heavy usage. • Website performance is crucial to the success of any web application. • Factors, that are affecting the website’s performance are: – Download time – Client platforms – User arrival rates – Internet access speeds – Usage patterns 23Web Testing Dr. Aprna Tripathi
  • 24. Performance • Performance testing should begin early in test cycle. • Types of performance testing – Scalability testing – Load testing – Stress testing 24Web Testing Dr. Aprna Tripathi
  • 25. Performance: Scalability Testing • Scalability concerns the website’s ability to handle the volumes and types of activities that can occur after launch. • The following types of scenarios affect scalability: – How closely the test environment matches the production environment – Millions of users accessing the site during launch – Activity spikes due to marketing promotions 25Web Testing Dr. Aprna Tripathi
  • 26. Performance: Scalability Testing • Key goals to ensure scalability of the system includes: – Determine which types of scenarios to anticipate – Identify business cycles – Plan for capacity by modeling the users expected to access the site. – Identify the levels and types of activities that can degrade the performance. – Produce performance measure like requests/ sec, transactions/sec 26Web Testing Dr. Aprna Tripathi
  • 27. Performance: Load Testing • The purpose of load testing is to model real world experiences, typically by generating many simulations users accessing the website. • Load testing may need to be repeated at least once. 27Web Testing Dr. Aprna Tripathi
  • 28. Performance: Stress Testing • Stress testing consists of subjecting the system to varying and maximum loads to evaluate the resulting performance. • Stress testing can be automated. Tools can report the following type of information: – Number of requests, transactions and kilobyte/second – Round trip time (time from the user makes a request to the time that the users receives the result) – Number of concurrent connections – Degradation of performance – Types of visitors to the site and their number – CPU and memory usage of the application server 28Web Testing Dr. Aprna Tripathi
  • 29. Security Testing • Security is a primary concern when communicating and conducting business especially sensitive and business critical transactions over the internet. • Regardless whether the application requires the user to enter a password to access the website, the tester must check for internet threats. • To verify if the application is secured on web as data theft and unauthorized access are more common issues. 29Web Testing Dr. Aprna Tripathi
  • 30. Security testing • Techniques to verify the security level of the system. – Injection – Broken Authentication and Session Management – Cross-Site Scripting (XSS) – Insecure Direct Object References – Security Misconfiguration – Sensitive Data Exposure – Missing Function Level Access Control – Cross-Site Request Forgery (CSRF) – Using Components with Known Vulnerabilities – Unvalidated Redirects and Forwards 30Web Testing Dr. Aprna Tripathi
  • 31. End-to-end Transaction Testing • End-to-end transactions follow the workflow to the customer from beginning of the visit until the customer leaves the site. 31Web Testing Dr. Aprna Tripathi
  • 32. Database Testing • Database testing is an essential part of the web testing. • Key issues include: – Data integrity (no data corruption) – Data validity (accurate information provided to the customer and accurate information passed back to the database) – Data manipulation and updates (updating the number of books sold, books available, ...) 32Web Testing Dr. Aprna Tripathi
  • 33. Post-Implementation Testing • Post-implementation testing verifies the behavior of the application in the production environment. • It is not feasible to duplicate the test environment to match the production environment. • Post-implementation testing takes place in a “production maintenance window”. 33Web Testing Dr. Aprna Tripathi
  • 34. Key Points • Testing web applications present new challenges. • Functional and usability tests focus on the site’s intended behavior: – Functional testing asserts whether the main features function correctly. – Usability testing evaluates whether a site is user friendly by observing users as they interact with the site. – Testing a form ensures that each field works properly. – Navigation testing ensures that the user can accomplish the desired tasks by verifying access to pages, images, links, and other page components. – Testing page content ensures that the information provided by the website is correct. 34Web Testing Dr. Aprna Tripathi
  • 35. Key Points (Cont.) • Configuration and compatibility testing make sure that the application functions correctly across the various hardware and software environments. • Reliability and availability testing assesses whether the website is accessible whenever the users request it by testing around anticipated peak usage such as marketing promotions and high- activity cycles. 35Web Testing Dr. Aprna Tripathi
  • 36. Key Points (Cont.) • Performance testing ensures that the website server responds to browser requests within defined parameters. As part of performance testing: – Scalability testing assesses the website's ability to meet the load requirements. – Load testing evaluates how the system functions when processing many simultaneous requests from a multitude of users. – Stress testing subjects the system to varying loads. • Security testing aims to check for internet threats or protect sensitive information. 36Web Testing Dr. Aprna Tripathi
  • 37. Key Points (Cont.) • End-to-end transaction testing tests all parts that make up a particular transaction by following a customer's workflow from entering to leaving the site. • Database testing verifies the integrity, validity and manipulation and updates of the data. • Post-implementation testing verifies an application's behavior in the production environment. 37Web Testing Dr. Aprna Tripathi