Thursday 28 June 2012

Selenium Configuration with Eclipse


1. First we need to install JDK
2. Then we need to install Eclipse (http://www.eclipse.org/downloads/)
(No need to install the Eclipse, just unzip the downloaded folder anywhere in local drive. That will provide the ‘eclipse.exe’ which will open the Eclipse framework)
3. Now we need to create a workspace folder –> C\Eclipse-WorkspaceSeleniumTests
(‘Workspace’ is the location where the entire Eclipse project will be saved)
4. Open the Eclipse by ‘eclipse.exe’
5. Close Eclipse welcome screen
6. Click File menu –> Switch Workspace –> other
7. Now Select the C:Eclipse-WorkspaceSeleniumTests folder (refer following screenshot)



8. It has finished setting up the eclipse.  Now, we need to download Selenium RC server / client driver and configure that to Eclipse
9. Download Selenium server:  http://seleniumhq.org/download/
10. Download Selenium Client driver for Java (from Selenium Client Drivers section)
11. Create “Selenium” folder in C: drive and copy the Selenium-server.jar as well as unzip the Selenium Client driver (C:Selenium)
12. Now downloading and unzipping the files into a folder is done.  We need to configure the appropriate Selenium Client driver Jar file to the Eclipse.
a) Go to Eclipse –> Click  File –> New –> Project (from various options need to select just “project”)
b) In Select Wizard –> Click Java –> “Java Project” (refer following screenshot)



c) Give the project name (e.g. FirstProject)
d) Click Finish – Click Yes

13. Now we are done with creation of project and need to configure the Selenium Client driver to this Project
a) Right Click “FirstProject” project



b) Click “Java Build Path”
c) Click Libraries tab
d) Click “Add External JARs” button
e) Select “Selenium Client Drivers” unzipped in C:Selenium folder (Selenium Server JAR file should not be added)
f) Click OK
g) Referenced libraries –> contains both the Selenium Client driver jar files as shown in the below screenshot.


So far, we have done the configuration of Selenium with Eclipse.



2 comments:

  1. I would like to thank you for sharing this great information with us. I am really glad to learn about this because it helps me to increase my knowledge.Website Design Company Bangalore | Bangalore Web Design Company

    ReplyDelete
  2. Thanks for sharing this information. Really useful for me about testing. Keep share such good information. Manual Testing Training in Bangalore

    ReplyDelete