01: package test.dependent;
02:
03: import org.testng.annotations.Test;
04:
05: import test.BaseTest;
06:
07: public class MultiGroupTest extends BaseTest {
08: @Test
09: public void verifyDependsOnMultiGroups() {
10: addClass("test.dependent.MultiGroup1SampleTest");
11: addClass("test.dependent.MultiGroup2SampleTest");
12:
13: run();
14: String[] passed = { "testA" };
15: String[] failed = { "test1" };
16: String[] skipped = { "test2" };
17: verifyTests("Passed", passed, getPassedTests());
18: verifyTests("Failed", failed, getFailedTests());
19: verifyTests("Skipped", skipped, getSkippedTests());
20: }
21: }
|