In order to compile, run and execute the Unit, Integration Test cases using TestNG in eclipse, first you need to configure TestNG in your eclipse IDE.
As a prerequisite, you must have installed at least Java
JDK 6 (Download Java from here!).
TestNG Installation Video Tutorial:
If you liked this video, then please subscribe to our YouTube Channel for more video tutorials.
There are few standard steps to setup the TestNG in Eclipse. Please follow the below-mentioned steps to set up the TestNG in Eclipse if already not configured.
- Now downloading and installation will start. It may take some time depends on your internet speed.
- In between, it will show you the security warning. Accept this warning and click on “OK” button.
- In the last step, it will ask to restart the Eclipse. Accept the alert message and click on “OK” button. Now your eclipse will restart and TestNG has installed in your eclipse successfully.
To confirm the installation, You can right click on any available class in your project. Hover the mouse on “Run As…” option. It will show you TestNG option to execute your class.