01: package test.mannotation;
02:
03: import org.testng.annotations.Configuration;
04: import org.testng.annotations.Test;
05:
06: @Test(groups="child-class-test3",dependsOnGroups="dog1",dependsOnMethods="dom1")
07: public class MTest3 extends MBase {
08:
09: @Test(groups="method-test3")
10: public void groups1() {
11: }
12:
13: @Test
14: public void groups2() {
15: }
16:
17: @Test(dependsOnGroups="dog2")
18: public void dependsOnGroups1() {
19: }
20:
21: @Test
22: public void dependsOnGroups2() {
23: }
24:
25: @Test(dependsOnMethods="dom2")
26: public void dependsOnMethods1() {
27: }
28:
29: @Test
30: public void dependsOnMethods2() {
31: }
32:
33: @Test(enabled=false)
34: public void enabled1() {
35: }
36:
37: @Test
38: public void enabled2() {
39: }
40:
41: @Configuration(beforeSuite=true,groups="method-test3")
42: public void beforeSuite() {
43: }
44:
45: }
|