際際滷

際際滷Share 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 users 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

What's hot (20)

Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Pavan Kumar
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
Selenium IDE features
Selenium IDE featuresSelenium IDE features
Selenium IDE features
onewomanmore witl
Automation framework using selenium webdriver with java
Automation framework using selenium webdriver with javaAutomation framework using selenium webdriver with java
Automation framework using selenium webdriver with java
Narayanan Palani
Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1
Furqan Ud Din
Selenium web driver
Selenium web driverSelenium web driver
Selenium web driver
Roman Savitskiy
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
Yuriy Bezgachnyuk
Selenium
SeleniumSelenium
Selenium
guest5800577
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
Introduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiewIntroduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
Automation Testing by Selenium Web Driver
Automation Testing by Selenium Web DriverAutomation Testing by Selenium Web Driver
Automation Testing by Selenium Web Driver
Cuelogic Technologies Pvt. Ltd.
Selenium IDE
Selenium IDESelenium IDE
Selenium IDE
Vladimir Soghoyan
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
Return on Intelligence
Selenium interview Q&A
Selenium interview Q&ASelenium interview Q&A
Selenium interview Q&A
Pavan Kumar
Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)
Yogesh Thalkari
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
mindqqa
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
Naresh Chintalcheru
Automating with selenium2
Automating with selenium2Automating with selenium2
Automating with selenium2
mindqqa
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautures
zahid32
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan
Automation framework using selenium webdriver with java
Automation framework using selenium webdriver with javaAutomation framework using selenium webdriver with java
Automation framework using selenium webdriver with java
Narayanan Palani
Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1
Furqan Ud Din
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
Vijay Rangaiah
Introduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiewIntroduction to Automation Testing and Selenium overiew
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
Return on Intelligence
Selenium interview Q&A
Selenium interview Q&ASelenium interview Q&A
Selenium interview Q&A
Pavan Kumar
Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)
Yogesh Thalkari
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
mindqqa
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
Naresh Chintalcheru
Automating with selenium2
Automating with selenium2Automating with selenium2
Automating with selenium2
mindqqa
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautures
zahid32

Viewers also liked (13)

Automated User Tests with Apache Flex
Automated User Tests with Apache FlexAutomated User Tests with Apache Flex
Automated User Tests with Apache Flex
Gert Poppe
Selenium
SeleniumSelenium
Selenium
shrialinda
Selenium Training
Selenium TrainingSelenium Training
Selenium Training
Colombo Selenium Meetup
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
Rohit Thakur
Sakai10 Selenium Workshop
Sakai10 Selenium WorkshopSakai10 Selenium Workshop
Sakai10 Selenium Workshop
coreyjack
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and Beyond
Samit Badle
Efficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE PluginsEfficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
Apache Flex: Overview
Apache Flex: OverviewApache Flex: Overview
Apache Flex: Overview
Tarun Telang
Selenium
SeleniumSelenium
Selenium
BugRaptors
Testing Flex RIAs for NJ Flex user group
Testing Flex RIAs for NJ Flex user groupTesting Flex RIAs for NJ Flex user group
Testing Flex RIAs for NJ Flex user group
Viktor Gamov
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
Praveen Gorantla
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
Atul Pant
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
apoorvams
Automated User Tests with Apache Flex
Automated User Tests with Apache FlexAutomated User Tests with Apache Flex
Automated User Tests with Apache Flex
Gert Poppe
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
Rohit Thakur
Sakai10 Selenium Workshop
Sakai10 Selenium WorkshopSakai10 Selenium Workshop
Sakai10 Selenium Workshop
coreyjack
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and Beyond
Samit Badle
Efficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE PluginsEfficient Automated Test Creation With Selenium IDE Plugins
Efficient Automated Test Creation With Selenium IDE Plugins
Samit Badle
Apache Flex: Overview
Apache Flex: OverviewApache Flex: Overview
Apache Flex: Overview
Tarun Telang
Testing Flex RIAs for NJ Flex user group
Testing Flex RIAs for NJ Flex user groupTesting Flex RIAs for NJ Flex user group
Testing Flex RIAs for NJ Flex user group
Viktor Gamov
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
Praveen Gorantla
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
Atul Pant
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
apoorvams

Similar to Selenium IDE and Extensions (20)

Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
Aneesh Rangarajan
Selenium tutorial
Selenium tutorialSelenium tutorial
Selenium tutorial
Mayank Pande
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
Shreshtt Bhatt
Selenium
SeleniumSelenium
Selenium
Kalyan ch
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingSelenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and Working
Disha Srivastava
Selenium
SeleniumSelenium
Selenium
Daksh Sharma
Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
Testertester Jaipur
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
gueste1e4db
Selenium
SeleniumSelenium
Selenium
David Rajah Selvaraj
Selenium
SeleniumSelenium
Selenium
conect2krish
Sel
SelSel
Sel
Sandeep A R
Selenium Installation
Selenium InstallationSelenium Installation
Selenium Installation
Sachin-QA
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
mahirayavarapu
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
Jodie Miners
Selenium - Installation
Selenium - InstallationSelenium - Installation
Selenium - Installation
Rajesh-QA
Selenium Installation
Selenium  InstallationSelenium  Installation
Selenium Installation
ANKUR-BA
Selenium By Pravin Mishra
Selenium By Pravin MishraSelenium By Pravin Mishra
Selenium By Pravin Mishra
Pravin Mishra
Selenium
SeleniumSelenium
Selenium
jagdishdevabhaipatel
Selenium testing IDE 101
Selenium testing IDE 101Selenium testing IDE 101
Selenium testing IDE 101
Adam Culp
Selenium Automation Testing Interview Questions And Answers
Selenium Automation Testing Interview Questions And AnswersSelenium Automation Testing Interview Questions And Answers
Selenium Automation Testing Interview Questions And Answers
Ajit Jadhav
Selenium tutorial
Selenium tutorialSelenium tutorial
Selenium tutorial
Mayank Pande
Selenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and WorkingSelenium IDE Introduction, Installation and Working
Selenium IDE Introduction, Installation and Working
Disha Srivastava
Selenium with testng and eclipse ide
Selenium with testng and eclipse ideSelenium with testng and eclipse ide
Selenium with testng and eclipse ide
Testertester Jaipur
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
gueste1e4db
Selenium Installation
Selenium InstallationSelenium Installation
Selenium Installation
Sachin-QA
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
mahirayavarapu
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
Jodie Miners
Selenium - Installation
Selenium - InstallationSelenium - Installation
Selenium - Installation
Rajesh-QA
Selenium Installation
Selenium  InstallationSelenium  Installation
Selenium Installation
ANKUR-BA
Selenium By Pravin Mishra
Selenium By Pravin MishraSelenium By Pravin Mishra
Selenium By Pravin Mishra
Pravin Mishra
Selenium testing IDE 101
Selenium testing IDE 101Selenium testing IDE 101
Selenium testing IDE 101
Adam Culp
Selenium Automation Testing Interview Questions And Answers
Selenium Automation Testing Interview Questions And AnswersSelenium Automation Testing Interview Questions And Answers
Selenium Automation Testing Interview Questions And Answers
Ajit Jadhav

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 users 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*