- Download TestNG-7.4.0.jar then add it to referenced libraries
- Run simple test code from TestNG docs
import org.testng.annotations.*;
public class TestNgTwoTests {
@BeforeClass
public void setUp() {
// code that will be invoked when this test is instantiated
}
@Test(groups = { "fast" })
public void aFastTest() {
System.out.println("Fast test");
}
@Test(groups = { "slow" })
public void aSlowTest() {
System.out.println("Slow test");
}
}
Clicking the triangle button to run test and notification pops up Run Tests: Resolving launch configuration... , it keeps resolving and nothing happens:
