Class TestRecorderRule
- java.lang.Object
-
- org.junit.rules.TestWatcher
-
- org.jenkinsci.test.acceptance.recorder.TestRecorderRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
@GlobalRule public class TestRecorderRule extends org.junit.rules.TestWatcher
JUnit Rule that before executing a test it starts a recording current screen and after the test is executed, it stops recording.
-
-
Constructor Summary
Constructors Constructor Description TestRecorderRule(FailureDiagnostics diagnostics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finished(org.junit.runner.Description description)
protected void
starting(org.junit.runner.Description description)
protected void
succeeded(org.junit.runner.Description description)
-
-
-
Constructor Detail
-
TestRecorderRule
@Inject public TestRecorderRule(FailureDiagnostics diagnostics)
-
-
Method Detail
-
starting
protected void starting(org.junit.runner.Description description)
- Overrides:
starting
in classorg.junit.rules.TestWatcher
-
succeeded
protected void succeeded(org.junit.runner.Description description)
- Overrides:
succeeded
in classorg.junit.rules.TestWatcher
-
finished
protected void finished(org.junit.runner.Description description)
- Overrides:
finished
in classorg.junit.rules.TestWatcher
-
-