Class ScreenshotListener

  • All Implemented Interfaces:
    org.testng.IConfigurationListener, org.testng.internal.IResultListener, org.testng.ITestListener, org.testng.ITestNGListener

    public class ScreenshotListener
    extends java.lang.Object
    implements org.testng.internal.IResultListener
    • Constructor Summary

      Constructors 
      Constructor Description
      ScreenshotListener​(java.io.File outputDirectory, Selenium selenium)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onConfigurationFailure​(org.testng.ITestResult result)  
      void onConfigurationSkip​(org.testng.ITestResult itr)  
      void onConfigurationSuccess​(org.testng.ITestResult itr)  
      void onFinish​(org.testng.ITestContext context)  
      void onStart​(org.testng.ITestContext context)  
      void onTestFailedButWithinSuccessPercentage​(org.testng.ITestResult result)  
      void onTestFailure​(org.testng.ITestResult result)  
      void onTestSkipped​(org.testng.ITestResult result)  
      void onTestStart​(org.testng.ITestResult result)  
      void onTestSuccess​(org.testng.ITestResult result)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.testng.IConfigurationListener

        beforeConfiguration, beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess
      • Methods inherited from interface org.testng.ITestListener

        onTestFailedWithTimeout
    • Constructor Detail

      • ScreenshotListener

        public ScreenshotListener​(java.io.File outputDirectory,
                                  Selenium selenium)
    • Method Detail

      • onTestFailure

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

        public void onConfigurationFailure​(org.testng.ITestResult result)
        Specified by:
        onConfigurationFailure in interface org.testng.IConfigurationListener
      • onFinish

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

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

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

        public void onTestSkipped​(org.testng.ITestResult result)
        Specified by:
        onTestSkipped in interface org.testng.ITestListener
      • 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
      • onConfigurationSuccess

        public void onConfigurationSuccess​(org.testng.ITestResult itr)
        Specified by:
        onConfigurationSuccess in interface org.testng.IConfigurationListener
      • onConfigurationSkip

        public void onConfigurationSkip​(org.testng.ITestResult itr)
        Specified by:
        onConfigurationSkip in interface org.testng.IConfigurationListener