1 package test.mannotation;
2 
3 import org.testng.annotations.Configuration;
4 import org.testng.annotations.Test;
5 
6 @Test(groups = "child-class-test3", dependsOnGroups = "dog1", dependsOnMethods = "dom1")
7 public class MTest3 extends MBase {
8 
9   @Test(groups = "method-test3")
groups1()10   public void groups1() {}
11 
12   @Test
groups2()13   public void groups2() {}
14 
15   @Test(dependsOnGroups = "dog2")
dependsOnGroups1()16   public void dependsOnGroups1() {}
17 
18   @Test
dependsOnGroups2()19   public void dependsOnGroups2() {}
20 
21   @Test(dependsOnMethods = "dom2")
dependsOnMethods1()22   public void dependsOnMethods1() {}
23 
24   @Test
dependsOnMethods2()25   public void dependsOnMethods2() {}
26 
27   @Test(enabled = false)
enabled1()28   public void enabled1() {}
29 
30   @Test
enabled2()31   public void enabled2() {}
32 
33   @Configuration(beforeSuite = true, groups = "method-test3")
beforeSuite()34   public void beforeSuite() {
35   }
36 
37 }
38