SlideShare a Scribd company logo
2
Most read
5
Most read
13
Most read
Sélénium Test Automation
Selenium – Testing Tool
Agenda
 What is selenium & why?
 Selenium Components
 Advantages of Selenium
 Automating Tests using Selenium
 Benefits to the Organization
 Limitations
 Conclusion
Test Automation
Automation
 The process of converting manual test cases to test scripts by
using automation tools is called as automation
 The test scripts can be executed on the targeted application
whenever required.
Advantages
 Saves time by executing the script without any manual effort
 We can reduce the cost to the company
 Test scripts are repeatable
 Bugs can be identified and accuracy maintained
 Test report will be generated by the tool and we can ensure
quality
What is Selenium?
 Selenium is a robust set of tools that supports rapid development
of test automation for web-based applications
 Open source
 Used for functional regression testing
 Uses JavaScript
 Embeds test automation engine in your browser
 Hooks for many other languages - Java, Ruby, Python
 Selenium operations are highly flexible & Extendable
Selenium Components
Selenium Components
Selenium IDE
 Integrated Development Environment is for record and run the
script.
 It is an add on for Firefox
 It is accountable for user’s actions
 The recorded script can be viewed in all the supported
languages
 The Recorded scripts can be run against other browsers with the
help of RC or Web Driver
Selenium Components
Selenium RC
 RC: Remote Control
 It is server and it launches all the brewers but one browser at a
time
 It acts as API and Library
 It is Responsible for the Entire automation
 It is also known as selenium1
Selenium Components
Selenium Web Driver
 The advanced version of selenium RC is known as selenium
web Driver.
 The combination of the RC and Web Driver is called as
Selenium2.0
Selenium Grid
 Grid is for parallel Execution
 We can launch all supported browsers parallel and script can be
executed on the targeted browsers parallel
Selenium Frameworks
Definition
Frameworks is a combination of classes, Methods, API’s, Libraries
these all combined together to work on one application
effectively
 Modular Frameworks
 Data Driven Frameworks
 Keyword Driver Frameworks
 Junit
 TestNG
 Hybrid Frameworks
Selenium Frameworks
Modular Frameworks
 It is basic framework and also linear framework
 The automation engineer’s will divide the application into
modules and sub modules
 They will develop the scripts for all the modules
 The scripts are stable they will integrate all the scripts in a
hierarchical order to execute
Selenium Frameworks
Data Driven Framework
 Introduced external files like excel, txt, XML, Database etc.. To
take input data as well as to give output result
 It contains the driver script it is responsible for execution
 Driver script doesn’t contain any of test cases or test data all
the test data and test cases will be available in external file
 The driver script will take the data from external file and
executes hence we call it as data driven framework
Selenium Frameworks
Keyword Driven Frameworks
 Keyword means step and it is a step by step execution
 It is very similar to manual testing, so test scripts are similar in
the Keyword Driven Framework
Types of Keyword Driven Frameworks
Junit
 It is java unit testing framework, the main purpose of junit is to
develop the script in java programming language and to
execute the scripts once execution is done it auto generates
the report result
Selenium Frameworks
TestNG
 It is testing framework and developed on top of junit they over
come all the limitations of Junit in TestNG and introduced some
new functionality
 TestNG is add on for eclipse
Hybrid Frameworks
 The combination of any two or more frameworks is nothing but
Hybrid Framework
Prerequisites
Software
 Selenium IDE, Mozilla Firefox for script recording
 Selenium Server, Java for running scripts, sikuli
Configuration
 Set path variables
 Use –multi Window option while starting server
Resource
 Users… should have basic scripting knowledge
 Hardware… No specific requirement the basic configuration for a
server – P4, 512 MB RAM is good enough.
Features
 Open source, free software
 Allows scripting in several languages like Java, C#, PHP and
Python.
 Assertion statements provide an efficient way of comparing
expected and actual results.
 Inbuilt reporting mechanism.
 Easy Installation
 Scripting Techniques :
 Easy recording and playback of scripts
 Compatibility :
 Multiple operating systems (Windows, Linux, Mac)
 Allows cross browser testing
 Integration with third party tools.
Benefits to the Organization
Automation Benefits
 Usual benefits for automation e.g. Time saving
 Time required for sanity reduced ( 12 man hours to 3 man hours,
build frequency of 4-5 builds a month )
 For one of the projects, Sanity suite automated : 243 test cases
 Good Returns on Zero Investment
Increasing Productivity
 Cost saving as it is open-source
 QA engineers get familiar with scripting languages like Ruby,
Perl etc apart from manual testing
Caveat
 Full automation and maintenance has not been evaluated and
that can be a risk
Selenium Best Practices
Automation Benefits
 Usual benefits for automation e.g. Time saving
 Time required for sanity reduced ( 12 man hours to 3 man hours,
build frequency of 4-5 builds a month )
 For one of the projects, Sanity suite automated : 243 test cases
 Good Returns on Zero Investment
Increasing Productivity
 Cost saving as it is open-source
 QA engineers get familiar with scripting languages like Ruby,
Perl etc apart from manual testing
Caveat
 Full automation and maintenance has not been evaluated and
that can be a risk
Limitations
 It does not support and Desktop applications
 Its and open source tool so in case of any technical issues you
need to rely on the selenium community forums to get your issue
resolved.
 You need to know at least one of the supported language very
well in order to automate your application successfully.
 No inbuilt reporting capability so you need plugins like JUnit and
TestNG for test reports
 Lack of exhaustive formal guidance material
Note: Selenium Support Desktop applications using Sikuli.
Selenium test automation

More Related Content

PPTX
Test Automation and Selenium
PPTX
Introduction to selenium
PPTX
test_automation_POC
PPT
Selenium Presentation at Engineering Colleges
PDF
Introduction to Data Science
PPTX
ISO 9000
PDF
Automation Testing using Selenium
Test Automation and Selenium
Introduction to selenium
test_automation_POC
Selenium Presentation at Engineering Colleges
Introduction to Data Science
ISO 9000
Automation Testing using Selenium

What's hot (20)

PPT
Selenium Concepts
PPT
QSpiders - Automation using Selenium
PPTX
Automation Testing by Selenium Web Driver
PDF
Automation Testing using Selenium Webdriver
PPTX
Selenium introduction
PPT
Selenium
PPT
Selenium ppt
PPTX
An overview of selenium webdriver
PDF
Selenium - Introduction
PPTX
Selenium- A Software Testing Tool
PPT
Automated Web Testing Using Selenium
PPTX
Automation - web testing with selenium
PDF
Selenium
PPTX
Selenium
PPTX
Selenium ppt
PPT
Selenium Automation Framework
PPTX
Selenium WebDriver training
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PPTX
Python selenium
PDF
Selenium presentation
Selenium Concepts
QSpiders - Automation using Selenium
Automation Testing by Selenium Web Driver
Automation Testing using Selenium Webdriver
Selenium introduction
Selenium
Selenium ppt
An overview of selenium webdriver
Selenium - Introduction
Selenium- A Software Testing Tool
Automated Web Testing Using Selenium
Automation - web testing with selenium
Selenium
Selenium
Selenium ppt
Selenium Automation Framework
Selenium WebDriver training
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Python selenium
Selenium presentation
Ad

Viewers also liked (8)

PPT
Selenium ppt
PPTX
Introductie at framework
ODP
Test Framework for Acne Selenium+Sahi
PDF
Sahi presentation on BOJUG
DOCX
Sahi my expirience
PPT
Selenium
PPT
Automated analysis 112070804013
PPTX
Introduction to Selenium Web Driver
Selenium ppt
Introductie at framework
Test Framework for Acne Selenium+Sahi
Sahi presentation on BOJUG
Sahi my expirience
Selenium
Automated analysis 112070804013
Introduction to Selenium Web Driver
Ad

Similar to Selenium test automation (20)

PPTX
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
PDF
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
PPTX
test-automation-selenium-160216124839.pptx
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
PPTX
What is Selenium Introduction to Selenium Testing.pptx
PPTX
A Simple Guide to Selenium Software Testing
PPTX
Test Automation Using Selenium
PDF
What is Selenium Automation Testing.pdf
PDF
Learn Selenium - Online Guide
PPT
Karate _Framework.ppt
DOCX
What is selenium
PPT
Selenium Primer
PPTX
Automation Testing by Ashwin Shiv
PDF
Reasons behind selenium automation testing popularity
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
PDF
Leveraging Open Source Automation: A Selenium WebDriver Example
PDF
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
PPTX
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
PPTX
Selenium
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
test-automation-selenium-160216124839.pptx
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
What is Selenium Introduction to Selenium Testing.pptx
A Simple Guide to Selenium Software Testing
Test Automation Using Selenium
What is Selenium Automation Testing.pdf
Learn Selenium - Online Guide
Karate _Framework.ppt
What is selenium
Selenium Primer
Automation Testing by Ashwin Shiv
Reasons behind selenium automation testing popularity
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Leveraging Open Source Automation: A Selenium WebDriver Example
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
Selenium

Recently uploaded (20)

PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
A Presentation on Artificial Intelligence
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
sap open course for s4hana steps from ECC to s4
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
Dropbox Q2 2025 Financial Results & Investor Presentation
A comparative analysis of optical character recognition models for extracting...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Network Security Unit 5.pdf for BCA BBA.
A Presentation on Artificial Intelligence
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Machine learning based COVID-19 study performance prediction
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25-Week II

Selenium test automation

  • 3. Agenda  What is selenium & why?  Selenium Components  Advantages of Selenium  Automating Tests using Selenium  Benefits to the Organization  Limitations  Conclusion
  • 4. Test Automation Automation  The process of converting manual test cases to test scripts by using automation tools is called as automation  The test scripts can be executed on the targeted application whenever required. Advantages  Saves time by executing the script without any manual effort  We can reduce the cost to the company  Test scripts are repeatable  Bugs can be identified and accuracy maintained  Test report will be generated by the tool and we can ensure quality
  • 5. What is Selenium?  Selenium is a robust set of tools that supports rapid development of test automation for web-based applications  Open source  Used for functional regression testing  Uses JavaScript  Embeds test automation engine in your browser  Hooks for many other languages - Java, Ruby, Python  Selenium operations are highly flexible & Extendable
  • 7. Selenium Components Selenium IDE  Integrated Development Environment is for record and run the script.  It is an add on for Firefox  It is accountable for user’s actions  The recorded script can be viewed in all the supported languages  The Recorded scripts can be run against other browsers with the help of RC or Web Driver
  • 8. Selenium Components Selenium RC  RC: Remote Control  It is server and it launches all the brewers but one browser at a time  It acts as API and Library  It is Responsible for the Entire automation  It is also known as selenium1
  • 9. Selenium Components Selenium Web Driver  The advanced version of selenium RC is known as selenium web Driver.  The combination of the RC and Web Driver is called as Selenium2.0 Selenium Grid  Grid is for parallel Execution  We can launch all supported browsers parallel and script can be executed on the targeted browsers parallel
  • 10. Selenium Frameworks Definition Frameworks is a combination of classes, Methods, API’s, Libraries these all combined together to work on one application effectively  Modular Frameworks  Data Driven Frameworks  Keyword Driver Frameworks  Junit  TestNG  Hybrid Frameworks
  • 11. Selenium Frameworks Modular Frameworks  It is basic framework and also linear framework  The automation engineer’s will divide the application into modules and sub modules  They will develop the scripts for all the modules  The scripts are stable they will integrate all the scripts in a hierarchical order to execute
  • 12. Selenium Frameworks Data Driven Framework  Introduced external files like excel, txt, XML, Database etc.. To take input data as well as to give output result  It contains the driver script it is responsible for execution  Driver script doesn’t contain any of test cases or test data all the test data and test cases will be available in external file  The driver script will take the data from external file and executes hence we call it as data driven framework
  • 13. Selenium Frameworks Keyword Driven Frameworks  Keyword means step and it is a step by step execution  It is very similar to manual testing, so test scripts are similar in the Keyword Driven Framework Types of Keyword Driven Frameworks Junit  It is java unit testing framework, the main purpose of junit is to develop the script in java programming language and to execute the scripts once execution is done it auto generates the report result
  • 14. Selenium Frameworks TestNG  It is testing framework and developed on top of junit they over come all the limitations of Junit in TestNG and introduced some new functionality  TestNG is add on for eclipse Hybrid Frameworks  The combination of any two or more frameworks is nothing but Hybrid Framework
  • 15. Prerequisites Software  Selenium IDE, Mozilla Firefox for script recording  Selenium Server, Java for running scripts, sikuli Configuration  Set path variables  Use –multi Window option while starting server Resource  Users… should have basic scripting knowledge  Hardware… No specific requirement the basic configuration for a server – P4, 512 MB RAM is good enough.
  • 16. Features  Open source, free software  Allows scripting in several languages like Java, C#, PHP and Python.  Assertion statements provide an efficient way of comparing expected and actual results.  Inbuilt reporting mechanism.  Easy Installation  Scripting Techniques :  Easy recording and playback of scripts  Compatibility :  Multiple operating systems (Windows, Linux, Mac)  Allows cross browser testing  Integration with third party tools.
  • 17. Benefits to the Organization Automation Benefits  Usual benefits for automation e.g. Time saving  Time required for sanity reduced ( 12 man hours to 3 man hours, build frequency of 4-5 builds a month )  For one of the projects, Sanity suite automated : 243 test cases  Good Returns on Zero Investment Increasing Productivity  Cost saving as it is open-source  QA engineers get familiar with scripting languages like Ruby, Perl etc apart from manual testing Caveat  Full automation and maintenance has not been evaluated and that can be a risk
  • 18. Selenium Best Practices Automation Benefits  Usual benefits for automation e.g. Time saving  Time required for sanity reduced ( 12 man hours to 3 man hours, build frequency of 4-5 builds a month )  For one of the projects, Sanity suite automated : 243 test cases  Good Returns on Zero Investment Increasing Productivity  Cost saving as it is open-source  QA engineers get familiar with scripting languages like Ruby, Perl etc apart from manual testing Caveat  Full automation and maintenance has not been evaluated and that can be a risk
  • 19. Limitations  It does not support and Desktop applications  Its and open source tool so in case of any technical issues you need to rely on the selenium community forums to get your issue resolved.  You need to know at least one of the supported language very well in order to automate your application successfully.  No inbuilt reporting capability so you need plugins like JUnit and TestNG for test reports  Lack of exhaustive formal guidance material Note: Selenium Support Desktop applications using Sikuli.