Make sure you have download the latest stable TestNG library from http://www.testng.org. Next thing is to make sure that we have the latest stable version of the Selenium library from http://code.google.com/p/selenium/downloads/list.
- Create a new Java project in Eclipse
- Create two separate folders, named tests and src
- Import the TestNG library. By opening the context menu on the project, and select Properties > Java Build Path > Libraries > Add External JARs
- Import the Selenium library in the same way as described above
What has been done
We have create our project structure, by importing the libraries and creating two separate folders. In the src folder we will create the website abstraction and in the tests folder we will create our test scripts.
Tip 1: The latest Selenium releases comes with a lot of additional libraries which are very useful and can be found in the libs folder.