Interface Scenario.Result

Enclosing interface:
Scenario<T>

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

    • scenario

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

      long started()
      Returns:
      the time the scenario run started
    • duration

      long 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 Scenario.Result success(String scenarioName, long started, long duration)
      Parameters:
      scenarioName - the name of the usage scenario
      started - the start time
      duration - the duriation in microseconds
      Returns:
      a new Scenario.Result instance
    • failure

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