SlideShare a Scribd company logo
Testing Dynamic Web SitesV. Narayan RamanTyto Software
Xpath does not query by text well    <div>This is <b>Bold</b></div>//div[text()=‘This is Bold’] ?_div(“This is Bold”)Waits are needed at each stepExplicit waits: Have to code for worst case scenarioImplicit waits: Recover and retryTester is forced to understand HTML structures and Javascript nuances. Common Problems
Proxy based approachInjects Javascript into browserAny Javascript enabled browser, any OSDrives a real browserIdentifies elements smartlyImplicitly waits for AJAX, page loads and timeoutsSahi – Web Test Automation Tool
//table[@id='listing']/tbody/tr[2]/td[4]/input//table[@id='listing']/tbody/tr[3]/td[4]/inputOr _textbox(“q”, _near(_cell("Core Java")))_textbox(“q”, _near(_cell("Ruby for Rails")))XPathvs Sahi APIs
Visible properties take precedenceTests should reflect what the tester seesNot what the developer wroteFrames, iframes, layouts are all developer aids to partition information. They need not be visible in tests, though they should be assertable.Waits are inherent in a web application and should be automatically handledSahi Philosophy
Use various visible attributes firstText, Value, Alt, Title etc.Allow identification in a context_checkbox(“x”, _near(_cell(“name”)))Allow Regular Expression and fuzzy matchesNormalize white spaces across browsersAutomatically look through frames and iframes.Sahi Identification Strategy
The simplest possible thingWhat is not allowed by the Browser Sandbox, delegate to proxyFile Uploads401 AuthenticationFile downloadsBrowsers may changeJavascript and Proxies are here to stayProxy based approach
Allows recording, debugging and object identification on any browser via injected JavascriptCan add automation on the flyEven wrap flash/applets etc. when neededMoving between domains, even accessing multi domains in frames/iframes are possible.Proxy based approach
Allows powerful Sahi APIs, normalized across browsersAllows monitoring of AJAX requests and Frame loads to automatically wait till no activityJavascript events do not require focus, allowing parallel playbackInjected Javascript

More Related Content

PPT
Introduction to javaScript
Neil Ghosh
 
PPT
Pentest Application With GraphQL | Null Bangalore Meetup
Divyanshu
 
PPTX
Introduction to JavaScript
Marlon Jamera
 
PDF
Sql exception and class notfoundexception
Rohit Singh
 
PPT
Basic Hibernate Final
Rafael Coutinho
 
PDF
Pentesting GraphQL Applications
Neelu Tripathy
 
PPT
Java script
ITz_1
 
PPT
OWASP Top 10 : Let’s know & solve
Harit Kothari
 
Introduction to javaScript
Neil Ghosh
 
Pentest Application With GraphQL | Null Bangalore Meetup
Divyanshu
 
Introduction to JavaScript
Marlon Jamera
 
Sql exception and class notfoundexception
Rohit Singh
 
Basic Hibernate Final
Rafael Coutinho
 
Pentesting GraphQL Applications
Neelu Tripathy
 
Java script
ITz_1
 
OWASP Top 10 : Let’s know & solve
Harit Kothari
 

Similar to GTAC 2010 - (20)

PPT
Web performance testing
Patrick Meenan
 
ZIP
Automated Frontend Testing
Neil Crosby
 
ODP
Developing and testing ajax components
Ignacio Coloma
 
PDF
Service Oriented Integration With ServiceMix
Bruce Snyder
 
PPT
Boston Computing Review - Java Server Pages
John Brunswick
 
PPT
I Feel Pretty
John Quaglia
 
PPT
Jsp
DSKUMAR G
 
PPT
Ajax
devisp
 
PPT
JSP Standart Tag Lİbrary - JSTL
seleciii44
 
PPT
Test strategy for web development
alice yang
 
PPT
GWT
yuvalb
 
PPTX
Single Page WebApp Architecture
Morgan Cheng
 
ODP
Top 10 Web Security Vulnerabilities
Carol McDonald
 
PPT
Developing PHP Web Applications with the Raxan Framework
Raymond Irving
 
PPTX
Unit III.pptx IT3401 web essentials presentatio
lakshitakumar291
 
PPT
Dhanasekaran 2008-2009 Quick Test Pro Presentation
Dhanasekaran Nagarajan
 
PPT
First QTP Tutorial
tjdhans
 
PPT
QTP Tutorial Slides Presentation.
Jaya Priya
 
PPTX
Understanding Web Applications and Web Testing Tools - QAConf
narayanraman
 
PDF
NHibernate (The ORM For .NET Platform)
Samnang Chhun
 
Web performance testing
Patrick Meenan
 
Automated Frontend Testing
Neil Crosby
 
Developing and testing ajax components
Ignacio Coloma
 
Service Oriented Integration With ServiceMix
Bruce Snyder
 
Boston Computing Review - Java Server Pages
John Brunswick
 
I Feel Pretty
John Quaglia
 
Ajax
devisp
 
JSP Standart Tag Lİbrary - JSTL
seleciii44
 
Test strategy for web development
alice yang
 
GWT
yuvalb
 
Single Page WebApp Architecture
Morgan Cheng
 
Top 10 Web Security Vulnerabilities
Carol McDonald
 
Developing PHP Web Applications with the Raxan Framework
Raymond Irving
 
Unit III.pptx IT3401 web essentials presentatio
lakshitakumar291
 
Dhanasekaran 2008-2009 Quick Test Pro Presentation
Dhanasekaran Nagarajan
 
First QTP Tutorial
tjdhans
 
QTP Tutorial Slides Presentation.
Jaya Priya
 
Understanding Web Applications and Web Testing Tools - QAConf
narayanraman
 
NHibernate (The ORM For .NET Platform)
Samnang Chhun
 
Ad

Recently uploaded (20)

PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Doc9.....................................
SofiaCollazos
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Software Development Methodologies in 2025
KodekX
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
The Future of Artificial Intelligence (AI)
Mukul
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Ad

GTAC 2010 -

  • 1. Testing Dynamic Web SitesV. Narayan RamanTyto Software
  • 2. Xpath does not query by text well <div>This is <b>Bold</b></div>//div[text()=‘This is Bold’] ?_div(“This is Bold”)Waits are needed at each stepExplicit waits: Have to code for worst case scenarioImplicit waits: Recover and retryTester is forced to understand HTML structures and Javascript nuances. Common Problems
  • 3. Proxy based approachInjects Javascript into browserAny Javascript enabled browser, any OSDrives a real browserIdentifies elements smartlyImplicitly waits for AJAX, page loads and timeoutsSahi – Web Test Automation Tool
  • 5. Visible properties take precedenceTests should reflect what the tester seesNot what the developer wroteFrames, iframes, layouts are all developer aids to partition information. They need not be visible in tests, though they should be assertable.Waits are inherent in a web application and should be automatically handledSahi Philosophy
  • 6. Use various visible attributes firstText, Value, Alt, Title etc.Allow identification in a context_checkbox(“x”, _near(_cell(“name”)))Allow Regular Expression and fuzzy matchesNormalize white spaces across browsersAutomatically look through frames and iframes.Sahi Identification Strategy
  • 7. The simplest possible thingWhat is not allowed by the Browser Sandbox, delegate to proxyFile Uploads401 AuthenticationFile downloadsBrowsers may changeJavascript and Proxies are here to stayProxy based approach
  • 8. Allows recording, debugging and object identification on any browser via injected JavascriptCan add automation on the flyEven wrap flash/applets etc. when neededMoving between domains, even accessing multi domains in frames/iframes are possible.Proxy based approach
  • 9. Allows powerful Sahi APIs, normalized across browsersAllows monitoring of AJAX requests and Frame loads to automatically wait till no activityJavascript events do not require focus, allowing parallel playbackInjected Javascript