Interface Scenario<T>

Type Parameters:
T - the type used to run the scenario

public interface Scenario<T>
Specifies a load test usage scenario.
See Also:
  • Method Details

    • name

      String name()
      Returns:
      the name of this scenario
    • defaultWeight

      int defaultWeight()
      Returns:
      the default weight for this scenario, 1 by default
    • pause

      boolean pause(Exception exception)
      Parameters:
      exception - the exception
      Returns:
      true if the load test should be paused when the given exception occurs in this scenario
    • run

      Scenario.Result run(T application)
      Runs this scenario with the given application
      Parameters:
      application - the application to use
      Returns:
      the run result
    • builder

      Returns:
      a new Scenario.Builder.PerformerStep instance
    • scenario

      static <T> Scenario<T> scenario(Scenario.Performer<T> performer)
      Type Parameters:
      T - the load test application type
      Parameters:
      performer - the scenario performer
      Returns:
      a new Scenario instance
    • scenario

      static <T> Scenario<T> scenario(Scenario.Performer<T> performer, int defaultWeight)
      Type Parameters:
      T - the load test application type
      Parameters:
      performer - the scenario performer
      defaultWeight - the default scenario weight
      Returns:
      a new Scenario instance