@BeforeTest(groups = {"setup"})
public void setUp() throws Exception {
..
}
@Test(groups = { "a", "performance-group", "regression-group" },
dependsOnGroups = {"setup"} )
public void dependencyTest() {
..
}
The report says the no groups with 'setup' found:
java.lang.Throwable: Method example.ExampleTest.dependencyTest()
depends on nonexistent group "setup"
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:866)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:687)
...
Any ideas ?
Thanks
Ashish
Hi,
I'm using the dependency feature of TestNG and
its giving me some trouble.
Excerpts from the test class
@BeforeTest(groups = {"setup"})
public void setUp() throws Exception {
..
}
@Test(groups = { "a", "performance-group", "regression-group" },
dependsOnGroups = {"setup"} )
public void dependencyTest() {
..
}
The report says the no groups with 'setup' found:
java.lang.Throwable: Method example.ExampleTest.dependencyTest()
depends on nonexistent group "setup"
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:866)
at org.testng.internal.TestMethodWorker.run (TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:687)
...
Any ideas ?
Thanks
Ashish
The testng.xml file contains the test classname to be executed
<suite ....>
...
<class name="ExampleTest"/>
...
</suite>
Thanks
Ashish