Tanvir Afzal: Selenium


Published on

Published in: Technology, Business
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • 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

    1. 1. by: tanvir afzal
    2. 2. selenium ooh so what is this? <ul><li>in simple terms, selenium is a web testing framework that runs in any browser, suited for: </li></ul><ul><li>functional testing </li></ul><ul><li>browser compatibility testing </li></ul>
    3. 3. keep it simple, or dig deep <ul><li>just want to try it </li></ul><ul><li>simplicity – easy to use the selenium IDE to create a single or a complete suite of tests. </li></ul><ul><li>want to know more about it </li></ul><ul><li>complete solution - go deep inside selenium to know selenium remote control & grid </li></ul>
    4. 4. using selenium <ul><li>tests can be written as HTML markup. </li></ul><ul><li>test cases can be written in a number of popular programming languages (Java, .NET, Perl, Python and Ruby) </li></ul><ul><li>it can be run directly in most modern web browsers. selenium can be deployed on windows, linux, and mac. </li></ul>
    5. 5. selenium projects <ul><li>selenium IDE </li></ul><ul><li>selenium core </li></ul><ul><li>selenium RC </li></ul><ul><li>selenium grid </li></ul>
    6. 6. selenium IDE <ul><li>selenium IDE is a firefox add-on that makes it easy to record and playback tests in firefox. </li></ul>
    7. 7. selenium core <ul><li>selenium core tests run directly in a browser , just as real users do . </li></ul><ul><ul><li>need to copy selenium Core & tests directly into application web server </li></ul></ul>
    8. 8. selenium RC <ul><li>selenium remote control is a system that allows to simulate web browsers locally </li></ul><ul><li>using almost any programming language and testing framework </li></ul>
    9. 9. the way RC works http://selenium-rc.openqa.org/
    10. 10. selenium grid <ul><li>selenium grid allows several selenium remote control servers to be accessed in parallel by selenium grid server. </li></ul>
    11. 11. this is the way how grid works? http://selenium-grid.openqa.org/
    12. 12. 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
    13. 13. demo
    14. 14. tell me how I can use selenium IDE? <ul><li>install selenium as a firefox plug-in </li></ul><ul><ul><li>http://selenium-ide.openqa.org/download.jsp </li></ul></ul><ul><li>in firefox browser go to </li></ul><ul><ul><li>tools > selenium IDE </li></ul></ul>
    15. 15. new face of IDE 1.0 beta 2
    16. 16. tell me about regression selenium ide ant cruise control
    17. 17. projects in cruise control
    18. 18. Embedded result file from RC
    19. 19. references: <ul><li>selenium main site </li></ul><ul><ul><li>http://selenium.openqa.org </li></ul></ul><ul><li>support browser, OS, programming language, testing frameworks can be found here </li></ul><ul><ul><li>http://selenium.openqa.org/about/platforms.html#browsers </li></ul></ul><ul><li>command to run RC </li></ul><ul><ul><li>java -jar selenium-server.jar -htmlSuite &quot;*firefox&quot; &quot;http://www.somewhereinads.net&quot; &quot;E:selenium-remote-control-1.0-beta-1ads egression-testswiad-live runksuite.html&quot; &quot;E:selenium-remote-control-1.0-beta-1ads esults.html&quot; </li></ul></ul><ul><ul><li>for more help use openqa froum </li></ul></ul>
    20. 20. thanks for your patience any question ?? just through on me 