To set selenium in eclipse
Eclipse requires JUnit with Ant. The selenium project can also be developed using JUnit with Maven.
Download
Setting up of selenium in eclipse
- Set system variables
- JUNIT_HOME=“/*--path of junit jar file c:\selenium\junit-4.4\junit-4.4.jar--*/”
- Set path of system variable for Ant
- Path=“/*--path of Apache Ant bin c:\Selenium\apache-ant-1.7.1\bin --*/”
- Create new Selenium project in Eclipse
- Then create a new junit testcase in that project.
- Add the exported testcase of selenium-ide to the new test case.
- Then create a new junit testsuite to run all the testcases.
- To run the selenium testcases, start the selenium server (selenium RC) in command prompt.
- Then run the test case in junit, which will automatically launch a browser and run the junit scripts in it.
No comments:
Post a Comment