public enum ScreenshotStrategy extends Enum<ScreenshotStrategy>
| Modifier and Type | Class and Description |
|---|---|
static class |
ScreenshotStrategy.StepType |
| Enum Constant and Description |
|---|
ALWAYS
Take a screenshot for all possible step events:
- before step,
- after step failed.
|
FAILING_ONLY
Only take a screenshot when a step has failed.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldTakeScreenshot(ScreenshotStrategy.StepType event) |
static ScreenshotStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScreenshotStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenshotStrategy FAILING_ONLY
public static final ScreenshotStrategy ALWAYS
public static ScreenshotStrategy[] values()
for (ScreenshotStrategy c : ScreenshotStrategy.values()) System.out.println(c);
public static ScreenshotStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean shouldTakeScreenshot(ScreenshotStrategy.StepType event)
Copyright © 2015. All Rights Reserved.