Selenium Training Institute in Hyderabad |
Selenium Remote Control is a test tool allows writing
automated web application UI. Any HTTP website using any mainstream
JavaScript-enabled browser.
Selenium RC comes in two parts.
1. A server launches and kills browsers, and acts as an HTTP proxy for web requests from them.
Selenium RC comes in two parts.
1. A server launches and kills browsers, and acts as an HTTP proxy for web requests from them.
2. Client libraries for your favorite computer language.
Selenium Remote Control is great for the testing complex AJAX-based web user interface. Under a Continuous Integration system. It is also an ideal solution for users of Selenium IDE. Who want to write test programming language HTML table format.
Selenium 1.0 is still supported and provides some features available in Selenium 2.0. It includes support for several languages and supports every browser out there.
How Selenium RC Works
the components of Selenium RC operate and the role each plays in running test scripts.
RC Components
Selenium RC components are
The Selenium Server launches interpret and run commands passed from the test program. An HTTP proxy, verifying HTTP messages passed between the browser and the AUT.
It provides the interface between each programming language and the Selenium RCServer.
The client libraries communicate with the Server passing each Selenium command for execution. The server passes the Selenium command to the browser using Selenium-Core JavaScript commands. The browser using JavaScript interpreter executes the Selenium command. This runs the action or verification specified test script.
Selenium Server
Selenium Server receives Selenium commands from the test program. But, interprets them, and reports back to your program the results of running those tests.
The RC server bundles Selenium Core and injects it into the browser. This occurs when your test program opens the browser. Selenium-Core is a JavaScript program. JavaScript functions interpret and execute commands using the browser’s built-in JavaScript interpreter.
The Server receives commands test program using simple HTTP GET/POST requests. This means any programming language send HTTP requests to Selenium the browser.
Client Libraries
The client libraries provide the programming support. That allows running Selenium commands from a program of design. There is a different client library for each supported language. A Selenium client library provides a programming interface (API). A set of functions, which run Selenium commands from the own program. Within each interface, there is a programming function that supports each Selenese command.
The client library takes command and passes to the Selenium Server. To processing a specific action or test against the application under test (AUT). The client library receives the result of the command and passes it back to program. The program can receive the result and store it into a program variable and report. It was a success or failure, or take corrective action if it was an unexpected error.
So to create a test program write a program that runs a set of Selenium commands using a client library API. If test script created in the Selenium-IDE, generate the Selenium RC code. The Selenium-IDE translate Selenium commands into a client drivers API function calls. See the Selenium-IDE chapter for specifics on exporting RC code from Selenium-IDE.
Comments
Post a Comment