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
  • Constructor Details

    • AbstractAsyncTestAction

      public AbstractAsyncTestAction()
  • Method Details

    • doExecute

      public final void doExecute(org.citrusframework.context.TestContext context)
      Description copied from class: AbstractTestAction
      Subclasses may add custom execution logic here.
      Specified by:
      doExecute in class AbstractTestAction
    • isDone

      public boolean isDone(org.citrusframework.context.TestContext context)
      Specified by:
      isDone in interface org.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

      public void onError(org.citrusframework.context.TestContext context, Throwable error)
      Optional validation step after async test action performed with success.
      Parameters:
      context -