Package com.thoughtworks.selenium
Class ScreenshotListener
- java.lang.Object
-
- com.thoughtworks.selenium.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 voidonConfigurationFailure(org.testng.ITestResult result)voidonConfigurationSkip(org.testng.ITestResult itr)voidonConfigurationSuccess(org.testng.ITestResult itr)voidonFinish(org.testng.ITestContext context)voidonStart(org.testng.ITestContext context)voidonTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)voidonTestFailure(org.testng.ITestResult result)voidonTestSkipped(org.testng.ITestResult result)voidonTestStart(org.testng.ITestResult result)voidonTestSuccess(org.testng.ITestResult result)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ScreenshotListener
public ScreenshotListener(java.io.File outputDirectory, Selenium selenium)
-
-
Method Detail
-
onTestFailure
public void onTestFailure(org.testng.ITestResult result)
- Specified by:
onTestFailurein interfaceorg.testng.ITestListener
-
onConfigurationFailure
public void onConfigurationFailure(org.testng.ITestResult result)
- Specified by:
onConfigurationFailurein interfaceorg.testng.IConfigurationListener
-
onFinish
public void onFinish(org.testng.ITestContext context)
- Specified by:
onFinishin interfaceorg.testng.ITestListener
-
onStart
public void onStart(org.testng.ITestContext context)
- Specified by:
onStartin interfaceorg.testng.ITestListener
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
- Specified by:
onTestFailedButWithinSuccessPercentagein interfaceorg.testng.ITestListener
-
onTestSkipped
public void onTestSkipped(org.testng.ITestResult result)
- Specified by:
onTestSkippedin interfaceorg.testng.ITestListener
-
onTestStart
public void onTestStart(org.testng.ITestResult result)
- Specified by:
onTestStartin interfaceorg.testng.ITestListener
-
onTestSuccess
public void onTestSuccess(org.testng.ITestResult result)
- Specified by:
onTestSuccessin interfaceorg.testng.ITestListener
-
onConfigurationSuccess
public void onConfigurationSuccess(org.testng.ITestResult itr)
- Specified by:
onConfigurationSuccessin interfaceorg.testng.IConfigurationListener
-
onConfigurationSkip
public void onConfigurationSkip(org.testng.ITestResult itr)
- Specified by:
onConfigurationSkipin interfaceorg.testng.IConfigurationListener
-
-