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

PPTX
Selenium
ODP
Selenium ppt
PPT
QSpiders - Automation using Selenium
PDF
Automation Testing using Selenium
PPTX
Automation Testing by Selenium Web Driver
PPTX
Selenium ppt
PDF
Selenium IDE LOCATORS
PPTX
Test Automation and Selenium
Selenium
Selenium ppt
QSpiders - Automation using Selenium
Automation Testing using Selenium
Automation Testing by Selenium Web Driver
Selenium ppt
Selenium IDE LOCATORS
Test Automation and Selenium

What's hot (20)

PPSX
PPTX
An overview of selenium webdriver
PPTX
Introduction to Selenium Web Driver
PPT
Test automation using selenium
PPT
Software Testing Life Cycle
PPTX
Selenium WebDriver training
PPT
PPTX
Test automation using selenium
PPT
Selenium Presentation at Engineering Colleges
PPT
Selenium Automation Framework
DOCX
Selenium WebDriver FAQ's
PDF
SELENIUM PPT.pdf
PPT
Selenium
PPTX
Data driven Automation Framework with Selenium
PDF
Introduction to Selenium Automation
PPTX
Selenium introduction
PPTX
Automation - web testing with selenium
PDF
Introduction to ASP.NET Core
PPT
Selenium Concepts
An overview of selenium webdriver
Introduction to Selenium Web Driver
Test automation using selenium
Software Testing Life Cycle
Selenium WebDriver training
Test automation using selenium
Selenium Presentation at Engineering Colleges
Selenium Automation Framework
Selenium WebDriver FAQ's
SELENIUM PPT.pdf
Selenium
Data driven Automation Framework with Selenium
Introduction to Selenium Automation
Selenium introduction
Automation - web testing with selenium
Introduction to ASP.NET Core
Selenium Concepts
Ad

Similar to Web Test Automation with Selenium (20)

PPT
Selenium
PPT
Selenium Primer
PPTX
Test Automation Using Selenium
PPTX
test-automation-selenium-160216124839.pptx
PPTX
What is Selenium Introduction to Selenium Testing.pptx
PPTX
Automated Web Testing With Selenium
PPTX
Selenium ui paradigm - DDD North 2
PPTX
Introduction to selenium
PPTX
Step by step instructions to execute selenium automation testing
PPT
Selenium Primer
PPTX
Selenium
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
PPTX
Selenium test automation
PPT
Selenium Introduction
DOC
DOCX
What is selenium
PDF
white and grey modern website application education project group school pres...
PDF
selenium
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PPT
Karate _Framework.ppt
Selenium
Selenium Primer
Test Automation Using Selenium
test-automation-selenium-160216124839.pptx
What is Selenium Introduction to Selenium Testing.pptx
Automated Web Testing With Selenium
Selenium ui paradigm - DDD North 2
Introduction to selenium
Step by step instructions to execute selenium automation testing
Selenium Primer
Selenium
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Selenium test automation
Selenium Introduction
What is selenium
white and grey modern website application education project group school pres...
selenium
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Karate _Framework.ppt
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PDF
Encapsulation theory and applications.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Understanding_Digital_Forensics_Presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
Encapsulation theory and applications.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
MYSQL Presentation for SQL database connectivity
Digital-Transformation-Roadmap-for-Companies.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Chapter 3 Spatial Domain Image Processing.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Understanding_Digital_Forensics_Presentation.pptx

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?