SlideShare a Scribd company logo
Web Test Automation with Selenium Vivek Prahlad
Agenda Introduction to Selenium Demo An overview of the framework, and how it works Showcase the different ways of using Selenium FIT style tables Selenium Remote Control (RC) Limitations of Selenium
What is Selenium? A JavaScript based Open Source Web testing tool That supports testing Web 2.0 applications On multiple browsers And multiple Operating Systems
Quick Demo
Overview History: originated from TW Time Sheet application Extremely popular Open Source Web testing tool Can be used for Acceptance / Functional testing Can be used for reproducing bugs
Using Selenium Bot mode: Selenium Core HTML Tables Driven mode: Selenium Remote Control (RC) Test cases in language of choice Record mode: Selenium IDE
Architecture
Table or driver based? Table based approach fine for simple tests. No programming required Doesn't scale – duplication is a major issue. Driver approach better for 'Real' test suites Can develop tests in language of choice: C#, Java, Ruby, Python, Perl Easier data management via DB / Excel
Maintaining Test Suites Test code is just like production code! Needs refactoring, abstraction API for the application Can build tests from API building blocks Try to maintain meaning – in test names, variable names, comments, and suite organization
Evolving Test Suites Do your test suites break as the app evolves? The importance of DRY: Don't Repeat Yourself Minimize changes to test suite as app changes Avoid redoing / reworking entire test suites Avoiding duplication simpler for test code: test steps execute sequentially Methods, parametrization To some extent, Object Orientation
Demo: Refactoring Tests
Ajax support Selenium supports testing Web 2.0 applications Monitor the DOM for completion of Async calls waitForCondition() waitForValue()
Continuous Integration Run Selenium tests as part of the build Works with both Core and Driven modes (Each time a developer checks in, if necessary) Can generate HTML reports, published to entire team Helps catch bugs ASAP Addresses risk of catching bugs late in the cycle
Limitations Most limitations valid if using Selenium Core: Alerts “ Same Origin Policy” File uploads
Summary Selenium is a testing framework for Web Applications Drivers allow web testing in language of choice Test scripts are code: need maintenance, refactoring Limitations of Selenium
Thank You! Check out Selenium at:  http://www.openqa.org/selenium Questions?

More Related Content

PPT
Selenium ppt
Pavan Kumar
 
PPTX
Automation - web testing with selenium
Tzirla Rozental
 
PPTX
Automation Testing by Selenium Web Driver
Cuelogic Technologies Pvt. Ltd.
 
PPT
Selenium Concepts
Swati Bansal
 
PPT
Selenium
Ruturaj Doshi
 
PDF
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPTX
Introduction to Selenium Web Driver
Return on Intelligence
 
Selenium ppt
Pavan Kumar
 
Automation - web testing with selenium
Tzirla Rozental
 
Automation Testing by Selenium Web Driver
Cuelogic Technologies Pvt. Ltd.
 
Selenium Concepts
Swati Bansal
 
Selenium
Ruturaj Doshi
 
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
Test Automation and Selenium
Karapet Sarkisyan
 
Introduction to Selenium Web Driver
Return on Intelligence
 

What's hot (20)

PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
PPTX
Selenium
Batch2016
 
PDF
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
PPT
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
PDF
SELENIUM PPT.pdf
RebelSnowball
 
PPTX
Selenium WebDriver
Yuriy Bezgachnyuk
 
PPTX
Selenium introduction
Pankaj Dubey
 
PDF
Web automation using selenium.ppt
Ana Sarbescu
 
PPTX
Introduction to selenium
Archana Krushnan
 
PPTX
An overview of selenium webdriver
Anuraj S.L
 
PPTX
Selenium IDE
b4usolution .
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
PDF
Test Automation Using Python | Edureka
Edureka!
 
PDF
Selenium - Introduction
Amr E. Mohamed
 
PDF
Selenium IDE LOCATORS
Mindfire Solutions
 
PPTX
Selenium test automation
Srikanth Vuriti
 
PPTX
Selenium WebDriver training
Vijay Krishnan Ramaswamy
 
PPTX
Data driven Automation Framework with Selenium
Edureka!
 
PPTX
Introduction to Automation Testing
Archana Krushnan
 
PPT
Selenium Automation Framework
Mindfire Solutions
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
Selenium
Batch2016
 
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
SELENIUM PPT.pdf
RebelSnowball
 
Selenium WebDriver
Yuriy Bezgachnyuk
 
Selenium introduction
Pankaj Dubey
 
Web automation using selenium.ppt
Ana Sarbescu
 
Introduction to selenium
Archana Krushnan
 
An overview of selenium webdriver
Anuraj S.L
 
Selenium IDE
b4usolution .
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Test Automation Using Python | Edureka
Edureka!
 
Selenium - Introduction
Amr E. Mohamed
 
Selenium IDE LOCATORS
Mindfire Solutions
 
Selenium test automation
Srikanth Vuriti
 
Selenium WebDriver training
Vijay Krishnan Ramaswamy
 
Data driven Automation Framework with Selenium
Edureka!
 
Introduction to Automation Testing
Archana Krushnan
 
Selenium Automation Framework
Mindfire Solutions
 
Ad

Similar to Web Test Automation with Selenium (20)

PPT
Selenium
Daksh Sharma
 
PPTX
Introduction to the Selenium_Session1.pptx
VimalJaswal
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
ODP
Web Testen mit Selenium
openForce Information Technology GesmbH
 
PPTX
Introduction to selenium
Khaja Moiz Uddin
 
PDF
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
PPTX
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
ODP
Selenium ppt
Anirudh Raja
 
PPTX
Selenium
Jahan Murugassan
 
PPTX
Introduction to selenium
Khaja Moiz Uddin
 
PPT
Selenium Primer
Debashish Chakrabarty
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
flufftailshop
 
PPTX
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
PDF
An Overview of Selenium Grid and Its Benefits
Shubham Joshi
 
PDF
Intelligent Testing Tool: Selenium Web Driver
IRJET Journal
 
PDF
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
PPTX
Selenium ui paradigm - DDD North 2
Nathan Gloyn
 
Selenium
Daksh Sharma
 
Introduction to the Selenium_Session1.pptx
VimalJaswal
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Test Automation Using Selenium
Nikhil Kapoor
 
Introduction to selenium
Khaja Moiz Uddin
 
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
Selenium ppt
Anirudh Raja
 
Introduction to selenium
Khaja Moiz Uddin
 
Selenium Primer
Debashish Chakrabarty
 
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
Selenium Automation Testing - A Complete Guide.pdf
flufftailshop
 
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
An Overview of Selenium Grid and Its Benefits
Shubham Joshi
 
Intelligent Testing Tool: Selenium Web Driver
IRJET Journal
 
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
Selenium ui paradigm - DDD North 2
Nathan Gloyn
 
Ad

Recently uploaded (20)

PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Architecture of the Future (09152021)
EdwardMeyman
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Doc9.....................................
SofiaCollazos
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Architecture of the Future (09152021)
EdwardMeyman
 
Coupa-Overview _Assumptions presentation
annapureddyn
 

Web Test Automation with Selenium

  • 1. Web Test Automation with Selenium Vivek Prahlad
  • 2. Agenda Introduction to Selenium Demo An overview of the framework, and how it works Showcase the different ways of using Selenium FIT style tables Selenium Remote Control (RC) Limitations of Selenium
  • 3. What is Selenium? A JavaScript based Open Source Web testing tool That supports testing Web 2.0 applications On multiple browsers And multiple Operating Systems
  • 5. Overview History: originated from TW Time Sheet application Extremely popular Open Source Web testing tool Can be used for Acceptance / Functional testing Can be used for reproducing bugs
  • 6. Using Selenium Bot mode: Selenium Core HTML Tables Driven mode: Selenium Remote Control (RC) Test cases in language of choice Record mode: Selenium IDE
  • 8. Table or driver based? Table based approach fine for simple tests. No programming required Doesn't scale – duplication is a major issue. Driver approach better for 'Real' test suites Can develop tests in language of choice: C#, Java, Ruby, Python, Perl Easier data management via DB / Excel
  • 9. Maintaining Test Suites Test code is just like production code! Needs refactoring, abstraction API for the application Can build tests from API building blocks Try to maintain meaning – in test names, variable names, comments, and suite organization
  • 10. Evolving Test Suites Do your test suites break as the app evolves? The importance of DRY: Don't Repeat Yourself Minimize changes to test suite as app changes Avoid redoing / reworking entire test suites Avoiding duplication simpler for test code: test steps execute sequentially Methods, parametrization To some extent, Object Orientation
  • 12. Ajax support Selenium supports testing Web 2.0 applications Monitor the DOM for completion of Async calls waitForCondition() waitForValue()
  • 13. Continuous Integration Run Selenium tests as part of the build Works with both Core and Driven modes (Each time a developer checks in, if necessary) Can generate HTML reports, published to entire team Helps catch bugs ASAP Addresses risk of catching bugs late in the cycle
  • 14. Limitations Most limitations valid if using Selenium Core: Alerts “ Same Origin Policy” File uploads
  • 15. Summary Selenium is a testing framework for Web Applications Drivers allow web testing in language of choice Test scripts are code: need maintenance, refactoring Limitations of Selenium
  • 16. Thank You! Check out Selenium at: http://www.openqa.org/selenium Questions?