Interface UsageScenario.RunResult

Enclosing interface:
UsageScenario<T>

public static interface UsageScenario.RunResult
Describes the results of a load test scenario run
  • Method Details

    • scenario

      String scenario()
      Returns:
      the usage scenario name
    • duration

      int duration()
      Returns:
      the duration in microseconds
    • successful

      boolean successful()
      Returns:
      true if the run was successful
    • exception

      Optional<Throwable> exception()
      Returns:
      the exception in case the run was unsuccessful, otherwise an empty optional
    • success

      static UsageScenario.RunResult success(String scenarioName, int duration)
      Parameters:
      scenarioName - the name of the usage scenario
      duration - the duriation in microseconds
      Returns:
      a new UsageScenario.RunResult instance
    • failure

      static UsageScenario.RunResult failure(String scenarioName, Throwable exception)
      Parameters:
      scenarioName - the name of the usage scenario
      exception - the exception
      Returns:
      a new UsageScenario.RunResult instance