Tanvir Afzal: Selenium
Upcoming SlideShare
Loading in...5
×
 

Tanvir Afzal: Selenium

on

  • 3,609 views

 

Statistics

Views

Total Views
3,609
Views on SlideShare
3,550
Embed Views
59

Actions

Likes
1
Downloads
66
Comments
0

3 Embeds 59

http://www.sqabd.com 56
http://www.slideshare.net 2
http://localhost:8080 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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
  • System functional testing - ideal for acceptance or regression testing. Compatibility testing - Selenium covers a Windows, Mac and Linux platforms including a wide range of web browsers.
  • Selenium IDE is a Firefox plugin, which includes the entire Selenium Core, allows you to record, play back, edit, and debug tests in browser. It provides the simplest introduction to Selenium and is highly recommended for beginners. You can save the tests / test suite created in xml or html format. However to run them in an automated fashion you need Selenium Remote Control which is described next.
  • In Selenium Core the tests scripts (written in HTML) and the Selenium Test Runner (written in Javascript) are uploaded to the same web server that hosts the application you are trying to test. It is a simpler form of Selenium, and suitable for non-developers, but it has some inherent limitations. Browser compatibility testing. Test your application to see if it works correctly on different browsers and operating systems. The same script can run on any Selenium platform. System functional testing. Create regression tests to verify application functionality and user acceptance.
  • The Selenium Remote Control allows you to develop test cases and test suites in Java (supports JUnit & NGUnit), PHP, Ruby, Python, Perl and even .NET. It is the most flexible setup but requires some development knowledge to set up and use.
  • Test cases developed by different languages runs in Selenium RC server and RC runs the test cases by selenium core with defined enviroments. Only one instance can be run at a time.
  • Test cases developed by different languages runs by hub and hub connects with selenium RC and RC called different environments to run those test cases either by simultaneously or by parallel
  • The web address of the web application. Test cases in a test suite The command editing area to edit commands instantly. We can take help by references which is integrated into IDE
  • We use ide to record tests. We use ant script to run selenium RC Then we configure cruise control to run our suite for regression and when the build fails it automatically inform us via email. It also generate a result file to that it will be easy for us to know why test fails. We also embedded our result file into cruise control that is created by selenium RC and now its easy to see the results just from the web. (we edited the cruise control web app files and read our result file using java reader and then write it)
  • This is the result file which is generated by the RC and we embedded that result file into the cruise control web app. It will help us to have a look at it instantly when ever it fails.

Tanvir Afzal: Selenium Tanvir Afzal: Selenium Presentation Transcript

  • by: tanvir afzal
  • selenium ooh so what is this?
    • in simple terms, selenium is a web testing framework that runs in any browser, suited for:
    • functional testing
    • browser compatibility testing
  • keep it simple, or dig deep
    • just want to try it
    • simplicity – easy to use the selenium IDE to create a single or a complete suite of tests.
    • want to know more about it
    • complete solution - go deep inside selenium to know selenium remote control & grid
  • using selenium
    • tests can be written as HTML markup.
    • test cases can be written in a number of popular programming languages (Java, .NET, Perl, Python and Ruby)
    • it can be run directly in most modern web browsers. selenium can be deployed on windows, linux, and mac.
  • selenium projects
    • selenium IDE
    • selenium core
    • selenium RC
    • selenium grid
  • selenium IDE
    • selenium IDE is a firefox add-on that makes it easy to record and playback tests in firefox.
  • selenium core
    • selenium core tests run directly in a browser , just as real users do .
      • need to copy selenium Core & tests directly into application web server
  • selenium RC
    • selenium remote control is a system that allows to simulate web browsers locally
    • using almost any programming language and testing framework
  • the way RC works http://selenium-rc.openqa.org/
  • selenium grid
    • selenium grid allows several selenium remote control servers to be accessed in parallel by selenium grid server.
  • this is the way how grid works? http://selenium-grid.openqa.org/
  • Which tool I’ll use ?? * = experimental support is available in Selenium RC ** = theoretically possible, but not currently implemented Selenium IDE Selenium Remote Control Selenium Core Browser support Firefox Only Many All requires remote Installation No No Yes supports HTTPS/SSL Yes Yes* Yes supports multiple domains Yes Yes* No requires java No Yes No saves test results to disk No** Yes No language support Selenese Only Many Selenese Only
  • demo
  • tell me how I can use selenium IDE?
    • install selenium as a firefox plug-in
      • http://selenium-ide.openqa.org/download.jsp
    • in firefox browser go to
      • tools > selenium IDE
  • new face of IDE 1.0 beta 2
  • tell me about regression selenium ide ant cruise control
  • projects in cruise control
  • Embedded result file from RC
  • references:
    • selenium main site
      • http://selenium.openqa.org
    • support browser, OS, programming language, testing frameworks can be found here
      • http://selenium.openqa.org/about/platforms.html#browsers
    • command to run RC
      • java -jar selenium-server.jar -htmlSuite "*firefox" "http://www.somewhereinads.net" "E:selenium-remote-control-1.0-beta-1ads egression-testswiad-live runksuite.html" "E:selenium-remote-control-1.0-beta-1ads esults.html"
      • for more help use openqa froum
  • thanks for your patience any question ?? just through on me 