Selenium - Testing Tool
Selenium - 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
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".
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.
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 projects 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.
Supported Browsers
*
Tests developed on Firefox via Selenium-IDE can be executed on any other supported
Selenium-IDE Selenium-RC Operating Systems
Windows, Linux, Mac Windows, Linux, Mac Windows Windows Mac Mac Windows, Linux, Mac Windows, Linux, Mac Windows
Others
As applicable
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
Test Suite
Execution Control
Test Cases
TestRunner Control
TestRunner Control
Pause/Play Execution
Step through Execution Run All Tests Control Speed of Execution Highlight Elements in the Execution
Click On Submit
Inserted Successfully
Stop Recording
Make the required changes to the Test Case change the email id in the second parameter
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
TestRunner Demo
Questions?