• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.dependent;
2 
3 import org.testng.annotations.Test;
4 
5 import test.BaseTest;
6 
7 public class MultiGroupTest extends BaseTest {
8   @Test
verifyDependsOnMultiGroups()9   public void verifyDependsOnMultiGroups() {
10      addClass(MultiGroup1SampleTest.class.getName());
11      addClass(MultiGroup2SampleTest.class.getName());
12 
13      run();
14      String[] passed = {
15          "testA",
16       };
17      String[] failed = {
18         "test1"
19      };
20      String[] skipped = {
21          "test2"
22      };
23      verifyTests("Passed", passed, getPassedTests());
24      verifyTests("Failed", failed, getFailedTests());
25      verifyTests("Skipped", skipped, getSkippedTests());
26   }
27 }
28