• Save
Selenium RC Automation testing
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Selenium RC Automation testing

on

  • 2,207 views

This PPT is going to help user to run test suites/test cases on any browser via command line.

This PPT is going to help user to run test suites/test cases on any browser via command line.

Statistics

Views

Total Views
2,207
Views on SlideShare
2,207
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

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

Selenium RC Automation testing Presentation Transcript

  • 1. Selenium RC Automation Test
    • http://seleniumhq.org/download/
    • download latest selenium rc jar
    • selenium-server-standalone-2.6.0.jar
    • Download java jdk > 1.5 and install jdk exe file on windows
    • Go to CLI , type java –version
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 2.
    • After installing Jdk , go to C:Program FilesJavajdk1.6.0_14bin
    • Create selenium folder and place the downloaded jar file. NOTE:- you can create this folder anywhere as your wish.
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 3.
    • In CLI , type the path of your selenium folder , which you have created .
    • cd C:Program FilesJavajdk1.6.0_14binselenium
    • Create a selenium folder anywhere in your hard drive
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 4.
    • Create test cases using selenium IDE(firefox plugin)
    • Save your test cases as HTML format.
    • Create a test suite using selenium IDE.
    • Save your test suite as HTML.
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 5.
    • Create two folders “result” and “test” under selenium folder
    • In test folder , keep your all test cases and test suites
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 6. Example of test suite
    • <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?><!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;><html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;><head> <meta content=&quot;text/html; charset=UTF-8&quot; http-equiv=&quot;content-type&quot; /> <title>Test Suite</title></head><body><table id=&quot;suiteTable&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; border=&quot;1&quot; class=&quot;selenium&quot;><tbody><tr><td><b>Test Suite</b></td></tr><tr><td><a href=&quot;localtest.html&quot;>Login Page test</a></td></tr>localregisterpage<tr><td><a href=&quot;localregisterpage.html&quot;>Registration Page</a></td></tr></tbody></table></body></html>
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 7. Selenium command
    • Copy below mention command to run test suite on FIREFOX browser
    • java -jar selenium-server-standalone-2.6.0.jar -htmlSuite &quot;*firefox C:Documents and SettingsLocal SettingsApplication DataMozilla Firefoxfirefox.exe&quot; &quot;http://www.google.com&quot; &quot;C:wampwwwseleniumtesttestsuite1.html&quot; &quot;C:wampwwwseleniumresultresult_ff4_260.html&quot;
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 8.
    • Previous command will open two window of a Fire Fox Browser, one for test runner and in another window , it will run test suite.
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 9.
    • Now , check result folder inside selenium folder. Result of previous command will store here .You can run that result on any browser to see the stats
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 10. Screenshot of result page (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 11. Commands for various browser
    • java -jar selenium-server-standalone-2.6.0.jar -htmlSuite &quot;*iexplore&quot; &quot;http://www.google.com&quot; &quot;C:wampwwwseleniumtesttestsuite1.html&quot; &quot;C:wampwwwseleniumresultresult_ff260.html&quot;
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 12. Contd..
    • java -jar selenium-server-standalone-2.6.0.jar -htmlsuite *googlechrome http://localhost:8080/ C:wampwwwseleniumtestlocaltestSuite.html C:wampwwwseleniumresultresult_localtestSuite_GCHROME.html
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 13. Contd..
    • java -jar selenium-server-standalone-2.6.0.jar -htmlsuite *opera http://localhost:8080/ C:wampwwwseleniumtestlocaltestSuite.html C:wampwwwseleniumresultresult_localtestSuite_OPERA.html
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  • 14.
    • Thank You.
    • Contact Me : anandshahil11@gmail.com
    (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM