Selenium RC  Automation Test <ul><li>http://seleniumhq.org/download/ </li></ul><ul><li>download latest selenium rc jar  </...
<ul><li>After installing Jdk , go to C:Program FilesJavajdk1.6.0_14bin </li></ul><ul><li>Create selenium folder and place ...
<ul><li>In CLI , type the path of your selenium folder , which you have created . </li></ul><ul><li>cd C:Program FilesJava...
<ul><li>Create  test cases using selenium IDE(firefox plugin) </li></ul><ul><li>Save your test cases as HTML format. </li>...
<ul><li>Create two folders “result” and “test” under selenium folder </li></ul><ul><li>In test folder , keep your all test...
Example of test suite <ul><li><?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?><!DOCTYPE html PUBLIC &quot;-//W3C...
Selenium command <ul><li>Copy below mention command to run test suite on FIREFOX browser </li></ul><ul><li>java -jar selen...
<ul><li>Previous  command will open two  window of a Fire Fox Browser, one for test runner and in another window , it will...
<ul><li>Now , check result folder inside selenium folder. Result of previous command will store here .You can run that res...
Screenshot of result page (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
Commands for various browser <ul><li>java -jar selenium-server-standalone-2.6.0.jar -htmlSuite &quot;*iexplore&quot; &quot...
Contd.. <ul><li>java -jar selenium-server-standalone-2.6.0.jar -htmlsuite *googlechrome http://localhost:8080/ C:wampwwwse...
Contd.. <ul><li>java -jar selenium-server-standalone-2.6.0.jar -htmlsuite *opera http://localhost:8080/ C:wampwwwseleniumt...
<ul><li>Thank You. </li></ul><ul><li>Contact Me : anandshahil11@gmail.com </li></ul>(c)All rights reserved @ANANDSHAHIL[AT...
Upcoming SlideShare
Loading in …5
×

Selenium RC Automation testing

2,199 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,199
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Selenium RC Automation testing

  1. 1. Selenium RC Automation Test <ul><li>http://seleniumhq.org/download/ </li></ul><ul><li>download latest selenium rc jar </li></ul><ul><li>selenium-server-standalone-2.6.0.jar </li></ul><ul><li>Download java jdk > 1.5 and install jdk exe file on windows </li></ul><ul><li>Go to CLI , type java –version </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  2. 2. <ul><li>After installing Jdk , go to C:Program FilesJavajdk1.6.0_14bin </li></ul><ul><li>Create selenium folder and place the downloaded jar file. NOTE:- you can create this folder anywhere as your wish. </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  3. 3. <ul><li>In CLI , type the path of your selenium folder , which you have created . </li></ul><ul><li>cd C:Program FilesJavajdk1.6.0_14binselenium </li></ul><ul><li>Create a selenium folder anywhere in your hard drive </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  4. 4. <ul><li>Create test cases using selenium IDE(firefox plugin) </li></ul><ul><li>Save your test cases as HTML format. </li></ul><ul><li>Create a test suite using selenium IDE. </li></ul><ul><li>Save your test suite as HTML. </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  5. 5. <ul><li>Create two folders “result” and “test” under selenium folder </li></ul><ul><li>In test folder , keep your all test cases and test suites </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  6. 6. Example of test suite <ul><li><?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> </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  7. 7. Selenium command <ul><li>Copy below mention command to run test suite on FIREFOX browser </li></ul><ul><li>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; </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  8. 8. <ul><li>Previous command will open two window of a Fire Fox Browser, one for test runner and in another window , it will run test suite. </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  9. 9. <ul><li>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 </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  10. 10. Screenshot of result page (c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  11. 11. Commands for various browser <ul><li>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; </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  12. 12. Contd.. <ul><li>java -jar selenium-server-standalone-2.6.0.jar -htmlsuite *googlechrome http://localhost:8080/ C:wampwwwseleniumtestlocaltestSuite.html C:wampwwwseleniumresultresult_localtestSuite_GCHROME.html </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  13. 13. Contd.. <ul><li>java -jar selenium-server-standalone-2.6.0.jar -htmlsuite *opera http://localhost:8080/ C:wampwwwseleniumtestlocaltestSuite.html C:wampwwwseleniumresultresult_localtestSuite_OPERA.html </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM
  14. 14. <ul><li>Thank You. </li></ul><ul><li>Contact Me : anandshahil11@gmail.com </li></ul>(c)All rights reserved @ANANDSHAHIL[AT]GMAIL[DOT]COM

×