SlideShare a Scribd company logo
WebMate: A Tool for Testing Web 2.0
Applications
OutLine
• Introduction
• Problem Statement
• Key Points
• WebMate Framework
• Challenges (Academic Vs Industrial)
• Advantages
• References
Introduction
• Software testing has became a separate
specialization in IT industry.
• Many techniques have been proposed.
• WebMate (developed by Germans)is one of
the flourishing tool for web app testing.
• Today web apps are enriched on web 2.0 due
to JavaScript.
Problem Statement
• The problem occurs when web applications
don’t grasp same functionalities across
different browsers .
• TestCases were generated manually, by
visually comparing the functionalities.
• Transferring an academic approach on
WebMate into commercial/real world.
Key Points
• Understanding DOM
• Selenium Framework
Understanding DOM
• Document object model
• When a web page is loaded, the browser
creates a Document Object Model of the
page.
• The Document Object Model (DOM) is a
programming interface for HTML and XML
documents
example
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>Example Page</h1>
<p>This is an example page.</p>
</body>
</html>
DOM
How Selenium works?
• the client; he tells the taxi driver where he
wants to go and how to get there
• the taxi driver; he executes the client's
requests; the taxi driver sends his own
requests to the car
• the car; the car executes the taxi driver's
requests
WebMate: A Tool for Testing Web 2.0 Applications
Cont…
• test engineer that writes the automation
code; the automation code sends requests to
the browser driver component
• the browser driver component; it executes
the test engineer requests; it sends its own
request to the browser
• the browser; it executes the browser driver
requests
WebMate: A Tool for Testing Web 2.0 Applications
WebMate: A Tool for Testing Web 2.0 Applications
Previous Work Limitations
• More than one release cycle of web app
causes problem in writing TestCases.
• When any element changed during extraction
of states the whole test suite breaks.
• No proper refactoring tool.
• Such tests were analyzed manually by screen
shots in oracle part of testing or ignored
sometimes.
WebMate
• A tool for automatically generating TesCases.
• It automatically explores the functionalities of
web applications.
• Detects differences across multiple browser as
well as different release cycle of same
application.
Cont..
Functionalities
• Employs Selenium Framework to remote
control browser.
• Trigger actions.
• Inspects current DOM states.
• Automatic analysis and reporting .
Cont..(How WebMate works?)
• Enter URL as input
• WebMate analyzes web app and learns usage
model.
• That Usage Model allows to run different
analysis such as cross-browser compatibility
checks.
• Results of analysis then can be reported back
to the user.
Cont..(cont..)
Cont..(Usage Model)
• After extraction of DOM states by triggering
actions WebMate generates usage model of
user interaction.
• It is a graph where nodes correspond to states
of the application, and a transition represents
a single interaction with the application.
WebMate: A Tool for Testing Web 2.0 Applications
Cont..
• When WebMate learns the usage model there
will be an oracle suit for compatibility analysis.
• This incorporate the automatic decision that
either the given behavior correct or not and
exactable or not.
• Reference browser was baseline.
• WebMate generates test and replay them in
different browsers.
• Then highlights the differences.
Cont.. Replaying tests
Cont..Sample Reported Output
Challenges(Research approach Vs
Industrial/Real World)
• In research prototype authors wanted tool to
be implemented as expected easily.
• In real life there would be a market for
consulting services in which assembling of
pilot customers were compulsory.
Cont..
Identifying User Elements
• In research approach authors only
implemented analysis for DOM, JQuery and
prototype event handlers.
• While in Real life there is a huge amount of
different programming techniques.
Cont..
Identifying Application States
• WebMate can explore the visible and active
user interface elements rather than exploring
other unnecessary application states.
• Industrially this factor was almost covered
academically. Now WebMate can supports
number of state abstractions.
Cont..
User input and authentication
• Initially WebMate has hard coded login
procedure for Web sites in which combination
of username/password was given to access
the next page.
• In real life there were many input forms such
as ZIP code entry etc, this was then again
covered by Customization.
Cont..
Oracles
• If sequence of User Interaction results in
different set of user interface elements,
WebMate will report that.
• WebMate to be ready for real world latter
allowed to handle HTTP errors, Elements
positioning, browser crash report errors.
Cont..
Security
• There is a security threat for WebMate that it
couldn’t be install on server that’s why used as
appliance (intranet) in real life.
Advantages
• Provide better exploration than CrawlJax
• Uses existing Selenium framework.
• Maximize coverage and least states.
References
• V. Dallmeier, M. Burger, T. Orth, and A. Zeller,
“Webmate: Generating test cases for web 2.0,” in
Software Quality. Increasing Value in Software and
Systems Development. Springer, Jan. 2013, pp. 55–69.
• https://www.smashingmagazine.com/2009/03/40-
stand-alone-javascript-libraries-for-specific-purposes/
• https://www.quora.com/How-does-the-Selenium-
WebDriver-work
• https://www.w3.org/TR/DOM-Level-2-
Core/introduction.html

More Related Content

PPSX
Asp.net mvc
PPT
Web engineering - MVC
PPT
MSDN - ASP.NET MVC
PPTX
ASP .NET MVC Introduction & Guidelines
PPTX
ASP.NET MVC Presentation
PPT
MVC
PPTX
ASP .NET MVC
PPTX
ASP.NET MVC for Begineers
Asp.net mvc
Web engineering - MVC
MSDN - ASP.NET MVC
ASP .NET MVC Introduction & Guidelines
ASP.NET MVC Presentation
MVC
ASP .NET MVC
ASP.NET MVC for Begineers

What's hot (20)

PPTX
Introduction to mvc architecture
PPT
MVC ppt presentation
ODP
What is MVC?
PDF
Model View Controller (MVC)
PPT
Mvc 130330091359-phpapp01
PPTX
Training: MVVM Pattern
PDF
ASP.NET MVC 3
PPT
ASP .net MVC
PPT
Mvc architecture
PPTX
Asp.net MVC training session
PPTX
PPTX
Asp.net mvc presentation by Nitin Sawant
PPTX
ASP.NET MVC.
 
PPT
Asp.net mvc
PPTX
ASP.NET MVC 5 - EF 6 - VS2015
PPT
ASP.NET MVC Presentation
PPTX
Programming and the web for beginners
PDF
Dot net interview questions and asnwers
PDF
Web testing
PPTX
Ivan Danilov «Desktop Application Automation: .NET Developer’s Perspective»
Introduction to mvc architecture
MVC ppt presentation
What is MVC?
Model View Controller (MVC)
Mvc 130330091359-phpapp01
Training: MVVM Pattern
ASP.NET MVC 3
ASP .net MVC
Mvc architecture
Asp.net MVC training session
Asp.net mvc presentation by Nitin Sawant
ASP.NET MVC.
 
Asp.net mvc
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC Presentation
Programming and the web for beginners
Dot net interview questions and asnwers
Web testing
Ivan Danilov «Desktop Application Automation: .NET Developer’s Perspective»
Ad

Similar to WebMate: A Tool for Testing Web 2.0 Applications (20)

PPT
Selenium
PPTX
Testing ASP.NET - Progressive.NET
PPT
selenium.ppt
PPT
selenium.ppt
PPT
selenium.ppt
PDF
Web driver selenium simplified
PPT
PPT
Stepin evening presented
PPT
Selenium testing - Handle Elements in WebDriver
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
PDF
Web Test Automation Framework - IndicThreads Conference
PPT
Selenium
PPTX
Web UI Tests: Introduce UI tests using Selenium
PDF
Hands on Exploration of Page Objects and Abstraction Layers with Selenium Web...
PDF
Selenium -Test automation for web applications
ODP
PDF
2010 za con_jurgens_van_der_merwe
PDF
Behavior Driven Web UI Automation with Selenium and Cucumber/SpecFlow (BDDx L...
PDF
Operationalization of a solution to automate web forms insertions in the Offi...
PDF
Your Framework for Success: introduction to JavaScript Testing at Scale
Selenium
Testing ASP.NET - Progressive.NET
selenium.ppt
selenium.ppt
selenium.ppt
Web driver selenium simplified
Stepin evening presented
Selenium testing - Handle Elements in WebDriver
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
Web Test Automation Framework - IndicThreads Conference
Selenium
Web UI Tests: Introduce UI tests using Selenium
Hands on Exploration of Page Objects and Abstraction Layers with Selenium Web...
Selenium -Test automation for web applications
2010 za con_jurgens_van_der_merwe
Behavior Driven Web UI Automation with Selenium and Cucumber/SpecFlow (BDDx L...
Operationalization of a solution to automate web forms insertions in the Offi...
Your Framework for Success: introduction to JavaScript Testing at Scale
Ad

More from AnwarrChaudary (20)

PPT
Intro to Data warehousing lecture 20
PPT
Intro to Data warehousing lecture 19
PPTX
Intro to Data warehousing lecture 18
PPTX
Intro to Data warehousing lecture 17
PPTX
Intro to Data warehousing lecture 16
PPT
Intro to Data warehousing lecture 15
PPT
Intro to Data warehousing lecture 14
PPT
Intro to Data warehousing lecture 13
PPT
Intro to Data warehousing lecture 12
PPT
Intro to Data warehousing lecture 11
PPTX
Intro to Data warehousing lecture 10
PPT
Intro to Data warehousing lecture 09
PPT
Intro to Data warehousing lecture 08
PPT
Intro to Data warehousing lecture 07
PPT
Intro to Data warehousing Lecture 06
PPT
Intro to Data warehousing lecture 05
PPT
Intro to Data warehousing Lecture 04
PPT
Intro to Data warehousing lecture 03
PPT
Intro to Data warehousing lecture 02
PPT
Introduction to Data Warehouse
Intro to Data warehousing lecture 20
Intro to Data warehousing lecture 19
Intro to Data warehousing lecture 18
Intro to Data warehousing lecture 17
Intro to Data warehousing lecture 16
Intro to Data warehousing lecture 15
Intro to Data warehousing lecture 14
Intro to Data warehousing lecture 13
Intro to Data warehousing lecture 12
Intro to Data warehousing lecture 11
Intro to Data warehousing lecture 10
Intro to Data warehousing lecture 09
Intro to Data warehousing lecture 08
Intro to Data warehousing lecture 07
Intro to Data warehousing Lecture 06
Intro to Data warehousing lecture 05
Intro to Data warehousing Lecture 04
Intro to Data warehousing lecture 03
Intro to Data warehousing lecture 02
Introduction to Data Warehouse

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Classroom Observation Tools for Teachers
PPTX
Lesson notes of climatology university.
PDF
Computing-Curriculum for Schools in Ghana
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
master seminar digital applications in india
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Cell Structure & Organelles in detailed.
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Anesthesia in Laparoscopic Surgery in India
Module 4: Burden of Disease Tutorial Slides S2 2025
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Sports Quiz easy sports quiz sports quiz
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Cell Types and Its function , kingdom of life
Classroom Observation Tools for Teachers
Lesson notes of climatology university.
Computing-Curriculum for Schools in Ghana
VCE English Exam - Section C Student Revision Booklet
master seminar digital applications in india
O7-L3 Supply Chain Operations - ICLT Program
Basic Mud Logging Guide for educational purpose
O5-L3 Freight Transport Ops (International) V1.pdf
Supply Chain Operations Speaking Notes -ICLT Program

WebMate: A Tool for Testing Web 2.0 Applications

  • 1. WebMate: A Tool for Testing Web 2.0 Applications
  • 2. OutLine • Introduction • Problem Statement • Key Points • WebMate Framework • Challenges (Academic Vs Industrial) • Advantages • References
  • 3. Introduction • Software testing has became a separate specialization in IT industry. • Many techniques have been proposed. • WebMate (developed by Germans)is one of the flourishing tool for web app testing. • Today web apps are enriched on web 2.0 due to JavaScript.
  • 4. Problem Statement • The problem occurs when web applications don’t grasp same functionalities across different browsers . • TestCases were generated manually, by visually comparing the functionalities. • Transferring an academic approach on WebMate into commercial/real world.
  • 5. Key Points • Understanding DOM • Selenium Framework
  • 6. Understanding DOM • Document object model • When a web page is loaded, the browser creates a Document Object Model of the page. • The Document Object Model (DOM) is a programming interface for HTML and XML documents
  • 8. DOM
  • 9. How Selenium works? • the client; he tells the taxi driver where he wants to go and how to get there • the taxi driver; he executes the client's requests; the taxi driver sends his own requests to the car • the car; the car executes the taxi driver's requests
  • 11. Cont… • test engineer that writes the automation code; the automation code sends requests to the browser driver component • the browser driver component; it executes the test engineer requests; it sends its own request to the browser • the browser; it executes the browser driver requests
  • 14. Previous Work Limitations • More than one release cycle of web app causes problem in writing TestCases. • When any element changed during extraction of states the whole test suite breaks. • No proper refactoring tool. • Such tests were analyzed manually by screen shots in oracle part of testing or ignored sometimes.
  • 15. WebMate • A tool for automatically generating TesCases. • It automatically explores the functionalities of web applications. • Detects differences across multiple browser as well as different release cycle of same application.
  • 16. Cont.. Functionalities • Employs Selenium Framework to remote control browser. • Trigger actions. • Inspects current DOM states. • Automatic analysis and reporting .
  • 17. Cont..(How WebMate works?) • Enter URL as input • WebMate analyzes web app and learns usage model. • That Usage Model allows to run different analysis such as cross-browser compatibility checks. • Results of analysis then can be reported back to the user.
  • 19. Cont..(Usage Model) • After extraction of DOM states by triggering actions WebMate generates usage model of user interaction. • It is a graph where nodes correspond to states of the application, and a transition represents a single interaction with the application.
  • 21. Cont.. • When WebMate learns the usage model there will be an oracle suit for compatibility analysis. • This incorporate the automatic decision that either the given behavior correct or not and exactable or not. • Reference browser was baseline. • WebMate generates test and replay them in different browsers. • Then highlights the differences.
  • 24. Challenges(Research approach Vs Industrial/Real World) • In research prototype authors wanted tool to be implemented as expected easily. • In real life there would be a market for consulting services in which assembling of pilot customers were compulsory.
  • 25. Cont.. Identifying User Elements • In research approach authors only implemented analysis for DOM, JQuery and prototype event handlers. • While in Real life there is a huge amount of different programming techniques.
  • 26. Cont.. Identifying Application States • WebMate can explore the visible and active user interface elements rather than exploring other unnecessary application states. • Industrially this factor was almost covered academically. Now WebMate can supports number of state abstractions.
  • 27. Cont.. User input and authentication • Initially WebMate has hard coded login procedure for Web sites in which combination of username/password was given to access the next page. • In real life there were many input forms such as ZIP code entry etc, this was then again covered by Customization.
  • 28. Cont.. Oracles • If sequence of User Interaction results in different set of user interface elements, WebMate will report that. • WebMate to be ready for real world latter allowed to handle HTTP errors, Elements positioning, browser crash report errors.
  • 29. Cont.. Security • There is a security threat for WebMate that it couldn’t be install on server that’s why used as appliance (intranet) in real life.
  • 30. Advantages • Provide better exploration than CrawlJax • Uses existing Selenium framework. • Maximize coverage and least states.
  • 31. References • V. Dallmeier, M. Burger, T. Orth, and A. Zeller, “Webmate: Generating test cases for web 2.0,” in Software Quality. Increasing Value in Software and Systems Development. Springer, Jan. 2013, pp. 55–69. • https://www.smashingmagazine.com/2009/03/40- stand-alone-javascript-libraries-for-specific-purposes/ • https://www.quora.com/How-does-the-Selenium- WebDriver-work • https://www.w3.org/TR/DOM-Level-2- Core/introduction.html