Configuration for Selenium RC and Web driver into Eclipse
Before going to configure the selenium into Eclipse we need to download certain .jar files for selenium.
Please find the list of the jar files which we need to download.
A) Java software need to be installed into your system.
(jre-7u45-windows-x64 download)-- Based on your system configuration 64 bit or 32 bit.B) Selenium Jar files
1. selenium-server-standalone-2.37.0
2. selenium-java-2.37.0
3. jxl-2.6 (if we want to use any excel objects , we need to download this file.. like retrieve data from .xls)
4. Junit (This is for Frame work)
The above files you can download from the below site.
1,2 --http://www.seleniumhq.org/download/.
3-- http://www.findjar.com/jar/net.sourceforge.jexcelapi/jars/jxl-2.6.jar.html
4--https://www.assembla.com/code/Pixel_Vault/subversion/nodes/lib/junit_4/junit-4.5.jar?rev=1.
C) Eclipse IDE
Now Download the Eclipse IDE..from the below site.
http://www.eclipse.org/downloads/packages/eclipse-classic-422/junosr2
a. Select your system configuration win 64 or 32.
Now click on download .. the eclipse will be downloaded into your system.
Now all the requirements are ready to configure selenium into Eclipse.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
1. Create a Folder structure in your C: drive
like..
Create one Selenium Automation folder in C: Drive . under this folder create the above folders as well.
1. Downloaded Eclipse should be placed in C:\Selenium Automation\Eclipse .. with Extract
2.Downloaded .jar file should be placed path in C:\Selenium Automation\Lib ...
3. IEServerDriver .exe file should be placed in C:\Selenium Automation\IEServerdriver .. folder
Now go to C:\ Selenium Automation\Eclipse folder just open
Now it will be open like below screen
Now click on Browse button and Navigate to C:\Selenium Automation .... project
Now it looks like
------------ Click on Ok button.
Click on Work bench Icon at right side top.
Now the display will change like below.
1. Go to File- New -> Java Project
->
2. Enter the Project name Anything ex: SeleniumRC
Then click on Finish button.
3. Double click on SeleniumRC folder..
4. Now right click on JRE system Library ->
Click on Configure Build path..
Click on Add External JARs..
Click on Open button.. now .jar files will be added to your library.
Then click on OK button..
Now .. Go to Run menu...
Click on External Tools Configurations...
Now Click on "Apply" and "Run".
Now you will get a message in your eclipse like
------------------------------------------------------------------------------------------------------------------
Now your Eclipse is Ready to Run with Selenium RC and Webdriver
--------------------------------------------------------------------------------------------------------------------------------------------------
1. Create one Package under Src folder...
Right click on Src-> New -> package..
click on OK---> enter package name and click on Finish button.
2. Create Test in Eclipse
q. Go to Src folder -> Select package-> right click on package -> Go to New -> Click on Class
Enter Class Name.
Click on Finish button..
Now...
No comments:
Post a Comment