Tuesday 1 November 2011

Configuring Selenium RC with Eclipse using JUnit

Open Eclipse IDE
1. Select File-->New-->Java Project. Screen will be appear like below screenshot
Enter Project  Name and Click on Finish. On Left Side Bar we will get SeleniumRC Example in Package Explorer

2. Expand Project --> Right Click on Src--->New-->Folder --> enter folder name -->Click Finish
  Like in below screen shot.
3.In Project Explorer we found one package symbol with given folder name. Right Click on that -->New-->Junit Test Case --->Select JUnit3 or JUnit4 Test -->Enter Class name ---->Click Finish.
Like in below screen shot
Expand Package-->One file name with .java extension will appear and scren will be appear like
Right click on Java File-->Got Build Path--> Configur Build Path-->Select Libriaries-->Click on Add External JARs-->Browse for Selenium Source files-->Select Jar files in seleniu-server folder and select jar files present in Selenium Set-up-->Selenium java-client driver

Click OK.

Now Eclipse is Successsfully Configured with Selenium RC. We can write selenium tests in Eclipse

 If JUnit refernce files are not added to your project download JUnit jar file then Add this Jar file like above.

1 comment:

  1. Really a good piece of knowledge on Selenium. Thanks for such a good post. I would like to recommend one more resource NPN Training which helps in getting more knowledge on Selenium. The best part of NPN Training is they provide complete Hands-on classes.

    ReplyDelete