Class AbstractAsyncTestAction

java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.actions.AbstractAsyncTestAction
All Implemented Interfaces:
Described, Named, Completable, TestAction, TestActorAware

public abstract class AbstractAsyncTestAction extends AbstractTestAction implements 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(TestContext context)
      Description copied from class: AbstractTestAction
      Subclasses may add custom execution logic here.
      Specified by:
      doExecute in class AbstractTestAction
    • isDone

      public boolean isDone(TestContext context)
      Specified by:
      isDone in interface Completable
    • doExecuteAsync

      public abstract void doExecuteAsync(TestContext context)
    • onSuccess

      public void onSuccess(TestContext context)
      Optional validation step after async test action performed with success.
      Parameters:
      context -
    • onError

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