tags:

views:

16

answers:

1

I can execute html script and html suite through RC. Now I would like to execute javascript through Selenium RC. I have few question related to this.

  1. Should I need to set class path for that?
  2. After writing test script in javascript, what is the format of javascript suite. Please provide example.
  3. What will be the comment to execute the suite from command prompt? I think the command I used to execute html suite may not work. The command I used java -jar selenium-server.jar -multiwindow -javaSuite "*iexplore" "http://www.google.co.in/" "C:\Tests_suite.html" "C:\results.html"
A: 

The way I've used Javascript with Selenium RC id to use the User extensions.

There's some info. here as well.

Or you can use the getEval method of selenium API to execute Javascript from Selenium RC.

From the command line, remember to add:

-userExtensions : indicates a JavaScript file that will be loaded into selenium

nzpcmad