Be Brav3

Setting Up Eclipse IDE With Selenium WebDriver and TestNG

July 27, 2016

Update: This post is outdated and has been archived.

  1. Install the latest version of the Java JDK
  2. Download the WebDriver JAR files for your preferred programming language and expand it into a folder for loading later into Eclipse
  3. Download and install the latest release of Eclipse IDE for Java Developers
  4. In Eclipse, open File > New > Java Project
  5. Enter a name for the project e.g. Selenium
  6. Click ‘Next’
  7. Click the ‘Libraries’ tab
  8. Click ‘Add External JARs’
  9. Add all the JARs from the Selenium WebDriver JAR folder (2 files) and the ‘libs’ subdirectory (~20 files)
  10. Click ‘Finish’
  11. Install the TestNG plug-in for Eclipse IDE
  12. In Eclipse, click on ‘Help’ > ‘Install New Software’
  13. Enter the URL ‘http://beust.com/eclipse’; into the ‘Work with:’ field
  14. Click ‘Add’ to add the repository
  15. Check the box next to the repo and click ‘Next’ and follow the on-screen instructions
  16. Verify TestNG is installed by right clicking on the project name and select ‘Run As’. TestNG should be one of the selections that pops op.