- Go to https://download.eclipse.org/oomph/jre/?vm=1_1_8_0_64_0&pn=Eclipse%20Installer&pu=http://wiki.eclipse.org/Eclipse_Installer&pi=http://download.eclipse.org/oomph/jre/128x128.png
- Click “Oracle JDK 8”
- Download the right executable file for your machine (e.g. jdk-8u241-windows-x64.exe)
- Check the agreement box and click Download
- Create an account
- Verify account
- The executable file should begin downloading
- Run the executable file (continue clicking next; nothing should be changed)
- Download Eclipse IDE installer from the Eclipse website: https://www.eclipse.org/downloads/
- Run installer from your downloads folder
- Select “Eclipse IDE for Java Developers”
- Click “Install”
- Click “Accept Now”
- Click “Launch” after installation
- Once installed, go to Help > Install New Software
- Enter the update site URL:
- https://dl.bintray.com/testng-team/testng-eclipse-release/
- Link is from the following site: https://testng.org/doc/download.html
- Check the checkbox for the package added
- Click Next
- Click Install Anyway
- Restart Eclipse to use the features of the installed plugin
- Once restarted, verify TestNG plugin was installed File - New - Java Project - Other.. - TestNG - TestNG class
- Go to C:\ or Local Disk(C:) directory and create a Selenium folder
- Open browser and navigate to http://www.seleniumhq.org/
- Under Selenium WebDriver click Download
- On the Selenium Server (Grid) click to the right of the Latest stable version (e.g. 3.141.xx)
- Copy and paste .jar file in the C:\Selenium directory
- On the same page as the Selenium Server, download the Selenium Java Client
- Extract All, and copy and paste extracted content into the C:\Selenium directory
- Install chrome driver if you’re using Google Chrome Driver: https://chromedriver.chromium.org/downloads
- Downloaded guice-4.2.2.jar from: https://github.com/google/guice/wiki/Guice422
- Added in Selenium folder directory
- File New - Projects - Java - Java Project and click Next
- Project name: AutomatedTestCases and click Finished
- Right click src - Other…- TestNG - TestNG class
- Import the package name like in the video
- Checked the BeforeClass and AfterClass annotation
- Source folder should click Browse - click project name - then src - and click OK
- Right click project name - Build Path - Configure Build Path… - Libraries -click Add External JARs..
- Add the following JARs:
- client-combined-3.141.59
- client-combined-3.141.59-sources
- byte-buddy-1.8.15
- commons-exec-1.3
- guava-25.0-jre
- okhttp-3.11.0
- okio-1.14.0
- guice-4.2.2
- Added it to the Project properties - Java Build Path
- Click Add Library - TestNG
- Click Apply, then Apply and Close