SlideShare a Scribd company logo
Software Testing and Quality
Assurance
Testing Web Applications
2
Reading Assignment
 Louise Tamres, “Introducing Software
Testing,” First edition, Addison Wesley, 2002.
 Chapter 7: Testing Web Applications
3
Objectives
 Learn what to test in web applications.
 Learn how to test in a web application.
4
Topics Covered
 Functional and usability issues: functional testing,
usability testing, navigation testing, form testing,
and page content testing.
 Configuration and compatibility testing
 Reliability and availability testing
 Performance testing: scalability testing, load
testing, and stress testing.
 Security testing
 End-to-end transaction testing
 Database testing
 Post implementation testing
5
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.
6
Topology of a Web Site
Web
Server
Database
Server
Application
Server
I
S
P
Browser
Internet
F
i
r
e
w
a
l
l
Browser
Browser
7
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?
8
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
9
Why is Functionality Testing Important?
Missing
image
10
Functional and Usability Issues:
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)
11
Functional and Usability Issues: 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
12
Functional and Usability Issues:
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
13
Functional and Usability Issues: 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
14
Functional and Usability Issues: 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
15
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.
16
Configuration and Compatibility Testing
(Cont.)
 Guideline for testing web applications (by
listing the platform and browser
environments to be tested).
17
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.
18
Performance
 Performance testing evaluates system
performance under normal and heavy usage.
 Website performance is crucial to the
success of any web application.
 Performance tests:
 Scalability testing
 Load testing
 Stress testing
19
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
20
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.
21
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
22
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.
23
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.
24
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, ...)
25
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”.
26
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.
27
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.
28
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.
29
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.

More Related Content

PDF
28791456 web-testing
PPTX
Software Testing Introduction (Part 4))
PDF
A Complete Guide to Web Apps Testing.pdf
PDF
A Complete Guide to Web App Testing.pdf file
PPTX
Testing of web based Applicatons
PDF
Ensuring Effective Performance Testing in Web Applications.pdf
DOC
Web testing essentials
PPT
Different type of_software_testing - copy
28791456 web-testing
Software Testing Introduction (Part 4))
A Complete Guide to Web Apps Testing.pdf
A Complete Guide to Web App Testing.pdf file
Testing of web based Applicatons
Ensuring Effective Performance Testing in Web Applications.pdf
Web testing essentials
Different type of_software_testing - copy

Similar to 072SWE415StNotes13.ppt (20)

PDF
New Model to Achieve Software Quality Assurance (SQA) in Web Application
PPT
A perspective on web testing
PPT
A perspective on web testing
PPTX
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
PDF
What is Web Testing?
PPTX
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
PDF
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
PDF
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
PDF
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
PDF
Testingwebapplication by nandi cool
PDF
Web testing
PDF
How to Conduct Effective Functional Testing on a Web Application.pdf
PPTX
Performance Testing
PPS
A perspective on web testing.ppt
PDF
Exploring Top Performance Testing Tools in Software Industry.pdf
PPTX
Browser-Based Load Testing with Grafana K6
PPTX
Testing web based applications
PDF
Best Practices for Testing and Debugging Your Mobile App.pdf
PPTX
Web Engineering - Web Application Testing
PDF
Are Your Teams Writing Quality Code
New Model to Achieve Software Quality Assurance (SQA) in Web Application
A perspective on web testing
A perspective on web testing
Web Engineering: A Practitioner Approach -Testing web app - Content Managemen...
What is Web Testing?
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_26-04-2022_tes...
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
Automated Front End Testing_ Navigating Types and Tools for Optimal Web Devel...
Testingwebapplication by nandi cool
Web testing
How to Conduct Effective Functional Testing on a Web Application.pdf
Performance Testing
A perspective on web testing.ppt
Exploring Top Performance Testing Tools in Software Industry.pdf
Browser-Based Load Testing with Grafana K6
Testing web based applications
Best Practices for Testing and Debugging Your Mobile App.pdf
Web Engineering - Web Application Testing
Are Your Teams Writing Quality Code
Ad

Recently uploaded (20)

PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
OOP with Java - Java Introduction (Basics)
DOCX
573137875-Attendance-Management-System-original
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Well-logging-methods_new................
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
PPT on Performance Review to get promotions
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Mechanical Engineering MATERIALS Selection
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
UNIT 4 Total Quality Management .pptx
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Well-logging-methods_new................
bas. eng. economics group 4 presentation 1.pptx
PPT on Performance Review to get promotions
Model Code of Practice - Construction Work - 21102022 .pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Lecture Notes Electrical Wiring System Components
CH1 Production IntroductoryConcepts.pptx
Digital Logic Computer Design lecture notes
web development for engineering and engineering
Ad

072SWE415StNotes13.ppt

  • 1. Software Testing and Quality Assurance Testing Web Applications
  • 2. 2 Reading Assignment  Louise Tamres, “Introducing Software Testing,” First edition, Addison Wesley, 2002.  Chapter 7: Testing Web Applications
  • 3. 3 Objectives  Learn what to test in web applications.  Learn how to test in a web application.
  • 4. 4 Topics Covered  Functional and usability issues: functional testing, usability testing, navigation testing, form testing, and page content testing.  Configuration and compatibility testing  Reliability and availability testing  Performance testing: scalability testing, load testing, and stress testing.  Security testing  End-to-end transaction testing  Database testing  Post implementation testing
  • 5. 5 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.
  • 6. 6 Topology of a Web Site Web Server Database Server Application Server I S P Browser Internet F i r e w a l l Browser Browser
  • 7. 7 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?
  • 8. 8 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
  • 9. 9 Why is Functionality Testing Important? Missing image
  • 10. 10 Functional and Usability Issues: 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)
  • 11. 11 Functional and Usability Issues: 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
  • 12. 12 Functional and Usability Issues: 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
  • 13. 13 Functional and Usability Issues: 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
  • 14. 14 Functional and Usability Issues: 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
  • 15. 15 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.
  • 16. 16 Configuration and Compatibility Testing (Cont.)  Guideline for testing web applications (by listing the platform and browser environments to be tested).
  • 17. 17 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.
  • 18. 18 Performance  Performance testing evaluates system performance under normal and heavy usage.  Website performance is crucial to the success of any web application.  Performance tests:  Scalability testing  Load testing  Stress testing
  • 19. 19 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
  • 20. 20 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.
  • 21. 21 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
  • 22. 22 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.
  • 23. 23 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.
  • 24. 24 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, ...)
  • 25. 25 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”.
  • 26. 26 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.
  • 27. 27 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.
  • 28. 28 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.
  • 29. 29 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.