4. Configuring Selenium Standalone Server in Eclipse IDE




Before running any Test written in Selenium RC on Eclipse IDE, we've to start the Selenium Server first.

In order to start the selenium sever, first we have to configure its Run setup in Eclipse IDE as explained below:

1. In Eclipse IDE, click on the 'Run' Menu and select 'External Tools' -> 'External Tools Configurations' option as shown below:


2. Ensure that 'External Tools Configurations' dialog is displayed, select 'Program' option and click on 'New Launch Configuration' option as shown below:


3. Ensure 'New Launch Configuration' options are displayed and change the name in the Name field to "Selenium Standalone Server" as shown below:


4. Click on the 'Browse File System' button under the 'Location' heading as shown below:


5. Select the Java.exe  file inside the 'bin' folder of  C:/Program Files/Java/JDK path as shown below and click on 'Open' button:


6. Ensure that the selected 'Java.exe' file path got added in the 'Location' text box as shown below:


7. Click on 'Brows Workspace' button under the 'Working Directory' as shown below:



8. Ensure 'Folder Selection' dialog is displayed, expand the 'Project' folder, select the 'library' folder and click on 'OK' button as shown below:


9. Ensure that the selected 'library' work space path got added into the 'Working Directory' text box as shown below:


10. Enter '-jar selenium-standalone-server-2.31.0.jar' command into the 'Arguments' text area as shown below:



11. Click on 'Apply' Button as shown below:


12. Click on 'Run' button as shown below:


13. Ensure that the Selenium Standalone Server has launched and started in Console as shown below:




Please comment below to feedback or ask questions.

How to Start the Selenium Standalone Server will be explained in the next post.


2 comments:

  1. Hi Arun,

    I am getting following error message when i configure Selenium standalone server in Eclipse IDE.

    Unable to access jarfile selenium-server-standalone-2.42.2.jar

    How can i solve this...

    ReplyDelete
  2. Hi Arun,

    I am getting following error message when i configure Selenium standalone server in Eclipse IDE.

    Unable to access jarfile selenium-server-standalone-2.48.2.jar

    How can i solve this...

    ReplyDelete

Followers

Labels