Tuesday, 5 August 2014

Selenium Remote Control

Selenium Remote Control (RC)

 Overview

  • While Selenium IDE may seem a productive and efficient tool for writing test-cases, it lacks many essential features of a testing tool:
    • Conditional statements
    • Loops
    • Logging
    • Exception handling
    • Reporting
    • Test fixtures and data-driven tests
    • Test dependencies
    • Taking screenshots
  • Selenium RC is the answer to a more powerful test-suite for your applications.
  • It follows a client/server model allowing client libraries to execute tests on a browser controlled by the server.
images/selenium_rc_overview.png

Selenium Server

  • Selenium server is the program that drives the browser
  • It embeds Selenium Core framework and injects it into the browser
  • It communicates with the running test client and drives the browser
  • Client tests sends commands that the server interpretes in order to drive the browser
  • The server sends back results to the client
  • Client and server communicates via HTTP GETs and POSTs so you can easily plug into
  • Server is configurable at startup via command-line options. use java -jar selenium-server.jar -h to see the list of options

Client libraries

  • Client libraries provides the API to program tests and execute them on the server
  • Each implementation provides access to all Selenium commands
  • Supported API implementation exists in:
    • Java (also accessible via Groovy)
    • .Net
    • PHP
    • Python
    • Perl
    • Ruby

No comments:

Post a Comment