public class ScreenshotRule
extends org.junit.rules.TestWatcher
| Constructor and Description |
|---|
ScreenshotRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
failed(java.lang.Throwable e,
org.junit.runner.Description description) |
static boolean |
isTestFail() |
void |
takeScreenshot(java.lang.String className,
java.lang.String testName) |
public static boolean isTestFail()
protected void failed(java.lang.Throwable e,
org.junit.runner.Description description)
failed in class org.junit.rules.TestWatcherpublic void takeScreenshot(java.lang.String className,
java.lang.String testName)