-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.compose.ComposeProvider,com.kaspersky.kaspresso.compose.WebComposeProvider,com.kaspersky.kaspresso.flakysafety.ContinuouslyProvider,com.kaspersky.kaspresso.flakysafety.FlakySafetyProvider,com.kaspersky.kaspresso.testcases.core.testassistants.TestAssistantsProvider
public final class TestContext<Data extends Object> extends BaseTestContext
-
-
Field Summary
Fields Modifier and Type Field Description private final Datadataprivate final Devicedeviceprivate final AdbServeradbServerprivate final UiTestLoggertestLoggerprivate final Paramsparams
-
Method Summary
Modifier and Type Method Description final Unitstep(String description, Function1<StepInfo, Unit> actions)The representation of a TestContext's step. final Unitscenario(BaseScenario<Data> scenario)The representation of a composed TestContext's steps. final DatagetData()DevicegetDevice()AdbServergetAdbServer()UiTestLoggergetTestLogger()ParamsgetParams()-
Methods inherited from class com.kaspersky.kaspresso.testcases.core.testcontext.BaseTestContext
compose, compose, compose, compose, compose, continuously, continuously, flakySafely, flakySafely, unsafeCompose, unsafeCompose, unsafeCompose, unsafeCompose, unsafeCompose -
Methods inherited from class com.kaspersky.kaspresso.flakysafety.FlakySafetyProvider
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
step
final Unit step(String description, Function1<StepInfo, Unit> actions)
The representation of a TestContext's step.
- Parameters:
description- a description of a step.actions- a set of actions of a step.
-
scenario
final Unit scenario(BaseScenario<Data> scenario)
The representation of a composed TestContext's steps.
- Parameters:
scenario- the implementation of BaseScenario.
-
getAdbServer
AdbServer getAdbServer()
-
getTestLogger
UiTestLogger getTestLogger()
-
-
-
-