We run software Testing workshops.<br /><br />see www.time2test.co.uk<br /><br />Selenium 2 and jUnit example<br />1. use the already created script<br />2. open up eclipse IDE<br />3. creat a java project on Eclipse IDE<br />4. give it a name: Selenium2JavaScript<br />5. click on Next and Finish<br />6. create a package for the project<br /> Source folder: Selenium2javaSciprt/src<br /> Name:com.example.tests<br />7. click on Finish<br />8. create a java file<br /> New->Class<br /> Name: TestJava<br />9. Now convert a .html file to .java file<br />10. open up Selenium IDE and export test case as jUNit4 (webdriver) as .java<br />11. open up the java file in notepad++<br />12. copy the saved java file directly into Eclipse<br />13. Ensure that class name and .java file file name is the same<br />14. now add the selenium 2 jar and jUnit jar<br />15 Right click on project->Properties - select java Build Path-> External Jars<br />16. select jUnit 4.7<br />17. we have already added the selenium 2 jars to the library so first add selenium 2 jars using "add external jars" button<br />18. Now Run the Project<br />19. right click on project->Run As->jUnit Test<br />20. tick "use configuration specific settings"<br />21. select jUnit Specific settings<br />22 . notice the test will execute<br />23. Green indicates the script run successfully<br />24. end