• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.configuration;
2 
3 import org.testng.annotations.BeforeGroups;
4 import org.testng.annotations.BeforeTest;
5 import org.testng.annotations.Test;
6 
7 @Test(groups = {"base"})
8 public class Base {
9   static int m_count;
10 
11   @BeforeTest
init()12   public void init() {
13     m_count = 0;
14   }
15 
16   @BeforeGroups(groups = "foo")
beforeGroups()17   public void beforeGroups() {
18     m_count++;
19   }
20 
ppp(String s)21   private static void ppp(String s) {
22     System.out.println("[Base] " + s);
23   }
24 }