Package at.willhaben.willtest.rule
Class PageSource
- java.lang.Object
-
- at.willhaben.willtest.rule.TestFailureAwareRule
-
- at.willhaben.willtest.rule.PageSource
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class PageSource extends TestFailureAwareRule
Saves the page source into a file in case of a test error
-
-
Constructor Summary
Constructors Constructor Description PageSource(SeleniumProvider seleniumProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidonError(org.junit.runner.Description description, java.lang.Throwable testFailure)Called if the test has thrown an error.-
Methods inherited from class at.willhaben.willtest.rule.TestFailureAwareRule
after, apply, before
-
-
-
-
Constructor Detail
-
PageSource
public PageSource(SeleniumProvider seleniumProvider)
-
-
Method Detail
-
onError
protected void onError(org.junit.runner.Description description, java.lang.Throwable testFailure) throws java.lang.ThrowableDescription copied from class:TestFailureAwareRuleCalled if the test has thrown an error. By default it does nothing.- Overrides:
onErrorin classTestFailureAwareRule- Parameters:
description- junit test description objecttestFailure- any error from the test- Throws:
java.lang.Throwable- this will be added totestFailureas suppressed exception. SeeThrowable.addSuppressed(Throwable)
-
-