Class UniformInterfaceExceptionTestListener

  • All Implemented Interfaces:
    org.testng.ITestListener, org.testng.ITestNGListener

    public class UniformInterfaceExceptionTestListener
    extends Object
    implements org.testng.ITestListener
    This listener acts if test failed with UniformInterfaceException. In such case it wraps the exception with the one that also lists the full response from the server. I just couldn't find easier way of covering all backdoor methods with this code.
    • Constructor Detail

      • UniformInterfaceExceptionTestListener

        public UniformInterfaceExceptionTestListener()
    • Method Detail

      • onTestStart

        public void onTestStart​(org.testng.ITestResult result)
        Specified by:
        onTestStart in interface org.testng.ITestListener
      • onTestSuccess

        public void onTestSuccess​(org.testng.ITestResult result)
        Specified by:
        onTestSuccess in interface org.testng.ITestListener
      • onTestFailure

        public void onTestFailure​(org.testng.ITestResult result)
        Specified by:
        onTestFailure in interface org.testng.ITestListener
      • onTestSkipped

        public void onTestSkipped​(org.testng.ITestResult result)
        Specified by:
        onTestSkipped in interface org.testng.ITestListener
      • onTestFailedButWithinSuccessPercentage

        public void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)
        Specified by:
        onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
      • onStart

        public void onStart​(org.testng.ITestContext context)
        Specified by:
        onStart in interface org.testng.ITestListener
      • onFinish

        public void onFinish​(org.testng.ITestContext context)
        Specified by:
        onFinish in interface org.testng.ITestListener