1 package test.listeners;
2 
3 import org.testng.ISuite;
4 import org.testng.ISuiteListener;
5 
6 public class SuiteListener implements ISuiteListener {
7   public static int start = 0;
8   public static int finish = 0;
9 
10   @Override
onFinish(ISuite suite)11   public void onFinish(ISuite suite) {
12     finish++;
13   }
14 
15   @Override
onStart(ISuite suite)16   public void onStart(ISuite suite) {
17     start++;
18   }
19 
20 }
21