Monday, September 8, 2014

Selenium Kickoff (Day-1)


          WORKING WITH SELENIUM

SELENIUM

Selenium is the open source tool for functional and regression testing

                    Having 4 Parts
n  Selenium IDE
It’s a java script framework.
It is installed as add-on on Mozilla
It is used to record user steps on application.
n  Selenium RC
It is mainly used to run test suites on multiple browser.

n  Selenium GRID
use to execute test cases on Multiple Browsers/Multiple systems in parallel.

n  WebDriver
New enhancement in selenium, added with selenium 2.0
alternate of selenium RC, provide fast execution of test cases.



Commands used in selenium are called Selenese 



ADVANTAGE OF SELENIUM

è Open Source Tool, so no license fees.
è Support large number of programming language for scripting.
è Support large number of browsers.
è With Selenium Grid, we can execute in parallel, ultimately fast execution.


DISADVANTAGE OF SELENIUM

è Support only Web based applications.
è Its Free, so no support is available.
è No Rich GUI / Lot of programming skills are required.
è Does not support FLASH, Silverlight etc  







PARTS OF SELENIUM
========================================================================                              
SELENIUM IDE        SELENIUM RC          SELENIUM GRID      Webdriver
                                     à RC Server                 à Selenium Hub           ànew enhance
                                     à Selenium Core          à Selenium RC 
                                     à Client Libraries  



                              SELENIUM RC(Remote Control) Components

à RC Server                                 

à Selenium Core                         

à Client Libraries  

The RC Selenium Server
à launches and kills browsers
à  interprets and runs the Selenese commands passed from the test program
à  acts as an HTTP proxy, intercepting and verifying HTTP messages passed between the browser and the AUT.
à Return result of selenium command back to test program.
à Selenium server is bundled with selenium core, automatically inject this selenium core to browser when start browser.

             Selenium-Core
                 is a JavaScript program, actually a set of JavaScript functions which interprets and    
                executes Selenese commands using the browser’s built-in JavaScript interpreter.


 Client libraries
 which provide the interface between each programming language and the Selenium RC  Server.
             Client libraries provide support of different language to selenium



Here is a simplified architecture diagram....

The diagram shows the client libraries communicate with the Server passing each Selenium command for execution. Then the server passes the Selenium command to the browser using Selenium-Core JavaScript commands. The browser, using its JavaScript interpreter, executes the Selenium command. This runs the Selenese action or verification you specified in your test script.



No comments:

Post a Comment