Class Result


  • @API(status=STABLE)
    public final class Result
    extends Object
    • Constructor Detail

      • Result

        public Result​(Status status,
                      Duration duration,
                      Throwable error)
        The result of a step or scenario
        Parameters:
        status - status of the step or scenario
        duration - the duration
        error - the error that caused the failure if any
    • Method Detail

      • getStatus

        public Status getStatus()
      • getDuration

        public Duration getDuration()
      • getError

        public Throwable getError()
        Returns the error encountered while executing a step or scenario. Will return null when passed. May return null when undefined in case of the empty scenario or when skipped due to a failing prior step.
        Returns:
        the error encountered while executing a step or scenario.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object