0

I am New to selenium RC..already working on selenium IDE. For selenium RC i have chosen java language.also installed selenium rc server. Now i dont have any idea have to go further. Please advice me on same

2 Answers 2

1

There are two steps.

You have to start the server with

java -jar selenium-server.jar

And once it is running you can run a java application with something like:

Selenium selenium = new DefaultSelenium( "localhost", 
                                         4444, 
                                         "*firefox", 
                                         "http://www.somesite.com/");

// the code from your Selenium IDE export goes here, e.g.
selenium.open("http://www.somesite.com/somePage.html"); 

selenium.stop();

For more information see, the following tutorial:

Selenium Remote Control For Java — A Tutorial.

Sign up to request clarification or add additional context in comments.

Comments

0

Export the testcases you have in IDE and use them inside your java program.

Sorry to be that generic, but your question is really vague...

2 Comments

done with export (java), and also tried to run script > java -jar selenium-server.jar -multiwindow -htmlSuite "*firefox" "google.com" "C:\Selenium_Scripts\test.html" "C:\Selenium_Scripts\results.html" but its not working...actually i am not aware of flow for executing script on RC
I don't think you can run a script exported as java from the command line that way. The documentation uses a test exported as HTML.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.