public class OnDemandScreenShotWatcher
extends org.junit.rules.TestWatcher
Modifier | Constructor and Description |
---|---|
|
OnDemandScreenShotWatcher() |
|
OnDemandScreenShotWatcher(com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier) |
|
OnDemandScreenShotWatcher(com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier,
File artifactDir)
Deprecated.
Will be removed in version 3.0; instead, use one of the other constructors to set the driver,
then call
artifactDir(File) |
|
OnDemandScreenShotWatcher(org.openqa.selenium.WebDriver webDriver) |
|
OnDemandScreenShotWatcher(com.atlassian.webdriver.debug.WebDriverDebug webDriverDebug) |
protected |
OnDemandScreenShotWatcher(com.atlassian.webdriver.debug.WebDriverDebug webDriverDebug,
File artifactDir) |
protected |
OnDemandScreenShotWatcher(com.atlassian.webdriver.testing.rule.WebDriverSupport<? extends org.openqa.selenium.WebDriver> support,
File artifactDir) |
Modifier and Type | Method and Description |
---|---|
OnDemandScreenShotWatcher |
artifactDir(File artifactDir) |
protected void |
failed(Throwable e,
org.junit.runner.Description description) |
protected void |
starting(org.junit.runner.Description description) |
void |
takeScreenShot(String step) |
protected OnDemandScreenShotWatcher(@Nonnull com.atlassian.webdriver.debug.WebDriverDebug webDriverDebug, @Nonnull File artifactDir)
protected OnDemandScreenShotWatcher(@Nonnull com.atlassian.webdriver.testing.rule.WebDriverSupport<? extends org.openqa.selenium.WebDriver> support, @Nonnull File artifactDir)
@Deprecated public OnDemandScreenShotWatcher(@Nonnull com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier, @Nonnull File artifactDir)
artifactDir(File)
public OnDemandScreenShotWatcher(@Nonnull com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier)
public OnDemandScreenShotWatcher(@Nonnull org.openqa.selenium.WebDriver webDriver)
@Inject public OnDemandScreenShotWatcher(@Nonnull com.atlassian.webdriver.debug.WebDriverDebug webDriverDebug)
public OnDemandScreenShotWatcher()
public OnDemandScreenShotWatcher artifactDir(File artifactDir)
protected void starting(@Nonnull org.junit.runner.Description description)
starting
in class org.junit.rules.TestWatcher
protected void failed(@Nonnull Throwable e, @Nonnull org.junit.runner.Description description)
failed
in class org.junit.rules.TestWatcher
public void takeScreenShot(String step)
Copyright © 2003–2017 Atlassian. All rights reserved.