Interface LoadTest.Scenario<T>

Type Parameters:
T - the type used to run the scenario
Enclosing interface:
LoadTest<T>

public static interface LoadTest.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
    • run

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

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

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

      static <T> LoadTest.Scenario<T> scenario(LoadTest.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 LoadTest.Scenario instance