Type Parameters:
T - the type used to run the scenario
All Known Implementing Classes:
AbstractEntityUsageScenario, AbstractUsageScenario, QueryLoadTestModel.QueryScenario

public interface UsageScenario<T>
Specifies a load test usage scenario.
  • Method Details

    • name

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

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

      int maximumTime()
      The maximum time in milliseconds this scenario can run before issuing a warning.
      Returns:
      the warning time
    • run

      UsageScenario.RunResult run(T application)
      Runs this scenario with the given application
      Parameters:
      application - the application to use
      Returns:
      the run result
    • totalRunCount

      int totalRunCount()
      Returns:
      the total number of times this scenario has been run
    • exceptions

      List<Throwable> exceptions()
      Returns:
      any exceptions that have occurred during a run
    • resetRunCount

      void resetRunCount()
      Resets the run counters
    • clearExceptions

      void clearExceptions()
      Clears the exceptions that have been collected so far
    • successfulRunCount

      int successfulRunCount()
      Returns:
      the number of times this scenario has been successfully run
    • unsuccessfulRunCount

      int unsuccessfulRunCount()
      Returns:
      the number of times this scenario has been unsuccessfully run