Tuesday, May 10, 2011

Selenium??

What is Selenium ??
Selenium is a robust set of tools that supports rapid development of test automation for web-based applications. 

Can simulate a user navigating through pages and then assert for specific marks on the pages.

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 or Selenium RC".

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.

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.

Command Overview in Selenium IDE:
1. ClickAndWait - Redirection URL.
2. Click followed by pause - Redirection within the page. (visible true or false with the help of the controls, pause is in the form of milliseconds, usually 5000 millseconds is used to represent 5 minutes)

No comments:

Post a Comment