Package org.citrusframework.actions
Class AbstractAsyncTestAction
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.actions.AbstractAsyncTestAction
- All Implemented Interfaces:
Described,Named,Completable,TestAction,TestActorAware
Test action that performs in a separate thread. Action execution is not blocking the test execution chain. After
action has performed optional validation step is called.
- Since:
- 2.7.4
-
Field Summary
Fields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddoExecute(TestContext context) Subclasses may add custom execution logic here.abstract voiddoExecuteAsync(TestContext context) booleanisDone(TestContext context) voidonError(TestContext context, Throwable error) Optional validation step after async test action performed with success.voidonSuccess(TestContext context) Optional validation step after async test action performed with success.Methods inherited from class org.citrusframework.actions.AbstractTestAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
Constructor Details
-
AbstractAsyncTestAction
public AbstractAsyncTestAction()
-
-
Method Details
-
doExecute
Description copied from class:AbstractTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractTestAction
-
isDone
- Specified by:
isDonein interfaceCompletable
-
doExecuteAsync
-
onSuccess
Optional validation step after async test action performed with success.- Parameters:
context-
-
onError
Optional validation step after async test action performed with success.- Parameters:
context-
-