4. Configure Run Setup and Start the Selenium Standalone Server from 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 the Run setup and then Run it.

1. Configure the Run Setup for Selenium Server in Eclipse IDE:

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:


2. Run the Selenium Standalone Server

1. Click on 'Configured Run' icon on Eclipse IDE as shown below and select 'Selenium Standalone Server' option (We have given this name while configuring the Run Setup - Refer Above Step - 3):




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




Thats it !!! This is how we start the Selenium Standalone Server.

How to create a JUnit Selenium RC Test using Selenium IDE and Run in Eclipse IDE ? will be explained in the next post.