Selenium IDE to Selenium RC Java Example

  • 13 years ago
Record a script by Selenium IDE and change into Java Format and run on Selenium RC
1. start Selenium IDE
2. record a script on Selenium IDE against wordpress.com
3. click on Options->Format->jUnit 4 to covert the selenium script to Java format
4. Save test case as QuickTest.java
5. Now open Ecilpse IDE
6. create a java project
7. Create a package in that java project ( com.example.tests)
8. Now copy the previously aved test case into the package just created
9. Now include all the jar files
create a lib directory and add the jar file
10. Now lauch the selenium Server
java -jar selenium-server.jar
11. Now run the java project
12. Click on Run As - > jUnit Test