-
public final class BeforeTestSection<InitData extends Object, Data extends Object>The representation of a set of actions to be invoked before the test.
-
-
Method Summary
Modifier and Type Method Description final AfterTestSection<InitData, Data>beforeTest(Function1<BaseTestContext, Unit> actions)Wraps actions in a lambda, that will invoke these actions and make screenshot if actions will fail when it will be invoked itself, and sets this lambda as the TestBody.beforeTestActions. -
-
Method Detail
-
beforeTest
final AfterTestSection<InitData, Data> beforeTest(Function1<BaseTestContext, Unit> actions)
Wraps actions in a lambda, that will invoke these actions and make screenshot if actions will fail when it will be invoked itself, and sets this lambda as the TestBody.beforeTestActions.
- Parameters:
actions- actions to be wrapped and invoked before the test.
-
-
-
-