Interface LoadTest.Scenario.Result

Enclosing interface:
LoadTest.Scenario<T>

public static interface LoadTest.Scenario.Result
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, -1 in case of failure
    • successful

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

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

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

      static LoadTest.Scenario.Result failure(String scenarioName, Exception exception)
      Parameters:
      scenarioName - the name of the usage scenario
      exception - the exception
      Returns:
      a new LoadTest.Scenario.Result instance