1 package test.listeners;
2 
3 import org.testng.ITestContext;
4 import org.testng.ITestResult;
5 import org.testng.internal.IResultListener2;
6 
7 public class ResultListener implements IResultListener2 {
8 
9   public static long m_end = 0;
10 
11   @Override
onTestStart(ITestResult result)12   public void onTestStart(ITestResult result) {
13     // TODO Auto-generated method stub
14 
15   }
16 
17   @Override
beforeConfiguration(ITestResult tr)18   public void beforeConfiguration(ITestResult tr) {
19   }
20 
21   @Override
onTestSuccess(ITestResult result)22   public void onTestSuccess(ITestResult result) {
23     m_end = result.getEndMillis();
24   }
25 
26   @Override
onTestFailure(ITestResult result)27   public void onTestFailure(ITestResult result) {
28     // TODO Auto-generated method stub
29 
30   }
31 
32   @Override
onTestSkipped(ITestResult result)33   public void onTestSkipped(ITestResult result) {
34     // TODO Auto-generated method stub
35 
36   }
37 
38   @Override
onTestFailedButWithinSuccessPercentage(ITestResult result)39   public void onTestFailedButWithinSuccessPercentage(ITestResult result) {
40     // TODO Auto-generated method stub
41 
42   }
43 
44   @Override
onStart(ITestContext context)45   public void onStart(ITestContext context) {
46     // TODO Auto-generated method stub
47 
48   }
49 
50   @Override
onFinish(ITestContext context)51   public void onFinish(ITestContext context) {
52     // TODO Auto-generated method stub
53 
54   }
55 
56   @Override
onConfigurationSuccess(ITestResult itr)57   public void onConfigurationSuccess(ITestResult itr) {
58     // TODO Auto-generated method stub
59 
60   }
61 
62   @Override
onConfigurationFailure(ITestResult itr)63   public void onConfigurationFailure(ITestResult itr) {
64     // TODO Auto-generated method stub
65 
66   }
67 
68   @Override
onConfigurationSkip(ITestResult itr)69   public void onConfigurationSkip(ITestResult itr) {
70     // TODO Auto-generated method stub
71 
72   }
73 }
74