ScreenshotOnFailureRule (Apache Geode 1.8.0)
Date: 2018-11-29

org.apache.geode.tools.pulse.tests.rules

## Class ScreenshotOnFailureRule

- java.lang.Object
- - org.junit.rules.TestWatcher
  - - org.apache.geode.tools.pulse.tests.rules.ScreenshotOnFailureRule

- All Implemented Interfaces:
    org.junit.rules.TestRule

      public class ScreenshotOnFailureRule
      extends org.junit.rules.TestWatcher

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScreenshotOnFailureRule(java.util.function.Supplier<org.openqa.selenium.WebDriver> provider)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `failed(java.lang.Throwable t, org.junit.runner.Description test)`

    - ### Methods inherited from class org.junit.rules.TestWatcher

      `apply, finished, skipped, skipped, starting, succeeded`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ScreenshotOnFailureRule

          public ScreenshotOnFailureRule(java.util.function.Supplier<org.openqa.selenium.WebDriver> provider)

  - ### Method Detail

    - #### failed

          public void failed(java.lang.Throwable t,
                             org.junit.runner.Description test)

      Overrides:
        `failed` in class `org.junit.rules.TestWatcher`