com.atlassian.webdriver.testing.rule
Class LogPageSourceRule
java.lang.Object
org.junit.rules.TestWatcher
com.atlassian.webdriver.testing.rule.LogPageSourceRule
- All Implemented Interfaces:
- org.junit.rules.TestRule
public final class LogPageSourceRule
- extends org.junit.rules.TestWatcher
Similarly to WebDriverScreenshotRule, this rule will
dump page source directly to the log upon test failure.
- Since:
- 2.1
|
Method Summary |
void |
failed(Throwable e,
org.junit.runner.Description description)
|
| Methods inherited from class org.junit.rules.TestWatcher |
apply, finished, skipped, starting, succeeded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogPageSourceRule
@Inject
public LogPageSourceRule(org.openqa.selenium.WebDriver webDriver,
org.slf4j.Logger logger)
LogPageSourceRule
public LogPageSourceRule(com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> webDriver,
org.slf4j.Logger logger)
LogPageSourceRule
public LogPageSourceRule(org.slf4j.Logger logger)
LogPageSourceRule
public LogPageSourceRule()
failed
public void failed(Throwable e,
org.junit.runner.Description description)
- Overrides:
failed in class org.junit.rules.TestWatcher
Copyright © 2014 Atlassian. All rights reserved.