Package org.kie.wb.selenium.util
Class ScreenshotOnFailure
- java.lang.Object
-
- org.junit.rules.TestWatcher
-
- org.kie.wb.selenium.util.ScreenshotOnFailure
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class ScreenshotOnFailure extends org.junit.rules.TestWatcherJUnit Rule for taking screenshots/saving page HTML source of browser content on failed selenium test.
-
-
Constructor Summary
Constructors Constructor Description ScreenshotOnFailure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfailed(Throwable e, org.junit.runner.Description description)
-
-
-
Method Detail
-
failed
protected void failed(Throwable e, org.junit.runner.Description description)
- Overrides:
failedin classorg.junit.rules.TestWatcher
-
-