SlideShare a Scribd company logo
Selenium IDE โ€“ Testing Tool
What is Selenium?
โ€ข Selenium is a robust set of tools that supports rapid
development of test automation for web-based
applications.
โ€ข Works anywhere JavaScript is supported
โ€ข Hooks for many other languages - Java, Ruby,
Python
โ€ข Can simulate a user navigating through pages and
then assert for specific marks on the pages
โ€ข All you need to really know is HTML to start
using it right away
Selenium
โ€ข You can use open source - Selenium tool
โ€ข Selenium IDE is a plug-in to Firefox to record and
playback tests (like WinRunner, QTP).
โ€ข You can then export the recorded test in most
language e.g. HTML, Java , .NET , Perl , Ruby etc.
โ€ข The exported test can be run in any browser and
any platform using "selenium remote control".
Where to get it?
โ€ข You can use Selenium-Core and customize
everything โ€“ deprecated.
โ€ข But it is easier to just get a Firefox plug-in
โ€œSelenium-IDEโ€ that helps you โ€œrecordโ€ test
Cases.
โ€ข You can record how an app is being used and then
playback those recordings followed by asserts.
โ€ข Get everything at: www.openqa.org/selenium/
Selenium Components
Selenium-IDE
โ€ข Integrated Development Environment for building Selenium test
cases.
โ€ข Operates as a Firefox add-on and provides an interface for
developing and running individual test cases or entire test
suites.
โ€ข Selenium-IDE has a recording feature, which will keep account
of user actions as they are performed and store them as a
reusable script to play back.
โ€ข It also has a context menu (right-click) integrated with the
Firefox browser, which allows the user to pick from a list of
assertions and verifications for the selected location.
โ€ข Offers full editing of test cases.
โ€ข Although it is a Firefox only add-on, tests created in it can also
be run against other browsers by using Selenium-RC &
specifying the name of the test suite on the command line.
Selenium-RC (Remote Control)
โ€ข Selenium-RC provides an API (Application
Programming Interface) and library for each of its
supported languages: HTML, Java, C#, Perl, PHP,
Python, and Ruby.
โ€ข This ability to use Selenium-RC with a high-level
programming language to develop test cases also
allows the automated testing to be integrated with a
projectโ€™s automated build environment.
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.
Steps to start with Selenium!
1) Begin: write and run tests in Firefox.
Selenium IDE is a Firefox add-on that records clicks, typing,
and other actions to make a test, which you can play back in
the browser.
2) Customize: your language, your browser.
Selenium Remote Control (RC) runs your tests in multiple
browsers and platforms. Tweak your tests in your preferred
language.
3) Deploy: scale out, speed up
Selenium Grid extends Selenium RC to distribute your tests
across multiple servers, saving you time by running tests in
parallel.
Browser Selenium-IDE Selenium-RC Operating Systems
Firefox 3
1.0 Beta-1 & 1.0 Beta-2:
Record and playback tests
Start browser, run tests Windows, Linux, Mac
Firefox 2
1.0 Beta-1: Record and
playback tests
Start browser, run tests Windows, Linux, Mac
IE 8 Under development Windows
IE 7
Test execution only via
Selenium-RC
Start browser, run tests Windows
Safari 3
Test execution only via
Selenium-RC
Start browser, run tests Mac
Safari 2
Test execution only via
Selenium-RC
Start browser, run tests Mac
Opera 9
Test execution only via
Selenium-RC
Start browser, run tests Windows, Linux, Mac
Opera 8
Test execution only via
Selenium-RC
Start browser, run tests Windows, Linux, Mac
Google Chrome
Test execution only via
Selenium-RC(Windows)
Start browser, run tests Windows
Others
Test execution only via
Selenium-RC
Partial support possible As applicable
Supported Browsers
* Tests developed on Firefox via Selenium-IDE can be executed on any other supported
browser via a simple Selenium-RC command line.
Selenium Commands โ€“ Selenese
1) Actions are commands that generally manipulate the state of
the application. They do things like โ€œclick this linkโ€ and โ€œselect
that optionโ€.
โ€ข Can be called with โ€œAndWaitโ€ suffix, e.g. โ€œclickAndWaitโ€.
2) Accessors examine the state of the application and store the
results in variables, e.g. โ€œstoreTitleโ€.
โ€ข They are also used to automatically generate Assertions.
3) Assertions are like Accessors, but verify that the state of the
application conforms to what is expected. Eg. โ€œmake sure the
page title is Xโ€, โ€œverify that this checkbox is checkedโ€.
โ€ข All Selenium Assertions can be used in 3 modes: โ€œassertโ€,
โ€œverifyโ€, and โ€ waitForโ€. For example, you can โ€œassertTextโ€,
โ€œverifyTextโ€ and โ€œwaitForTextโ€.
Selenium IDE
The list of
actions in the
actual test
case
to execute
The root of web
application you
want to test
The log of the
events that were
executed, including
any errors or
warning that may
have occurred
Selenium IDE
Execution
Commands
Record test
actions
Try the test in
the Web based
TestRunner
Specify commands,
including asserts
Reference of the
currently selected
command
Login to http://test.roosterit.com/
Click on Tools || Selenium IDE
Selenium IDE in recording Mode
Selenium IDE
records the Test
Steps
Stop Recording
Save Test Case/Test Suite
Make the
required
changes to
the Test Case
change Click
to
clickAndWait
command
Make the required
changes to the Test
Case โ€“ change the
email id in the
second parameter
Make other
changes
Second Test Case:
searchConsultant
1) Record
2) Stop Recording
3) Save with a Name
4) Make Required
Changes to
parameters or
Commands
5) Play
Run the entire Test Suite/Each Test Case
See RESULT Here
Test Suite on Firefox
addConsultant
Test Case
Changes made to
addConsultant
Test Case
Test Case Saved in HTML Tabular Format
Creating a Test Suite
A Test Suite in Selenium is just an HTML file that contains a
table of links to tests
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1"
class="selenium">
<tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="addConsultant.html">addConsultant</a></td></tr>
<tr><td><a href="searchConsultant">searchConsultant</a></td></tr>
</tbody>
</table>
</body>
</html>
Questions?

More Related Content

What's hot (20)

ODP
Introduction to Selenium
Knoldus Inc.
ย 
PPTX
Selenium
Mayuresh Wadekar
ย 
PPTX
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
ย 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
ย 
PPS
Selenium Demo
ankitslide
ย 
PPTX
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
ย 
PDF
Selenium With Spices
Nikolajs Okunevs
ย 
PPT
Test automation using selenium
shreyas JC
ย 
PDF
Selenium Tutorial
prad_123
ย 
PDF
Selenium Ide Tutorial
metapix
ย 
PDF
Selenium Test Automation - Challenges
Arul Selvan
ย 
PPT
Selenium
guest5800577
ย 
ODP
Mastering selenium for automated acceptance tests
Nick Belhomme
ย 
PPT
Selenium ppt
Pavan Kumar
ย 
PPTX
QSpiders - Selenium Webdriver
Qspiders - Software Testing Training Institute
ย 
PPTX
Selenium rc ppt
mindqqa
ย 
PPTX
Automated Web Testing With Selenium
Jodie Miners
ย 
PPT
Selenium Primer
Debashish Chakrabarty
ย 
PDF
Selenium IDE features
onewomanmore witl
ย 
PDF
Jenkins & Selenium
adamcarmi
ย 
Introduction to Selenium
Knoldus Inc.
ย 
Selenium
Mayuresh Wadekar
ย 
Smarter ways to do selenium automation @ work, Selenium, automation
RIA RUI Society
ย 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
ย 
Selenium Demo
ankitslide
ย 
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
ย 
Selenium With Spices
Nikolajs Okunevs
ย 
Test automation using selenium
shreyas JC
ย 
Selenium Tutorial
prad_123
ย 
Selenium Ide Tutorial
metapix
ย 
Selenium Test Automation - Challenges
Arul Selvan
ย 
Selenium
guest5800577
ย 
Mastering selenium for automated acceptance tests
Nick Belhomme
ย 
Selenium ppt
Pavan Kumar
ย 
QSpiders - Selenium Webdriver
Qspiders - Software Testing Training Institute
ย 
Selenium rc ppt
mindqqa
ย 
Automated Web Testing With Selenium
Jodie Miners
ย 
Selenium Primer
Debashish Chakrabarty
ย 
Selenium IDE features
onewomanmore witl
ย 
Jenkins & Selenium
adamcarmi
ย 

Viewers also liked (20)

PPTX
Selenium Training
Colombo Selenium Meetup
ย 
PPTX
Selenium IDE and Extensions
Yana Altunyan
ย 
PDF
Automated User Tests with Apache Flex
Gert Poppe
ย 
PPT
Sakai10 Selenium Workshop
coreyjack
ย 
PPT
Steps to write Selenium
Rohit Thakur
ย 
PDF
Selenium IDE and Beyond
Samit Badle
ย 
PDF
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
ย 
PPT
Selenium Ide Tutorials
gueste1e4db
ย 
PPTX
Selenium Testing
Shreshtt Bhatt
ย 
PPTX
QTP Automation Testing Tutorial 2
Akash Tyagi
ย 
PPTX
TechTalk: Report Bugs Like a Boss
Lizzy Guido (she/her)
ย 
PPTX
Webinar: Appium & Perfecto: A Perfect Match
Lizzy Guido (she/her)
ย 
PPT
Qtp 80 Basics3561
Siddhartha Parida
ย 
PDF
Ten reasons why now is the perfect time to get serious about the mobile web
Tijs Vrolix
ย 
PPT
Qtp 8.0 basic
medsherb
ย 
PPTX
How to Test on the Right Mobile Platforms
Perfecto by Perforce
ย 
PPT
Achieving a Winning Digital User Experience with Real World Testing
Perfecto by Perforce
ย 
PPTX
TechTalk: Taking the Mystery Out of Object ID Automation
Lizzy Guido (she/her)
ย 
PDF
Hp perfecto webinar - UFT Mobile
Perfecto Mobile
ย 
PPTX
Qtp object repository
Bharath Sannadi
ย 
Selenium Training
Colombo Selenium Meetup
ย 
Selenium IDE and Extensions
Yana Altunyan
ย 
Automated User Tests with Apache Flex
Gert Poppe
ย 
Sakai10 Selenium Workshop
coreyjack
ย 
Steps to write Selenium
Rohit Thakur
ย 
Selenium IDE and Beyond
Samit Badle
ย 
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
ย 
Selenium Ide Tutorials
gueste1e4db
ย 
Selenium Testing
Shreshtt Bhatt
ย 
QTP Automation Testing Tutorial 2
Akash Tyagi
ย 
TechTalk: Report Bugs Like a Boss
Lizzy Guido (she/her)
ย 
Webinar: Appium & Perfecto: A Perfect Match
Lizzy Guido (she/her)
ย 
Qtp 80 Basics3561
Siddhartha Parida
ย 
Ten reasons why now is the perfect time to get serious about the mobile web
Tijs Vrolix
ย 
Qtp 8.0 basic
medsherb
ย 
How to Test on the Right Mobile Platforms
Perfecto by Perforce
ย 
Achieving a Winning Digital User Experience with Real World Testing
Perfecto by Perforce
ย 
TechTalk: Taking the Mystery Out of Object ID Automation
Lizzy Guido (she/her)
ย 
Hp perfecto webinar - UFT Mobile
Perfecto Mobile
ย 
Qtp object repository
Bharath Sannadi
ย 
Ad

Similar to Selenium (20)

PPT
Selenium
conect2krish
ย 
PPT
Selenium
Anjali Rao
ย 
PPTX
Test automation using selenium
Tแป Rang
ย 
PPT
Selenium
Kalyan ch
ย 
PPT
Selenium
Daksh Sharma
ย 
PPTX
Selenium
Satyam Pandey
ย 
PPT
Selenium Primer
gueste1e4db
ย 
DOC
Selenium Automation Using Ruby
Kumari Warsha Goel
ย 
PDF
Selenium by using JAVA
mahirayavarapu
ย 
PPTX
Selenium institute in bangalore
TIB Academy
ย 
PPTX
Introduction to selenium
Archana Krushnan
ย 
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Minh Quรขn ฤoร n
ย 
PPT
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
ย 
PPTX
Selenium
Jahan Murugassan
ย 
PPT
Selenium Concepts
Swati Bansal
ย 
PPTX
Selenium online training nareshit
AvinashNareshIT
ย 
PPTX
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
ย 
PPT
BCS Selenium Workshop
Colin McDonald
ย 
PPTX
Selenium
mdfkhan625
ย 
PPT
Selenium
jagdishdevabhaipatel
ย 
Selenium
conect2krish
ย 
Selenium
Anjali Rao
ย 
Test automation using selenium
Tแป Rang
ย 
Selenium
Kalyan ch
ย 
Selenium
Daksh Sharma
ย 
Selenium
Satyam Pandey
ย 
Selenium Primer
gueste1e4db
ย 
Selenium Automation Using Ruby
Kumari Warsha Goel
ย 
Selenium by using JAVA
mahirayavarapu
ย 
Selenium institute in bangalore
TIB Academy
ย 
Introduction to selenium
Archana Krushnan
ย 
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Minh Quรขn ฤoร n
ย 
Selenium Basics by Quontra Solutions
QUONTRASOLUTIONS
ย 
Selenium
Jahan Murugassan
ย 
Selenium Concepts
Swati Bansal
ย 
Selenium online training nareshit
AvinashNareshIT
ย 
What Is Selenium? | Selenium Basics For Beginners | Introduction To Selenium ...
Simplilearn
ย 
BCS Selenium Workshop
Colin McDonald
ย 
Selenium
mdfkhan625
ย 
Ad

More from BugRaptors (20)

PPTX
Performance Testing - A Catalyst In Software Testing Landscape
BugRaptors
ย 
PDF
13 Things To Keep In Mind For Enhanced Mobile App UI/UX Design
BugRaptors
ย 
PPTX
Why Companies Need to Leverage ERP Testing Services?
BugRaptors
ย 
PPTX
BFSI Testing Solutions - To Streamline BFSI Sector
BugRaptors
ย 
PPTX
Media Streaming App Testing - Knowing The Significance
BugRaptors
ย 
PPTX
Manual Testing - Developing A Quick Perspective
BugRaptors
ย 
PDF
Regression Testing - An Overview
BugRaptors
ย 
PDF
Cloud Testing - Reinforcing Cloud Technology
BugRaptors
ย 
PPTX
Importance of Performance Testing.pptx
BugRaptors
ย 
PDF
Media & Entertainment Testing Services โ€“BugRaptors
BugRaptors
ย 
PPTX
Usability Testing - Connect With Target Audience With Perfect UX
BugRaptors
ย 
PDF
Tips To Follow For A Simple QA Process
BugRaptors
ย 
PDF
CRM Testing Services - Ensure Smooth Functioning of Complex CRM Workflows
BugRaptors
ย 
PPTX
Test Automation - Everything You Need To Know
BugRaptors
ย 
PPTX
Stress testing ERP frameworks
BugRaptors
ย 
PDF
Top 10 Automation Testing Tools
BugRaptors
ย 
PPTX
Software Testing Trends For 2021
BugRaptors
ย 
PDF
Banking App Testing - To Evaluate Performance
BugRaptors
ย 
PDF
Test Automation Trends For 2021
BugRaptors
ย 
PPTX
ERP Testing Strategy For Large Scale Organizations
BugRaptors
ย 
Performance Testing - A Catalyst In Software Testing Landscape
BugRaptors
ย 
13 Things To Keep In Mind For Enhanced Mobile App UI/UX Design
BugRaptors
ย 
Why Companies Need to Leverage ERP Testing Services?
BugRaptors
ย 
BFSI Testing Solutions - To Streamline BFSI Sector
BugRaptors
ย 
Media Streaming App Testing - Knowing The Significance
BugRaptors
ย 
Manual Testing - Developing A Quick Perspective
BugRaptors
ย 
Regression Testing - An Overview
BugRaptors
ย 
Cloud Testing - Reinforcing Cloud Technology
BugRaptors
ย 
Importance of Performance Testing.pptx
BugRaptors
ย 
Media & Entertainment Testing Services โ€“BugRaptors
BugRaptors
ย 
Usability Testing - Connect With Target Audience With Perfect UX
BugRaptors
ย 
Tips To Follow For A Simple QA Process
BugRaptors
ย 
CRM Testing Services - Ensure Smooth Functioning of Complex CRM Workflows
BugRaptors
ย 
Test Automation - Everything You Need To Know
BugRaptors
ย 
Stress testing ERP frameworks
BugRaptors
ย 
Top 10 Automation Testing Tools
BugRaptors
ย 
Software Testing Trends For 2021
BugRaptors
ย 
Banking App Testing - To Evaluate Performance
BugRaptors
ย 
Test Automation Trends For 2021
BugRaptors
ย 
ERP Testing Strategy For Large Scale Organizations
BugRaptors
ย 

Recently uploaded (20)

PPTX
Transforming Insights: How Generative AI is Revolutionizing Data Analytics
LetsAI Solutions
ย 
PPTX
Odoo Migration Services by CandidRoot Solutions
CandidRoot Solutions Private Limited
ย 
PDF
Code and No-Code Journeys: The Maintenance Shortcut
Applitools
ย 
PPT
Brief History of Python by Learning Python in three hours
adanechb21
ย 
PPTX
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
ย 
PPTX
PCC IT Forum 2025 - Legislative Technology Snapshot
Gareth Oakes
ย 
PDF
How AI in Healthcare Apps Can Help You Enhance Patient Care?
Lilly Gracia
ย 
PPTX
SAP Public Cloud PPT , SAP PPT, Public Cloud PPT
sonawanekundan2024
ย 
PPTX
Cutting Optimization Pro 5.18.2 Crack With Free Download
cracked shares
ย 
PDF
custom development enhancement | Togglenow.pdf
aswinisuhu
ย 
PDF
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
ย 
PPTX
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
ย 
PPTX
Operations Profile SPDX_Update_20250711_Example_05_03.pptx
Shane Coughlan
ย 
PDF
Step-by-Step Guide to Install SAP HANA Studio | Complete Installation Tutoria...
SAP Vista, an A L T Z E N Company
ย 
PPTX
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
ย 
PPTX
UI5con_2025_Accessibility_Ever_Evolving_
gerganakremenska1
ย 
PPTX
Chess King 25.0.0.2500 With Crack Full Free Download
cracked shares
ย 
PPTX
MiniTool Partition Wizard Crack 12.8 + Serial Key Download Latest [2025]
filmoracrack9001
ย 
PDF
Troubleshooting Virtual Threads in Java!
Tier1 app
ย 
PDF
Notification System for Construction Logistics Application
Safe Software
ย 
Transforming Insights: How Generative AI is Revolutionizing Data Analytics
LetsAI Solutions
ย 
Odoo Migration Services by CandidRoot Solutions
CandidRoot Solutions Private Limited
ย 
Code and No-Code Journeys: The Maintenance Shortcut
Applitools
ย 
Brief History of Python by Learning Python in three hours
adanechb21
ย 
Function & Procedure: Function Vs Procedure in PL/SQL
Shani Tiwari
ย 
PCC IT Forum 2025 - Legislative Technology Snapshot
Gareth Oakes
ย 
How AI in Healthcare Apps Can Help You Enhance Patient Care?
Lilly Gracia
ย 
SAP Public Cloud PPT , SAP PPT, Public Cloud PPT
sonawanekundan2024
ย 
Cutting Optimization Pro 5.18.2 Crack With Free Download
cracked shares
ย 
custom development enhancement | Togglenow.pdf
aswinisuhu
ย 
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
ย 
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
ย 
Operations Profile SPDX_Update_20250711_Example_05_03.pptx
Shane Coughlan
ย 
Step-by-Step Guide to Install SAP HANA Studio | Complete Installation Tutoria...
SAP Vista, an A L T Z E N Company
ย 
prodad heroglyph crack 2.0.214.2 Full Free Download
cracked shares
ย 
UI5con_2025_Accessibility_Ever_Evolving_
gerganakremenska1
ย 
Chess King 25.0.0.2500 With Crack Full Free Download
cracked shares
ย 
MiniTool Partition Wizard Crack 12.8 + Serial Key Download Latest [2025]
filmoracrack9001
ย 
Troubleshooting Virtual Threads in Java!
Tier1 app
ย 
Notification System for Construction Logistics Application
Safe Software
ย 

Selenium

  • 1. Selenium IDE โ€“ Testing Tool
  • 2. What is Selenium? โ€ข Selenium is a robust set of tools that supports rapid development of test automation for web-based applications. โ€ข Works anywhere JavaScript is supported โ€ข Hooks for many other languages - Java, Ruby, Python โ€ข Can simulate a user navigating through pages and then assert for specific marks on the pages โ€ข All you need to really know is HTML to start using it right away
  • 3. Selenium โ€ข You can use open source - Selenium tool โ€ข Selenium IDE is a plug-in to Firefox to record and playback tests (like WinRunner, QTP). โ€ข You can then export the recorded test in most language e.g. HTML, Java , .NET , Perl , Ruby etc. โ€ข The exported test can be run in any browser and any platform using "selenium remote control".
  • 4. Where to get it? โ€ข You can use Selenium-Core and customize everything โ€“ deprecated. โ€ข But it is easier to just get a Firefox plug-in โ€œSelenium-IDEโ€ that helps you โ€œrecordโ€ test Cases. โ€ข You can record how an app is being used and then playback those recordings followed by asserts. โ€ข Get everything at: www.openqa.org/selenium/
  • 6. Selenium-IDE โ€ข Integrated Development Environment for building Selenium test cases. โ€ข Operates as a Firefox add-on and provides an interface for developing and running individual test cases or entire test suites. โ€ข Selenium-IDE has a recording feature, which will keep account of user actions as they are performed and store them as a reusable script to play back. โ€ข It also has a context menu (right-click) integrated with the Firefox browser, which allows the user to pick from a list of assertions and verifications for the selected location. โ€ข Offers full editing of test cases. โ€ข Although it is a Firefox only add-on, tests created in it can also be run against other browsers by using Selenium-RC & specifying the name of the test suite on the command line.
  • 7. Selenium-RC (Remote Control) โ€ข Selenium-RC provides an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. โ€ข This ability to use Selenium-RC with a high-level programming language to develop test cases also allows the automated testing to be integrated with a projectโ€™s automated build environment.
  • 8. 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.
  • 9. Steps to start with Selenium! 1) Begin: write and run tests in Firefox. Selenium IDE is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser. 2) Customize: your language, your browser. Selenium Remote Control (RC) runs your tests in multiple browsers and platforms. Tweak your tests in your preferred language. 3) Deploy: scale out, speed up Selenium Grid extends Selenium RC to distribute your tests across multiple servers, saving you time by running tests in parallel.
  • 10. Browser Selenium-IDE Selenium-RC Operating Systems Firefox 3 1.0 Beta-1 & 1.0 Beta-2: Record and playback tests Start browser, run tests Windows, Linux, Mac Firefox 2 1.0 Beta-1: Record and playback tests Start browser, run tests Windows, Linux, Mac IE 8 Under development Windows IE 7 Test execution only via Selenium-RC Start browser, run tests Windows Safari 3 Test execution only via Selenium-RC Start browser, run tests Mac Safari 2 Test execution only via Selenium-RC Start browser, run tests Mac Opera 9 Test execution only via Selenium-RC Start browser, run tests Windows, Linux, Mac Opera 8 Test execution only via Selenium-RC Start browser, run tests Windows, Linux, Mac Google Chrome Test execution only via Selenium-RC(Windows) Start browser, run tests Windows Others Test execution only via Selenium-RC Partial support possible As applicable Supported Browsers * Tests developed on Firefox via Selenium-IDE can be executed on any other supported browser via a simple Selenium-RC command line.
  • 11. Selenium Commands โ€“ Selenese 1) Actions are commands that generally manipulate the state of the application. They do things like โ€œclick this linkโ€ and โ€œselect that optionโ€. โ€ข Can be called with โ€œAndWaitโ€ suffix, e.g. โ€œclickAndWaitโ€. 2) Accessors examine the state of the application and store the results in variables, e.g. โ€œstoreTitleโ€. โ€ข They are also used to automatically generate Assertions. 3) Assertions are like Accessors, but verify that the state of the application conforms to what is expected. Eg. โ€œmake sure the page title is Xโ€, โ€œverify that this checkbox is checkedโ€. โ€ข All Selenium Assertions can be used in 3 modes: โ€œassertโ€, โ€œverifyโ€, and โ€ waitForโ€. For example, you can โ€œassertTextโ€, โ€œverifyTextโ€ and โ€œwaitForTextโ€.
  • 12. Selenium IDE The list of actions in the actual test case to execute The root of web application you want to test The log of the events that were executed, including any errors or warning that may have occurred
  • 13. Selenium IDE Execution Commands Record test actions Try the test in the Web based TestRunner Specify commands, including asserts Reference of the currently selected command
  • 15. Selenium IDE in recording Mode
  • 16. Selenium IDE records the Test Steps Stop Recording
  • 18. Make the required changes to the Test Case change Click to clickAndWait command
  • 19. Make the required changes to the Test Case โ€“ change the email id in the second parameter Make other changes
  • 20. Second Test Case: searchConsultant 1) Record 2) Stop Recording 3) Save with a Name 4) Make Required Changes to parameters or Commands 5) Play
  • 21. Run the entire Test Suite/Each Test Case See RESULT Here
  • 22. Test Suite on Firefox
  • 25. Test Case Saved in HTML Tabular Format
  • 26. Creating a Test Suite A Test Suite in Selenium is just an HTML file that contains a table of links to tests <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <title>Test Suite</title> </head> <body> <table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"> <tbody> <tr><td><b>Test Suite</b></td></tr> <tr><td><a href="addConsultant.html">addConsultant</a></td></tr> <tr><td><a href="searchConsultant">searchConsultant</a></td></tr> </tbody> </table> </body> </html>

Editor's Notes

  • #8: Selenium-RC allows the test automation developer to use a programming language for maximum flexibility and extensibility in developing test logic. For instance, if the application under test returns a result set, and if the automated test program needs to run tests on each element in the result set, the programming languageโ€™s iteration support can be used to iterate through the result set, calling Selenium commands to run tests on each item.