Class Result
- java.lang.Object
-
- com.trivago.cluecumber.engine.json.pojo.Result
-
public class Result extends Object
This represents a result of a step or scenario.
-
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()Get the duration of this result.longgetDurationInMilliseconds()Get the duration in milliseconds.StringgetErrorMessage()Get the error message.StringgetStatus()Get the status.booleanhasErrorMessage()Check if there is an error message.StringreturnDurationString()Get the human readable duration string.StringreturnErrorMessageWithClickableLinks()Get the error message with URLs turned into clickable HTML links.voidsetDuration(long duration)Set the duration of this result.voidsetErrorMessage(String errorMessage)Set the error message.voidsetStatus(String status)Set the status.
-
-
-
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.
-
-