• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Testing world selenium_start_chapter1 (1)
 

Testing world selenium_start_chapter1 (1)

on

  • 498 views

Testing World--Selenium Chapter 1

Testing World--Selenium Chapter 1

Statistics

Views

Total Views
498
Views on SlideShare
498
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Testing world selenium_start_chapter1 (1) Testing world selenium_start_chapter1 (1) Document Transcript

    • Facebook ::https://www.facebook.com/testingg.worldd
    • WORKING WITH SELENIUMSELENIUMSelenium is the open source tool for functional and regression testing Having 4 Parts  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.  Selenium RC It is mainly used to run test suites on multiple browser.  Selenium GRID +use to execute test cases on Multiple Browsers/Multiple systems in parallel.  WebDriver +alternate of selenium RC, provide fast execution of test cases.Commands used in selenium are called SeleneseADVANTAGE 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 SELENIUMSELENIUM IDE SELENIUM RC SELENIUM GRID  RC Server  Selenium Hub  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 seleniumHere is a simplified architecture diagram....The diagram shows the client libraries communicate with the Server passing each Seleniumcommand for execution. Then the server passes the Selenium command to the browser usingSelenium-Core JavaScript commands. The browser, using its JavaScript interpreter, executes
    • the Selenium command. This runs the Selenese action or verification you specified in your testscript. WORKING WITH SELENIUM GRIDSelenium Grid is the part of selenium test suite, which is used to distribute selenium test caseson multiple browser and multiple machine with the help of that we can run multiple test cases inparallel.Selenium Grid has 2 controls selenium Hub and Selenium RC, selenium hub takes request fromdifferent tests(as RC do in normal condition) and then allocate remote control that are registeredto the hub.(1 RC to 1 test request)
    • Web Driver New Enhancement to Selenium 2.0. We need not to start selenium Server Interact with Browser Directly(Not using Java Core etc) Support HTML Dom as well, so we can work on multiple elements together. HtmlUnitDriver:- is much faster because it run test case in memory not in physical. We have Native Drivers for each Browser sp we need to make implements separately for eachdriver.
    • Advantage : Fast  No need to use selenium server.Disadvantage : Need to implement native driver for each browser Give support to only few browsers till now.