• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.enable;
2 
3 import org.testng.annotations.AfterSuite;
4 import org.testng.annotations.BeforeSuite;
5 import org.testng.annotations.Test;
6 
7 @Test(enabled = false)
8 public class B {
9 
testB()10   public void testB() {}
11 
12   @Test
testB2()13   public void testB2() {}
14 
15   @Test(enabled = true)
testB3()16   public void testB3() {}
17 
18   @Test(enabled = false)
disabledB()19   public void disabledB() {}
20 
21   @BeforeSuite(enabled = true)
disabledBeforeSuiteB()22   public void disabledBeforeSuiteB() {}
23 
24   @BeforeSuite
disabledBeforeSuiteB2()25   public void disabledBeforeSuiteB2() {}
26 
27   @BeforeSuite(enabled = false)
disabledBeforeSuiteB3()28   public void disabledBeforeSuiteB3() {}
29 
30   @BeforeSuite(alwaysRun = false)
beforeSuiteNoRunB()31   public void beforeSuiteNoRunB() {}
32 
33   @BeforeSuite(enabled = true, alwaysRun = false)
beforeSuiteNoRunB2()34   public void beforeSuiteNoRunB2() {}
35 
36   @BeforeSuite(enabled = false, alwaysRun = false)
disabledBeforeSuiteNoRunB()37   public void disabledBeforeSuiteNoRunB() {}
38 
39   @BeforeSuite(alwaysRun = true)
beforeSuiteRunB()40   public void beforeSuiteRunB() {}
41 
42   @BeforeSuite(enabled = true, alwaysRun = true)
beforeSuiteRunB2()43   public void beforeSuiteRunB2() {}
44 
45   @BeforeSuite(enabled = false, alwaysRun = true)
disabledBeforeSuiteRunB()46   public void disabledBeforeSuiteRunB() {}
47 
48   @AfterSuite
afterSuiteB()49   public void afterSuiteB() {}
50 
51   @AfterSuite(enabled = true)
afterSuiteB2()52   public void afterSuiteB2() {}
53 
54   @AfterSuite(enabled = false)
disabledAfterSuiteB()55   public void disabledAfterSuiteB() {}
56 
57   @AfterSuite(alwaysRun = false)
afterSuiteNoRunB()58   public void afterSuiteNoRunB() {}
59 
60   @AfterSuite(enabled = true, alwaysRun = false)
afterSuiteNoRunB2()61   public void afterSuiteNoRunB2() {}
62 
63   @AfterSuite(enabled = false, alwaysRun = false)
disabledAfterSuiteNoRunB()64   public void disabledAfterSuiteNoRunB() {}
65 
66   @AfterSuite(alwaysRun = true)
afterSuiteRunB()67   public void afterSuiteRunB() {}
68 
69   @AfterSuite(enabled = true, alwaysRun = true)
afterSuiteRunB2()70   public void afterSuiteRunB2() {}
71 
72   @AfterSuite(enabled = false, alwaysRun = true)
disabledAfterSuiteRunB()73   public void disabledAfterSuiteRunB() {}
74 }
75