Thursday, August 28, 2008

run your Selenese Test Suites

1. Download Selenium Remote Control from http://selenium-rc.openqa.org
2. Unzip and extract it into your local drive (say, C:\selenium-remote-control-1.0-beta-1)
3. Ensure that you have a JRE, else download it from http://java.sun.com
4. Once JRE is installed, you can verify it by testing it at command prompt java -version
5. In Command prompt, navigate to location where Selenium Remote control is unzipped.
(In our case, C:\selenium-remote-control-1.0-beta-1\selenium-server-1.0-beta-1)
6. To check server working, type java -jar selenium-server.jar in command prompt and press enter. It should be working.
7. Now we will run our HTML test suite, for that we will use HTMLSuite commands of Selenium RC.

8. The command will look like: java -jar selenium-servre.jar -htmlsuite [browser] [url] [path to testsuite] [path to store results]

9. [browser] could be :
-*firefox
-*chrome
-*iexplore
-*iehta
-*safari
-*custom /path/to/browser

10. Here is an example command; java -jar selenium-server.jar -htmlsuite *iexplore http://www.gmail.com c:\testsuite\testsuite.html c:\testsuite\results.html

11. There you go, all the test cases in the test suite will run.

No comments: