SlideShare a Scribd company logo
Test Automation Using
Selenium
By Nikhil Kapoor
What is Test Automation?
 Test automation is the use of software
 To set test preconditions.
 To control the execution of tests.
 To compare the actual outcomes to predicted
outcomes.
 To report the Execution Status.
 Commonly, test automation involves automating
a manual process already in place that uses a
formalized testing process.
Why and When To Automate?
 Frequent regression testing
 Repeated test case Execution is required
 User Acceptance Tests
 Faster Feedback to the developers
 Reduce the Human Effort
 Test same application on multiple environments
Selenium
Introduction
 Selenium is a free (open source) automated
testing suite for web applications across different
browsers and platforms.
 Selenium allows scripting in several languages like Java,
C#, PHP and Python.
 Selenium is not just a single tool but a suite of
software's, each catering to different testing needs of an
organization.
Introduction (contd.)
 Selenium is comprised of four components:-
 Selenium Integrated Development Environment (IDE)
 Selenium Remote Control (RC)
 WebDriver
 Selenium Grid
 At the moment, Selenium RC and WebDriver are merged into a
single framework to form Selenium 2(aka. Selenium WebDriver).
Selenium 1, by the way, refers to Selenium RC.
Development and Evolution of
Selenium
 Primarily, Selenium was created by Jason Huggins in 2004.
An engineer at ThoughtWorks, he was working on a web
application that required frequent testing. Having realized that
the repetitious manual testing of their application was
becoming more and more inefficient, he created a JavaScript
program that would automatically control the browser's
actions. He named this program as the
"JavaScriptTestRunner."
 Seeing potential in this idea to help automate other web
applications, he made JavaScriptRunner open-source which
was later re-named as Selenium Core.
Development and Evolution of
Selenium (contd.)
Birth of Selenium Remote Control (Selenium RC)
Unfortunately; testers using Selenium Core had to install
the whole application under test and the web server on
their own local computers because of the restrictions
imposed by the same origin policy. So another
ThoughtWork's engineer, Paul Hammant, decided to
create a server that will act as an HTTP proxy to "trick"
the browser into believing that Selenium Core and the
web application being tested come from the same
domain. This system became known as the Selenium
Remote Control or Selenium 1.
Development and Evolution of
Selenium (contd.)
Birth of Selenium Grid
Selenium Grid was developed by Patrick Lightbody to
address the need of minimizing test execution times as much
as possible. It was capable of capturing browser screenshots
during significant stages, and also of sending out Selenium
commands to different machines simultaneously.
Birth of Selenium IDE
Shinya Kasatani of Japan created Selenium IDE, a Firefox
extension that can automate the browser through a
record-and-playback feature. He came up with this idea to
further increase the speed in creating test cases. He
donated Selenium IDE to the Selenium Project in 2006.
Development and Evolution of
Selenium (contd.)
Birth of WebDriver
Simon Stewart created WebDriver circa 2006 when
browsers and web applications were becoming more
powerful and more restrictive with JavaScript programs
like Selenium Core. It was the first cross- platform
testing framework that could control the browser from
the OS level.
Birth of Selenium 2
In 2008, the whole Selenium Team decided to merge WebDriver and
Selenium RC to form a more powerful tool called Selenium 2, with
WebDriver being the core. Currently, Selenium RC is still being developed
but only in maintenance mode. Most of the Selenium Project's efforts are
now focused on Selenium 2.
Selenium RC
 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 was the main Selenium project for a long
time, before the WebDriver/Selenium merge brought up
Selenium 2, the newest and more powerful tool.
 Now Selenium 1 is deprecated and is not actively
supported (mostly in maintenance mode).
Selenium RC (contd..)
Pros Cons
 Supports all browsers
 Can perform looping and
conditional operations
 Has an easy and small API
 Faster execution than IDE
 Has built in test result generator
 Complicated Configuration
 Required programming experience
 Doesn’t support record/ playback
 Slower execution than WebDriver
 Does not support testing of iOS/
Android applications
 Requires to start the selenium RC
server to run scripts
Selenium IDE
 Selenium IDE is a Firefox plugin which records
and plays back user interactions with the
browser.
 Selenium IDE is simply intended as a rapid
prototyping tool.
 For serious, robust test automation either
Selenium 2 or Selenium 1 to be used with one of
the many supported programming languages.
Selenium IDE (contd..)
Pros Cons
 Very easy to use and install
 Programming knowledge is not
required (though some knowledge of
HTML might helps)
 Support record/playback
 Can export tests to formats usable
in RC and WebDriver
 Does not require any server to run
scripts
 Has built-in help and test results
reporting module
 Available only in Firefox
 No support for conditional and
looping operators
 Designed only to create prototypes
of test
 Test execution slow as compared to
that of Selenium WebDriver and RC
 Does not support testing of
iOS/Android applications
Selenium WebDriver
 Selenium WebDriver project was created by Simon Stewart, it is a
clean and fast framework for browser testing automation. Selenium
WebDriver itself is more robust than both Selenium RC and
Selenium IDE. It uses a more stable approach to automate browser
actions. Rather than calling any other external JavaScript,
WebDriver directly interacts with the browser and its components
 The supported languages are the same as those in Selenium RC.
 Java
 C#
 PHP
 Python
 Perl
 Ruby
Selenium WebDriver (contd..)
Pros Cons
 Simpler Installation than
Selenium RC
 Communicates directly to the
browser
 Browser interaction is more
realistic
 No need of separate component
such as the RC Server
 Faster execution time than IDE
and RC
 Installation is more complicated
than Selenium IDE
 Requires programming
knowledge
 Has no built-in mechanism for
logging runtime messages and
generating test results.
Selenium Grid
 Selenium Grid is a tool used to run your tests on
different machines against different browsers in
parallel.
 That is, running multiple tests at the same time
against different machines running different
browsers and operating systems.
Selenium Grid (contd..)
 Advantages:-
 You can run your tests against multiple
browsers, multiple versions of browser, and
browsers running on different operating
systems.
 Reduces scripts execution time
Browser and Environment
Support
 Because of their architectural differences, Selenium IDE, Selenium RC, and WebDriver support
different sets of browsers and operating environments.
Selenium IDE Selenium RC WebDriver
Browser
Support
Mozilla Firefox
Mozilla Firefox
Internet Explorer
Google Chrome
Safari Opera
Konqueror Others
Internet Explorer versions 6 to 9, both 32 and 64-bit
Firefox 3.0, 3.5, 3.6, 4.0, 5.0, 6, 7 and above
(current version is 16.0.1)
Google Chrome 12.0.712.0 and above
(current version is 22.0.1229.94 m)
Opera 11.5 and above
(current version is 12.02)
Android - 2.3 and above for phones and tablets
(devices & emulators)
iOS 3+ for phones (devices & emulators) and 3.2+ for tablets
(devices & emulators)
HtmlUnit 2.9 and above
(current version is 2.10)
Operating
System
Windows Mac
OS X Linux
Windows Mac OS X
Linux Solaris
All operating systems where the browsers above can run.
THANK YOU

More Related Content

What's hot

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
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
Anuraj S.L
 
Selenium
SeleniumSelenium
Selenium
Kalyan ch
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
 
Selenium
SeleniumSelenium
Selenium
Batch2016
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaSelenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Edureka!
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
Naresh Chintalcheru
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
Pankaj Dubey
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
Ana Sarbescu
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium
SeleniumSelenium
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
Weifeng Zhang
 
Webinar: Selenium WebDriver - Automation Uncomplicated
Webinar: Selenium WebDriver - Automation UncomplicatedWebinar: Selenium WebDriver - Automation Uncomplicated
Webinar: Selenium WebDriver - Automation Uncomplicated
Edureka!
 
Setting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation FrameworkSetting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation Framework
valuebound
 
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Edureka!
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
Mindfire Solutions
 

What's hot (20)

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 ...
 
An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Selenium
SeleniumSelenium
Selenium
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaSelenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Webinar: Selenium WebDriver - Automation Uncomplicated
Webinar: Selenium WebDriver - Automation UncomplicatedWebinar: Selenium WebDriver - Automation Uncomplicated
Webinar: Selenium WebDriver - Automation Uncomplicated
 
Setting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation FrameworkSetting up Page Object Model in Automation Framework
Setting up Page Object Model in Automation Framework
 
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Train...
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 

Similar to Test Automation Using Selenium

Python selenium
Python seleniumPython selenium
Python selenium
Ducat
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Simplilearn
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
Reasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularityReasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularity
Ray Business Technologies
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
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
Calidad Infotech
 
Testing world selenium_start_chapter1 (1)
Testing world selenium_start_chapter1 (1)Testing world selenium_start_chapter1 (1)
Testing world selenium_start_chapter1 (1)
Testing World
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
bigspire
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
usha kannappan
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
Archana Krushnan
 
selenium
selenium selenium
selenium
ayeshsiddika
 
white and grey modern website application education project group school pres...
white and grey modern website application education project group school pres...white and grey modern website application education project group school pres...
white and grey modern website application education project group school pres...
DreamTheory
 
Step by step instructions to execute selenium automation testing
Step by step instructions to execute selenium automation testingStep by step instructions to execute selenium automation testing
Step by step instructions to execute selenium automation testing
Alisha Henderson
 
Selenium
SeleniumSelenium
Selenium
Satyam Pandey
 
Selenium
SeleniumSelenium
Selenium
Milind Hali
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
selenium-webdriver-interview-questions.pdf
selenium-webdriver-interview-questions.pdfselenium-webdriver-interview-questions.pdf
selenium-webdriver-interview-questions.pdf
AnuragMourya8
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
Colin McDonald
 
What is selenium
What is seleniumWhat is selenium
What is selenium
sachin patil
 

Similar to Test Automation Using Selenium (20)

Python selenium
Python seleniumPython selenium
Python selenium
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
Reasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularityReasons behind selenium automation testing popularity
Reasons behind selenium automation testing popularity
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.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
 
Testing world selenium_start_chapter1 (1)
Testing world selenium_start_chapter1 (1)Testing world selenium_start_chapter1 (1)
Testing world selenium_start_chapter1 (1)
 
Selenium
SeleniumSelenium
Selenium
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
selenium
selenium selenium
selenium
 
white and grey modern website application education project group school pres...
white and grey modern website application education project group school pres...white and grey modern website application education project group school pres...
white and grey modern website application education project group school pres...
 
Step by step instructions to execute selenium automation testing
Step by step instructions to execute selenium automation testingStep by step instructions to execute selenium automation testing
Step by step instructions to execute selenium automation testing
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
 
selenium-webdriver-interview-questions.pdf
selenium-webdriver-interview-questions.pdfselenium-webdriver-interview-questions.pdf
selenium-webdriver-interview-questions.pdf
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 

Recently uploaded

To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 

Recently uploaded (20)

To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 

Test Automation Using Selenium

  • 2. What is Test Automation?  Test automation is the use of software  To set test preconditions.  To control the execution of tests.  To compare the actual outcomes to predicted outcomes.  To report the Execution Status.  Commonly, test automation involves automating a manual process already in place that uses a formalized testing process.
  • 3. Why and When To Automate?  Frequent regression testing  Repeated test case Execution is required  User Acceptance Tests  Faster Feedback to the developers  Reduce the Human Effort  Test same application on multiple environments
  • 5. Introduction  Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms.  Selenium allows scripting in several languages like Java, C#, PHP and Python.  Selenium is not just a single tool but a suite of software's, each catering to different testing needs of an organization.
  • 6. Introduction (contd.)  Selenium is comprised of four components:-  Selenium Integrated Development Environment (IDE)  Selenium Remote Control (RC)  WebDriver  Selenium Grid  At the moment, Selenium RC and WebDriver are merged into a single framework to form Selenium 2(aka. Selenium WebDriver). Selenium 1, by the way, refers to Selenium RC.
  • 7. Development and Evolution of Selenium  Primarily, Selenium was created by Jason Huggins in 2004. An engineer at ThoughtWorks, he was working on a web application that required frequent testing. Having realized that the repetitious manual testing of their application was becoming more and more inefficient, he created a JavaScript program that would automatically control the browser's actions. He named this program as the "JavaScriptTestRunner."  Seeing potential in this idea to help automate other web applications, he made JavaScriptRunner open-source which was later re-named as Selenium Core.
  • 8. Development and Evolution of Selenium (contd.) Birth of Selenium Remote Control (Selenium RC) Unfortunately; testers using Selenium Core had to install the whole application under test and the web server on their own local computers because of the restrictions imposed by the same origin policy. So another ThoughtWork's engineer, Paul Hammant, decided to create a server that will act as an HTTP proxy to "trick" the browser into believing that Selenium Core and the web application being tested come from the same domain. This system became known as the Selenium Remote Control or Selenium 1.
  • 9. Development and Evolution of Selenium (contd.) Birth of Selenium Grid Selenium Grid was developed by Patrick Lightbody to address the need of minimizing test execution times as much as possible. It was capable of capturing browser screenshots during significant stages, and also of sending out Selenium commands to different machines simultaneously. Birth of Selenium IDE Shinya Kasatani of Japan created Selenium IDE, a Firefox extension that can automate the browser through a record-and-playback feature. He came up with this idea to further increase the speed in creating test cases. He donated Selenium IDE to the Selenium Project in 2006.
  • 10. Development and Evolution of Selenium (contd.) Birth of WebDriver Simon Stewart created WebDriver circa 2006 when browsers and web applications were becoming more powerful and more restrictive with JavaScript programs like Selenium Core. It was the first cross- platform testing framework that could control the browser from the OS level. Birth of Selenium 2 In 2008, the whole Selenium Team decided to merge WebDriver and Selenium RC to form a more powerful tool called Selenium 2, with WebDriver being the core. Currently, Selenium RC is still being developed but only in maintenance mode. Most of the Selenium Project's efforts are now focused on Selenium 2.
  • 11. Selenium RC  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 was the main Selenium project for a long time, before the WebDriver/Selenium merge brought up Selenium 2, the newest and more powerful tool.  Now Selenium 1 is deprecated and is not actively supported (mostly in maintenance mode).
  • 12. Selenium RC (contd..) Pros Cons  Supports all browsers  Can perform looping and conditional operations  Has an easy and small API  Faster execution than IDE  Has built in test result generator  Complicated Configuration  Required programming experience  Doesn’t support record/ playback  Slower execution than WebDriver  Does not support testing of iOS/ Android applications  Requires to start the selenium RC server to run scripts
  • 13. Selenium IDE  Selenium IDE is a Firefox plugin which records and plays back user interactions with the browser.  Selenium IDE is simply intended as a rapid prototyping tool.  For serious, robust test automation either Selenium 2 or Selenium 1 to be used with one of the many supported programming languages.
  • 14. Selenium IDE (contd..) Pros Cons  Very easy to use and install  Programming knowledge is not required (though some knowledge of HTML might helps)  Support record/playback  Can export tests to formats usable in RC and WebDriver  Does not require any server to run scripts  Has built-in help and test results reporting module  Available only in Firefox  No support for conditional and looping operators  Designed only to create prototypes of test  Test execution slow as compared to that of Selenium WebDriver and RC  Does not support testing of iOS/Android applications
  • 15. Selenium WebDriver  Selenium WebDriver project was created by Simon Stewart, it is a clean and fast framework for browser testing automation. Selenium WebDriver itself is more robust than both Selenium RC and Selenium IDE. It uses a more stable approach to automate browser actions. Rather than calling any other external JavaScript, WebDriver directly interacts with the browser and its components  The supported languages are the same as those in Selenium RC.  Java  C#  PHP  Python  Perl  Ruby
  • 16. Selenium WebDriver (contd..) Pros Cons  Simpler Installation than Selenium RC  Communicates directly to the browser  Browser interaction is more realistic  No need of separate component such as the RC Server  Faster execution time than IDE and RC  Installation is more complicated than Selenium IDE  Requires programming knowledge  Has no built-in mechanism for logging runtime messages and generating test results.
  • 17. Selenium Grid  Selenium Grid is a tool used to run your tests on different machines against different browsers in parallel.  That is, running multiple tests at the same time against different machines running different browsers and operating systems.
  • 18. Selenium Grid (contd..)  Advantages:-  You can run your tests against multiple browsers, multiple versions of browser, and browsers running on different operating systems.  Reduces scripts execution time
  • 19. Browser and Environment Support  Because of their architectural differences, Selenium IDE, Selenium RC, and WebDriver support different sets of browsers and operating environments. Selenium IDE Selenium RC WebDriver Browser Support Mozilla Firefox Mozilla Firefox Internet Explorer Google Chrome Safari Opera Konqueror Others Internet Explorer versions 6 to 9, both 32 and 64-bit Firefox 3.0, 3.5, 3.6, 4.0, 5.0, 6, 7 and above (current version is 16.0.1) Google Chrome 12.0.712.0 and above (current version is 22.0.1229.94 m) Opera 11.5 and above (current version is 12.02) Android - 2.3 and above for phones and tablets (devices & emulators) iOS 3+ for phones (devices & emulators) and 3.2+ for tablets (devices & emulators) HtmlUnit 2.9 and above (current version is 2.10) Operating System Windows Mac OS X Linux Windows Mac OS X Linux Solaris All operating systems where the browsers above can run.