Configuring Selenium-RC With Eclipse
Following lines describes configuration of Selenium-RC with Eclipse - Version: 3.3.0. (Europa Release). It should not be too different for higher versions of Eclipse
- Launch Eclipse.
- Select File > New > Other.
- Java > Java Project > Next
- Provide Name to your project, Select JDK in ‘Use a project Specific JRE’ option (JDK 1.5 selected in this example) > click Next
- Keep ‘JAVA Settings’ intact in next window. Project specific libraries can be added here. (This described in detail in later part of document.)
- Click Finish > Click on Yes in Open Associated Perspective pop up window.
This would create Project Google in Package Explorer/Navigator pane.
- Right click on src folder and click on New > Folder
Name this folder as com and click on Finish button.
- This should get com package insider src folder.
- Following the same steps create core folder inside com
SelTestCase class can be kept inside core package.
Create one more package inside src folder named testscripts. This is a place holder for test scripts.
Please notice this is about the organization of project and it entirely depends on individual’s choice / organization’s standards. Test scripts package can further be segregated depending upon the project requirements.
- Create a folder called lib inside project Google. Right click on Project name > New > Folder. This is a place holder for jar files to project (i.e. Selenium client driver, selenium server etc)
This would create lib folder in Project directory.
- Right click on lib folder > Build Path > Configure build Path
- Under Library tab click on Add External Jars to navigate to directory where jar files are saved. Select the jar files which are to be added and click on Open button.
After having added jar files click on OK button.
Added libraries would appear in Package Explorer as following: