SlideShare a Scribd company logo
SELENIUM IDE and
Extensions
Automated testing tool
Created by: Yana Altunyan
Reviewed by: Vladimir Soghoyan
Ogma Applications
 Selenium Types
 Selenium IDE
 IDE Features
 Creating and Running Test Suite and Case
 IDE Extensions (JavaScript)
07/12/2016Ogma Applications 2
Overview
 Selenium IDE
 Selenium WebDriver
 Selenium Server (Grid)
 Selenium RC
07/12/2016Ogma Applications 3
Selenium types
 Selenium IDE is an integrated development environment for Selenium
scripts. It is implemented as a Firefox extension.
 It allows you to record, edit, and debug tests.
07/12/2016Ogma Applications 4
Selenium IDE
IDE Features
Speed Control: controls how fast your test case runs.
Run All: Runs the entire test suite when a test suite with
multiple test cases is loaded.
Run: Runs the currently selected test. When only a single test is
loaded this button and the Run All button have the same effect.
Pause/Resume: Allows stopping and re-starting of a running
test case.
Step: Allows you to “step” through a test case by running it
one command at a time. Use for debugging test cases.
Apply Rollup Rules: This advanced feature allows repetitive
sequences of Selenium commands to be grouped into a single
action.
Reload
Test Scheduler
Record: Records the user’s browser actions.
07/12/2016Ogma Applications 5
IDE Features
Command – Tells Selenium
what to do using actions or
assertions
Target – Tells Selenium which
HTML element a command
refers to
Value – Used for any
command that might need a
value of some kind
08/04/2015Ogma Applications 6
IDE Features
Log – When test case run, error messages
and information messages showing the
progress are displayed in this pane
automatically. Useful for debugging
Reference - The Reference pane will display
documentation on the current command.
UI-Element - A mapping between a
meaningful name for a page element, and
the means to locate that page element's
DOM node. The page element is located via a
locator. UI elements belong to pagesets*.
Rollup - Logic that describes how one or
more Selenium commands can be grouped
into a single command, and how that single
command may be expanded into its
component Selenium commands*.
08/04/2015Ogma Applications 7
IDE Features
All Commands are shown in HTML
code
07/12/2016Ogma Applications 8
IDE Features: Commands
Selenium commands come in three
“flavors”: Actions,Accessors, and Assertions.
Actions - commands that generally manipulate
the state of the application.
Accessors - examine the state of the application
and store the results in variables, e.g.
“storeTitle”.
Assertions - are like Accessors, but they verify
that the state of the application conforms to
what is expected.
07/12/2016Ogma Applications 9
Creating and Running Test
Suite and Case
The procedure for creating automated test case
consists of the following steps:
 Start a Firefox window and navigate to the
page URL you want to test.
 Click on the Tools menu, Selenium IDE, as
described in the following figure
 Fill in the Base URL field at the top with the
starting URL of the page being tested and
then clink on the button Record .
 Having the Record button enabled, start
the test case by making the data entry on
the system
 At the end of test case, disable the Record
button. You can save the test case at the
File menu, Save Test Case.
 To run the test case automatically, just click
on the button Play current test case
 At the end of successful execution,
Selenium-IDE window will display the list of
steps executed successfully.
A test suite is a collection of test cases.
07/12/2016Ogma Applications 10
User extensions are JavaScript files that allow you to
create your own customizations and features to add
additional functionality.
07/12/2016Ogma Applications 11
IDE Extensions
Adding User Extensions In
The Selenium IDE
 Options->General tab
 Close Selenium and open
again
 Check new commands
availability
07/12/2016Ogma Applications 12
New Commands from added
Extension (generating random email)
typeRandomEmail- types random
email
typeRandomEmailAndWait - This
command will wait for page to reload
07/12/2016Ogma Applications 13

More Related Content

PPTX
Selenium ide made easy
PPT
Selenium ide material (1)
PPT
Selenium Ide Tutorials
PDF
Selenium IDE
PDF
Selenium Ide Tutorial
PDF
Selenium IDE LOCATORS
PPTX
Selenium IDE
PPTX
Selenium ide1
Selenium ide made easy
Selenium ide material (1)
Selenium Ide Tutorials
Selenium IDE
Selenium Ide Tutorial
Selenium IDE LOCATORS
Selenium IDE
Selenium ide1

What's hot (20)

PPT
Selenium ppt
PPTX
Test Automation and Selenium
PDF
Selenium IDE features
PDF
Automation framework using selenium webdriver with java
PPTX
Learn Test Automation using Selenium - Lesson 1
PPTX
Selenium web driver
PPTX
Selenium WebDriver
PPT
Selenium
PPT
Selenium Presentation at Engineering Colleges
PDF
Introduction to Automation Testing and Selenium overiew
PPTX
Automation Testing by Selenium Web Driver
PPTX
Selenium IDE
PPTX
Introduction to Selenium Web Driver
DOCX
Selenium interview Q&A
PDF
Selenium Commands (Short Interview Preparation)
PPTX
Test automation using selenium
PPT
QSpiders - Automation using Selenium
PDF
Automation Testing using Selenium
PPTX
Automating with selenium2
DOCX
Selenium introduction and some feautures
Selenium ppt
Test Automation and Selenium
Selenium IDE features
Automation framework using selenium webdriver with java
Learn Test Automation using Selenium - Lesson 1
Selenium web driver
Selenium WebDriver
Selenium
Selenium Presentation at Engineering Colleges
Introduction to Automation Testing and Selenium overiew
Automation Testing by Selenium Web Driver
Selenium IDE
Introduction to Selenium Web Driver
Selenium interview Q&A
Selenium Commands (Short Interview Preparation)
Test automation using selenium
QSpiders - Automation using Selenium
Automation Testing using Selenium
Automating with selenium2
Selenium introduction and some feautures
Ad

Viewers also liked (13)

PDF
Automated User Tests with Apache Flex
PPT
Selenium
PPTX
Selenium Training
PPT
Steps to write Selenium
PPT
Sakai10 Selenium Workshop
PDF
Selenium IDE and Beyond
PDF
Efficient Automated Test Creation With Selenium IDE Plugins
PPT
Apache Flex: Overview
PPT
Selenium
KEY
Testing Flex RIAs for NJ Flex user group
DOCX
Selenium WebDriver FAQ's
PDF
Jmeter Performance Testing
PPT
Java Basics for selenium
Automated User Tests with Apache Flex
Selenium
Selenium Training
Steps to write Selenium
Sakai10 Selenium Workshop
Selenium IDE and Beyond
Efficient Automated Test Creation With Selenium IDE Plugins
Apache Flex: Overview
Selenium
Testing Flex RIAs for NJ Flex user group
Selenium WebDriver FAQ's
Jmeter Performance Testing
Java Basics for selenium
Ad

Similar to Selenium IDE and Extensions (20)

PPTX
PPTX
Selenium tutorial
PPT
Selenium By Pravin Mishra
PPT
Selenium training
PDF
Selenium IDE Introduction, Installation and Working
ODP
Selenium testing IDE 101
PPTX
Selenium ppt
PPTX
PPTX
Selenium
PPTX
Selenium
PPTX
Selenium
PPTX
Selenium
PPT
Selenium (1) (1)
PPTX
Selenium using Java
 
PDF
Selenium
PDF
Selenium Handbook
PPTX
Selenium IDE Tutorial For Beginners | Selenium IDE Tutorial | What Is Seleniu...
DOCX
What is selenium
PPTX
Selenium
PPTX
Automation Testing
Selenium tutorial
Selenium By Pravin Mishra
Selenium training
Selenium IDE Introduction, Installation and Working
Selenium testing IDE 101
Selenium ppt
Selenium
Selenium
Selenium
Selenium
Selenium (1) (1)
Selenium using Java
 
Selenium
Selenium Handbook
Selenium IDE Tutorial For Beginners | Selenium IDE Tutorial | What Is Seleniu...
What is selenium
Selenium
Automation Testing

Selenium IDE and Extensions

  • 1. SELENIUM IDE and Extensions Automated testing tool Created by: Yana Altunyan Reviewed by: Vladimir Soghoyan Ogma Applications
  • 2.  Selenium Types  Selenium IDE  IDE Features  Creating and Running Test Suite and Case  IDE Extensions (JavaScript) 07/12/2016Ogma Applications 2 Overview
  • 3.  Selenium IDE  Selenium WebDriver  Selenium Server (Grid)  Selenium RC 07/12/2016Ogma Applications 3 Selenium types
  • 4.  Selenium IDE is an integrated development environment for Selenium scripts. It is implemented as a Firefox extension.  It allows you to record, edit, and debug tests. 07/12/2016Ogma Applications 4 Selenium IDE
  • 5. IDE Features Speed Control: controls how fast your test case runs. Run All: Runs the entire test suite when a test suite with multiple test cases is loaded. Run: Runs the currently selected test. When only a single test is loaded this button and the Run All button have the same effect. Pause/Resume: Allows stopping and re-starting of a running test case. Step: Allows you to “step” through a test case by running it one command at a time. Use for debugging test cases. Apply Rollup Rules: This advanced feature allows repetitive sequences of Selenium commands to be grouped into a single action. Reload Test Scheduler Record: Records the user’s browser actions. 07/12/2016Ogma Applications 5
  • 6. IDE Features Command – Tells Selenium what to do using actions or assertions Target – Tells Selenium which HTML element a command refers to Value – Used for any command that might need a value of some kind 08/04/2015Ogma Applications 6
  • 7. IDE Features Log – When test case run, error messages and information messages showing the progress are displayed in this pane automatically. Useful for debugging Reference - The Reference pane will display documentation on the current command. UI-Element - A mapping between a meaningful name for a page element, and the means to locate that page element's DOM node. The page element is located via a locator. UI elements belong to pagesets*. Rollup - Logic that describes how one or more Selenium commands can be grouped into a single command, and how that single command may be expanded into its component Selenium commands*. 08/04/2015Ogma Applications 7
  • 8. IDE Features All Commands are shown in HTML code 07/12/2016Ogma Applications 8
  • 9. IDE Features: Commands Selenium commands come in three “flavors”: Actions,Accessors, and Assertions. Actions - commands that generally manipulate the state of the application. Accessors - examine the state of the application and store the results in variables, e.g. “storeTitle”. Assertions - are like Accessors, but they verify that the state of the application conforms to what is expected. 07/12/2016Ogma Applications 9
  • 10. Creating and Running Test Suite and Case The procedure for creating automated test case consists of the following steps:  Start a Firefox window and navigate to the page URL you want to test.  Click on the Tools menu, Selenium IDE, as described in the following figure  Fill in the Base URL field at the top with the starting URL of the page being tested and then clink on the button Record .  Having the Record button enabled, start the test case by making the data entry on the system  At the end of test case, disable the Record button. You can save the test case at the File menu, Save Test Case.  To run the test case automatically, just click on the button Play current test case  At the end of successful execution, Selenium-IDE window will display the list of steps executed successfully. A test suite is a collection of test cases. 07/12/2016Ogma Applications 10
  • 11. User extensions are JavaScript files that allow you to create your own customizations and features to add additional functionality. 07/12/2016Ogma Applications 11 IDE Extensions
  • 12. Adding User Extensions In The Selenium IDE  Options->General tab  Close Selenium and open again  Check new commands availability 07/12/2016Ogma Applications 12
  • 13. New Commands from added Extension (generating random email) typeRandomEmail- types random email typeRandomEmailAndWait - This command will wait for page to reload 07/12/2016Ogma Applications 13

Editor's Notes

  • #4: Selenium IDE – If you want to create quick bug reproduction scripts, and/or create scripts to aid in automation-aided exploratory testing then you want to use Selenium IDE; a Firefox add-on that will do simple record-and-playback of interactions with the browser. Selenium WebDriver – If you want to create robust, browser-based regression automation suites and tests and/or scale and distribute scripts across many environments then you want to use Selenium WebDriver; a collection of language specific bindings to drive a browser -- the way it is meant to be driven. Selenium WebDriver is the successor of Selenium Remote Control which has been officially deprecated. The Selenium Server (used by both WebDriver and Remote Control) now also includes built-in grid capabilities. Selenium Server – With the release of Selenium 2.0, the Selenium Server now has built-in Grid functionality. Grid allows you to scale by distributing tests on several machines ( parallel execution ), manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers / OS, minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage virtual infrastructure for instance. Selenium RC – see WebDriver*