Package org.citrusframework.actions
Class AbstractAsyncTestAction
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.actions.AbstractAsyncTestAction
- All Implemented Interfaces:
org.citrusframework.common.Described,org.citrusframework.common.Named,org.citrusframework.Completable,org.citrusframework.TestAction,org.citrusframework.TestActorAware
public abstract class AbstractAsyncTestAction
extends AbstractTestAction
implements org.citrusframework.Completable
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(org.citrusframework.context.TestContext context) Subclasses may add custom execution logic here.abstract voiddoExecuteAsync(org.citrusframework.context.TestContext context) booleanisDone(org.citrusframework.context.TestContext context) voidOptional validation step after async test action performed with success.voidonSuccess(org.citrusframework.context.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
public final void doExecute(org.citrusframework.context.TestContext context) Description copied from class:AbstractTestActionSubclasses may add custom execution logic here.- Specified by:
doExecutein classAbstractTestAction
-
isDone
public boolean isDone(org.citrusframework.context.TestContext context) - Specified by:
isDonein interfaceorg.citrusframework.Completable
-
doExecuteAsync
public abstract void doExecuteAsync(org.citrusframework.context.TestContext context) -
onSuccess
public void onSuccess(org.citrusframework.context.TestContext context) 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-
-