TestNG : Tips & Tricks

[1] TestNG : Plugin Setup for STS / Eclipse

IntelliJ and few other IDEs have built-in support for TestNG. But if we are using STS or other Eclipse based tools, we are required to install a plugin to enable IDE support for TestNG.

To set up testng plugin for STS / Eclipse, please follow the below steps:

  • Navigate to : Help menu and click on Install New Software
  • In the install window, click on Add and give the following details and click on Add again.
    Name: TestNG
    Location: https://beust.com/eclipse
    

Please wait for few minutes for the components to be downloaded. Once the components are downloaded, you will see something similar to the tree shown below.

  • Select all the compoenents and click Next.
  • Accept the license and proceed with installation.
  • When prompted for, restart your IDE for the installation to complete.

That’s all you need to configure test-ng plugin in sts / eclipse.