1 package test.verify; 2 3 import org.testng.ITestContext; 4 import org.testng.ITestListener; 5 import org.testng.ITestResult; 6 7 public class VerifyTestListener implements ITestListener { 8 public static int m_count = 0; 9 10 @Override onFinish(ITestContext context)11 public void onFinish(ITestContext context) { 12 } 13 14 @Override onStart(ITestContext context)15 public void onStart(ITestContext context) { 16 m_count++; 17 } 18 19 @Override onTestFailedButWithinSuccessPercentage(ITestResult result)20 public void onTestFailedButWithinSuccessPercentage(ITestResult result) { 21 } 22 23 @Override onTestFailure(ITestResult result)24 public void onTestFailure(ITestResult result) { 25 } 26 27 @Override onTestSkipped(ITestResult result)28 public void onTestSkipped(ITestResult result) { 29 } 30 31 @Override onTestStart(ITestResult result)32 public void onTestStart(ITestResult result) { 33 } 34 35 @Override onTestSuccess(ITestResult result)36 public void onTestSuccess(ITestResult result) { 37 } 38 39 } 40