Class Result


  • public class Result
    extends Object
    This represents a result of a step or scenario.
    • Constructor Detail

      • Result

        public Result()
    • Method Detail

      • getDuration

        public long getDuration()
        Get the duration of this result.
        Returns:
        The duration in nanoseconds.
      • setDuration

        public void setDuration​(long duration)
        Set the duration of this result.
        Parameters:
        duration - The duration in nanoseconds.
      • getStatus

        public String getStatus()
        Get the status.
        Returns:
        The status string.
      • setStatus

        public void setStatus​(String status)
        Set the status.
        Parameters:
        status - The status string.
      • hasErrorMessage

        public boolean hasErrorMessage()
        Check if there is an error message.
        Returns:
        true if an error message exists.
      • getErrorMessage

        public String getErrorMessage()
        Get the error message.
        Returns:
        The error message.
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
        Set the error message.
        Parameters:
        errorMessage - The error message.
      • getDurationInMilliseconds

        public long getDurationInMilliseconds()
        Get the duration in milliseconds.
        Returns:
        The converted duration.
      • returnDurationString

        public String returnDurationString()
        Get the human readable duration string.
        Returns:
        The duration string.
      • returnErrorMessageWithClickableLinks

        public String returnErrorMessageWithClickableLinks()
        Get the error message with URLs turned into clickable HTML links.
        Returns:
        The converted error message.