class GebTestManager extends Object
This implementation assumes that a thread is reserved for one test execution at least from
beforeTest
until afterTest
, and that beforeTestClass
and afterTestClass
are called on the same thread, even if the thread executed some test inbetween.
There should also only be one instance for all tests of a class even if run in parallel.
Modifiers | Name | Description |
---|---|---|
protected ThreadLocal<Browser> |
browser |
Type | Name and description |
---|---|
boolean |
reportingEnabled |
Constructor and description |
---|
GebTestManager
(Supplier<Browser> browserCreator, Predicate<Class<?>> resetBrowserAfterEachTestPredicate, boolean reportingEnabled) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
afterTest() |
|
void |
afterTestClass() |
|
void |
beforeTest(Class<?> testClass, String testName) |
|
void |
beforeTestClass(Class<?> testClass) |
|
String |
createReportLabel(String label) |
|
Browser |
getBrowser() |
|
void |
report(String label) |
|
void |
reportFailure() |
|
void |
resetBrowser() |
Groovy API Documentation for Geb 6.0 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org