SlideShare a Scribd company logo
1 of 26
END-TO-END
TEST AUTOMATION
USING
SELENIUM
By Naresh Chintalcheru
WHAT IS SELENIUM
● Selenium is a chemical element
● Chemical Symbol Se
● Atomic Number 34
● Atomic Mass 78.96
● Melting Point 428.9F
● Element Classification Non-Metal
● Crystal Structure Hexagonal
INTRODUCTION TO SELENIUM
Who named Automation Testing Tool as Selenium ?
● Jason Huggins and team from ThoughWorks Inc. developed the
testing tool in 2004.
● Huggins joked about competitor HP Mercury Tools saying cure
mercury poisoning by taking Selenium supplements.
● Hence the name ………
WHAT IS SELENIUM
• Selenium is an Open Source Browser based
Test Automation software.
WHAT IS SELENIUM
• Selenium is a robust set of suite of tools which
supports rapid development of test automation for
web-based applications.
• Works anywhere JavaScript is supported
• Hooks for many other languages - Java, Ruby, Python
TESTING TOOLS IN THE MARKET
Commercial Testing Tools
● QTP
● HP Mercury WinRunner
● IBM Rational Functional Tester
● Micro Focus Silk Test
Open Source Testing Tools
● Selenium
● Watir
● Sikuli
● FitNesse
WHAT IS SELENIUM
Selenium is ………
● Browser based Web Application testing tool
● Open Source License
● Extensible Framework
● Support Mobile Testing Android/iOS
● Write Test Cases using Language of choice Java, C#,
Python, Ruby & HTML
● Supports Native Browser Testing
ADVANTAGES OF SELENIUM
Advantages of Selenium
● Open Source, free of cost for companies
● Supports Native Testing for all major Browsers
● Customize According to the Requirements
● AJAX based Testing
● Only tool to support Test Case Language of Choice Java, C#,
Python & Ruby.
● Selenium 2 .., Web Drivers is developed by Google and all the
google products are tested with Selenium.
● Web 2.0 companies such as Facebook, Twitter, LinkedIn,
Groupon uses Selenium.
SELENIUM COMPONENTS
Selenium Components
● Selenium Core
● Selenium IDE
● Selenium RC (Remote Control)
● Selenium Web Drivers
● Selenium Grid
SELENIUM COMPONENTS
Selenium Components
● Selenium 1.x (ThoughtWorks Inc)
● Selenium Core
● Selenium IDE
● Selenium RC (Remote Control)
● Selenium 2.x (Google Inc)
● Selenium Web Drivers
● Selenium Grid
SELENIUM COMPONENTS
Selenium Components
● Selenium 1 (ThoughtWorks Inc)
● Selenium Core
● Selenium IDE
● Selenium RC (Remote Control)
Javascript based component
library.
SELENIUM COMPONENTS
Selenium Components
● Selenium 2 (Google Inc)
● Selenium Web Drivers
All browsers provide Native extensions
for Add-ons
Selenium Web Driver APIs allow
driving a browser Natively for
automation testing is the advanced
feature google added to Selenium.
SELENIUM CORE
Selenium Core:
● Selenium Core is a component core JavaScript Library
developed by the Jason Huggins and ThoughtWorks Team.
● Selenium Core is the foundation for other components
Selenium IDE & Selenium RC
SELENIUM IDE
Selenium IDE:
● Can do Record and Playback
● Create & edit Test Cases & Test Suites
● Extensions for Firefox
● Run Selenese Commands
● Convert Test Case to different languages
SELENIUM IDE
Execution
Commands
Try the test in
the Web based
TestRunner
Reference of the
currently selected
command
Record test
actions
Specify
commands,
including asserts
Softsmith Infotech
GENERAL SELENESE COMMANDS
● clicking a link - click or clickAndWait commands
● entering values - type command
● selecting options from a drop-down listbox - select
command
● clicking checkboxes or radio buttons - click
command
RUNNING YOUR FIRST SELENIUM
SCRIPT
● Make sure the application is in the common base
state.
● Click on the run button. Here you can also control
the speed of the execution using the
toolbar
● Once the test is run you can view the test log in the
bottom of the IDE window
CREATING A TEST SUITE
● In the Selenium IDE you
can create any number of
test cases and save them
as test suite.
● To Run the test Suite click
on the “Play entire test
suite” button as shown
below.
Test Suite
with
Test1 &
test2
PLAYING THE TEST SUITE WITH TEST
RUNNER
● Test Runner allows you to run the test case in a browser
loaded with the Selenium-Core TestRunner.
● Test runner is invoked by clicking the below Shown button
in the IDE
On Clicking the Test Runner Button you will the
window as seen in the next slide
Softsmith Infotech
TEST RUNNER
Click this button to run all the
tests
RUNNING OPTIONS
Run a Test Case
Click the Run button to run the currently displayed test case.
Run a Test Suite
Click the Run All button to run all the test cases in the
currently loaded test suite.
Stop and Start
The Pause button can be used to stop the test case while it
is running. The icon of this button then changes to indicate
the Resume button. To continue click Resume.
Stop in the Middle
You can set a breakpoint in the test case to cause it to stop
on a particular command. This is useful for debugging your
test case. To set a breakpoint, select a command, right-
click, and from the context menu select Toggle Breakpoint.
SELENIUM RC
Selenium Remote Control (RC) :
● Selenium RC is a test tool that allows you to write
automated web application UI tests in any
programming language against any HTTP website
using any mainstream JavaScript-enabled browser.
Selenium RC comes in two parts.
● A server which automatically launches and kills
browsers, and acts as a HTTP proxy for web
requests from them.
● Client libraries for your favorite computer language.
SELENIUM RC
SELENIUM WEB DRIVERS
● Selenium Web Driver is in version 2.0
● Selenium Web Driver APIs makes Native API calls to the
browser.
● Native automation faster and a little less prone to
error and browser configuration
● Does not Requires Selenium-RC Server to be
running
● Access to headless HTMLUnit can allow really fast
tests
● Selenium Web Driver will replace Selenium RC
SELENIUM GRID
● Selenium-Grid allows the Selenium-RC solution to scale
for test suites or test suites to be run in multiple
environments.
● With Selenium-Grid multiple instances of Selenium-RC
are running on various operating system and browser
configurations, each of these when launching register
with a hub. When tests are sent to the hub they are then
redirected to an available Selenium-RC, which will launch
the browser and run the test.
● This allows for running tests in parallel, with the entire
test suite theoretically taking only as long to run as the
longest individual test.
Thank You

More Related Content

What's hot

An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriverAnuraj S.L
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using SeleniumWeifeng Zhang
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...Simplilearn
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework DesignsSauce Labs
 
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...Edureka!
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Test automation
Test automationTest automation
Test automationXavier Yin
 
Selenium with Cucumber
Selenium  with Cucumber Selenium  with Cucumber
Selenium with Cucumber Knoldus Inc.
 

What's hot (20)

Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
Selenium with java
Selenium with javaSelenium with java
Selenium with java
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Concepts
Selenium ConceptsSelenium Concepts
Selenium Concepts
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
 
Selenium
SeleniumSelenium
Selenium
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium
SeleniumSelenium
Selenium
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Test automation
Test automationTest automation
Test automation
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 
Selenium with Cucumber
Selenium  with Cucumber Selenium  with Cucumber
Selenium with Cucumber
 

Similar to Automation Testing using Selenium

Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guidebigspire
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxSyedZaeem9
 
Introduction to Selenium
Introduction to SeleniumIntroduction to Selenium
Introduction to SeleniumKnoldus Inc.
 
Python selenium
Python seleniumPython selenium
Python seleniumDucat
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing ToolZeba Tahseen
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using SeleniumNikhil Kapoor
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software TestingA Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software TestingCalidad Infotech
 
Why is Selenium Software Testing Gaining Such a Huge Popularity?
Why is Selenium Software Testing Gaining Such a Huge Popularity?Why is Selenium Software Testing Gaining Such a Huge Popularity?
Why is Selenium Software Testing Gaining Such a Huge Popularity?adityakumar2080
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverPankaj Biswas
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorialprad_123
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVAmahirayavarapu
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introductionPankaj Dubey
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...sophiabelthome
 

Similar to Automation Testing using Selenium (20)

Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to Selenium
Introduction to SeleniumIntroduction to Selenium
Introduction to Selenium
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
Selenium
SeleniumSelenium
Selenium
 
11-01-2023.pptx
11-01-2023.pptx11-01-2023.pptx
11-01-2023.pptx
 
A Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software TestingA Simple Guide to Selenium Software Testing
A Simple Guide to Selenium Software Testing
 
Why is Selenium Software Testing Gaining Such a Huge Popularity?
Why is Selenium Software Testing Gaining Such a Huge Popularity?Why is Selenium Software Testing Gaining Such a Huge Popularity?
Why is Selenium Software Testing Gaining Such a Huge Popularity?
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
 
Selenium Testing
Selenium TestingSelenium Testing
Selenium Testing
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...
 
Selenium
SeleniumSelenium
Selenium
 

More from Naresh Chintalcheru

Bimodal IT for Speed and Innovation
Bimodal IT for Speed and InnovationBimodal IT for Speed and Innovation
Bimodal IT for Speed and InnovationNaresh Chintalcheru
 
Introduction to Node.js Platform
Introduction to Node.js PlatformIntroduction to Node.js Platform
Introduction to Node.js PlatformNaresh Chintalcheru
 
3rd Generation Web Application Platforms
3rd Generation Web Application Platforms3rd Generation Web Application Platforms
3rd Generation Web Application PlatformsNaresh Chintalcheru
 
Asynchronous Processing in Java/JEE/Spring
Asynchronous Processing in Java/JEE/SpringAsynchronous Processing in Java/JEE/Spring
Asynchronous Processing in Java/JEE/SpringNaresh Chintalcheru
 
Problems opening SOA to the Online Web Applications
Problems opening SOA to the Online Web ApplicationsProblems opening SOA to the Online Web Applications
Problems opening SOA to the Online Web ApplicationsNaresh Chintalcheru
 
Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...
Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...
Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...Naresh Chintalcheru
 
Java7 New Features and Code Examples
Java7 New Features and Code ExamplesJava7 New Features and Code Examples
Java7 New Features and Code ExamplesNaresh Chintalcheru
 
Design & Develop Batch Applications in Java/JEE
Design & Develop Batch Applications in Java/JEEDesign & Develop Batch Applications in Java/JEE
Design & Develop Batch Applications in Java/JEENaresh Chintalcheru
 
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using WebsocketsBuilding Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using WebsocketsNaresh Chintalcheru
 
Design & Development of Web Applications using SpringMVC
Design & Development of Web Applications using SpringMVC Design & Development of Web Applications using SpringMVC
Design & Development of Web Applications using SpringMVC Naresh Chintalcheru
 
Object-Oriented Polymorphism Unleashed
Object-Oriented Polymorphism UnleashedObject-Oriented Polymorphism Unleashed
Object-Oriented Polymorphism UnleashedNaresh Chintalcheru
 

More from Naresh Chintalcheru (16)

Cars.com Journey to AWS Cloud
Cars.com Journey to AWS CloudCars.com Journey to AWS Cloud
Cars.com Journey to AWS Cloud
 
Bimodal IT for Speed and Innovation
Bimodal IT for Speed and InnovationBimodal IT for Speed and Innovation
Bimodal IT for Speed and Innovation
 
Reactive systems
Reactive systemsReactive systems
Reactive systems
 
Introduction to Node.js Platform
Introduction to Node.js PlatformIntroduction to Node.js Platform
Introduction to Node.js Platform
 
3rd Generation Web Application Platforms
3rd Generation Web Application Platforms3rd Generation Web Application Platforms
3rd Generation Web Application Platforms
 
Asynchronous Processing in Java/JEE/Spring
Asynchronous Processing in Java/JEE/SpringAsynchronous Processing in Java/JEE/Spring
Asynchronous Processing in Java/JEE/Spring
 
Problems opening SOA to the Online Web Applications
Problems opening SOA to the Online Web ApplicationsProblems opening SOA to the Online Web Applications
Problems opening SOA to the Online Web Applications
 
Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...
Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...
Lie Cheat & Steal to build Hyper-Fast Applications using Event-Driven Archite...
 
Java7 New Features and Code Examples
Java7 New Features and Code ExamplesJava7 New Features and Code Examples
Java7 New Features and Code Examples
 
Big Trends in Big Data
Big Trends in Big DataBig Trends in Big Data
Big Trends in Big Data
 
Design & Develop Batch Applications in Java/JEE
Design & Develop Batch Applications in Java/JEEDesign & Develop Batch Applications in Java/JEE
Design & Develop Batch Applications in Java/JEE
 
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using WebsocketsBuilding Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
 
Mule ESB Fundamentals
Mule ESB FundamentalsMule ESB Fundamentals
Mule ESB Fundamentals
 
Design & Development of Web Applications using SpringMVC
Design & Development of Web Applications using SpringMVC Design & Development of Web Applications using SpringMVC
Design & Development of Web Applications using SpringMVC
 
Android Platform Architecture
Android Platform ArchitectureAndroid Platform Architecture
Android Platform Architecture
 
Object-Oriented Polymorphism Unleashed
Object-Oriented Polymorphism UnleashedObject-Oriented Polymorphism Unleashed
Object-Oriented Polymorphism Unleashed
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Recently uploaded (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Automation Testing using Selenium

  • 2. WHAT IS SELENIUM ● Selenium is a chemical element ● Chemical Symbol Se ● Atomic Number 34 ● Atomic Mass 78.96 ● Melting Point 428.9F ● Element Classification Non-Metal ● Crystal Structure Hexagonal
  • 3. INTRODUCTION TO SELENIUM Who named Automation Testing Tool as Selenium ? ● Jason Huggins and team from ThoughWorks Inc. developed the testing tool in 2004. ● Huggins joked about competitor HP Mercury Tools saying cure mercury poisoning by taking Selenium supplements. ● Hence the name ………
  • 4. WHAT IS SELENIUM • Selenium is an Open Source Browser based Test Automation software.
  • 5. WHAT IS SELENIUM • Selenium is a robust set of suite of tools which supports rapid development of test automation for web-based applications. • Works anywhere JavaScript is supported • Hooks for many other languages - Java, Ruby, Python
  • 6. TESTING TOOLS IN THE MARKET Commercial Testing Tools ● QTP ● HP Mercury WinRunner ● IBM Rational Functional Tester ● Micro Focus Silk Test Open Source Testing Tools ● Selenium ● Watir ● Sikuli ● FitNesse
  • 7. WHAT IS SELENIUM Selenium is ……… ● Browser based Web Application testing tool ● Open Source License ● Extensible Framework ● Support Mobile Testing Android/iOS ● Write Test Cases using Language of choice Java, C#, Python, Ruby & HTML ● Supports Native Browser Testing
  • 8. ADVANTAGES OF SELENIUM Advantages of Selenium ● Open Source, free of cost for companies ● Supports Native Testing for all major Browsers ● Customize According to the Requirements ● AJAX based Testing ● Only tool to support Test Case Language of Choice Java, C#, Python & Ruby. ● Selenium 2 .., Web Drivers is developed by Google and all the google products are tested with Selenium. ● Web 2.0 companies such as Facebook, Twitter, LinkedIn, Groupon uses Selenium.
  • 9. SELENIUM COMPONENTS Selenium Components ● Selenium Core ● Selenium IDE ● Selenium RC (Remote Control) ● Selenium Web Drivers ● Selenium Grid
  • 10. SELENIUM COMPONENTS Selenium Components ● Selenium 1.x (ThoughtWorks Inc) ● Selenium Core ● Selenium IDE ● Selenium RC (Remote Control) ● Selenium 2.x (Google Inc) ● Selenium Web Drivers ● Selenium Grid
  • 11. SELENIUM COMPONENTS Selenium Components ● Selenium 1 (ThoughtWorks Inc) ● Selenium Core ● Selenium IDE ● Selenium RC (Remote Control) Javascript based component library.
  • 12. SELENIUM COMPONENTS Selenium Components ● Selenium 2 (Google Inc) ● Selenium Web Drivers All browsers provide Native extensions for Add-ons Selenium Web Driver APIs allow driving a browser Natively for automation testing is the advanced feature google added to Selenium.
  • 13. SELENIUM CORE Selenium Core: ● Selenium Core is a component core JavaScript Library developed by the Jason Huggins and ThoughtWorks Team. ● Selenium Core is the foundation for other components Selenium IDE & Selenium RC
  • 14. SELENIUM IDE Selenium IDE: ● Can do Record and Playback ● Create & edit Test Cases & Test Suites ● Extensions for Firefox ● Run Selenese Commands ● Convert Test Case to different languages
  • 15. SELENIUM IDE Execution Commands Try the test in the Web based TestRunner Reference of the currently selected command Record test actions Specify commands, including asserts
  • 16. Softsmith Infotech GENERAL SELENESE COMMANDS ● clicking a link - click or clickAndWait commands ● entering values - type command ● selecting options from a drop-down listbox - select command ● clicking checkboxes or radio buttons - click command
  • 17. RUNNING YOUR FIRST SELENIUM SCRIPT ● Make sure the application is in the common base state. ● Click on the run button. Here you can also control the speed of the execution using the toolbar ● Once the test is run you can view the test log in the bottom of the IDE window
  • 18. CREATING A TEST SUITE ● In the Selenium IDE you can create any number of test cases and save them as test suite. ● To Run the test Suite click on the “Play entire test suite” button as shown below. Test Suite with Test1 & test2
  • 19. PLAYING THE TEST SUITE WITH TEST RUNNER ● Test Runner allows you to run the test case in a browser loaded with the Selenium-Core TestRunner. ● Test runner is invoked by clicking the below Shown button in the IDE On Clicking the Test Runner Button you will the window as seen in the next slide
  • 20. Softsmith Infotech TEST RUNNER Click this button to run all the tests
  • 21. RUNNING OPTIONS Run a Test Case Click the Run button to run the currently displayed test case. Run a Test Suite Click the Run All button to run all the test cases in the currently loaded test suite. Stop and Start The Pause button can be used to stop the test case while it is running. The icon of this button then changes to indicate the Resume button. To continue click Resume. Stop in the Middle You can set a breakpoint in the test case to cause it to stop on a particular command. This is useful for debugging your test case. To set a breakpoint, select a command, right- click, and from the context menu select Toggle Breakpoint.
  • 22. SELENIUM RC Selenium Remote Control (RC) : ● Selenium RC is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser. Selenium RC comes in two parts. ● A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them. ● Client libraries for your favorite computer language.
  • 24. SELENIUM WEB DRIVERS ● Selenium Web Driver is in version 2.0 ● Selenium Web Driver APIs makes Native API calls to the browser. ● Native automation faster and a little less prone to error and browser configuration ● Does not Requires Selenium-RC Server to be running ● Access to headless HTMLUnit can allow really fast tests ● Selenium Web Driver will replace Selenium RC
  • 25. SELENIUM GRID ● Selenium-Grid allows the Selenium-RC solution to scale for test suites or test suites to be run in multiple environments. ● With Selenium-Grid multiple instances of Selenium-RC are running on various operating system and browser configurations, each of these when launching register with a hub. When tests are sent to the hub they are then redirected to an available Selenium-RC, which will launch the browser and run the test. ● This allows for running tests in parallel, with the entire test suite theoretically taking only as long to run as the longest individual test.