Package com.intuit.karate.core
Class Result
- java.lang.Object
-
- com.intuit.karate.core.Result
-
public class Result extends Object
- Author:
- pthomas3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Resultaborted(long startTime, long nanos)static Resultaborted(long startTime, long nanos, StepRuntime.MethodMatch matchingMethod)static Resultfailed(long startTime, long nanos, Throwable error, Step step)static Resultfailed(long startTime, long nanos, Throwable error, Step step, StepRuntime.MethodMatch matchingMethod)static ResultfromKarateJson(Map<String,Object> map)doublegetDurationMillis()longgetDurationNanos()longgetEndTime()ThrowablegetError()StringgetErrorMessage()StepRuntime.MethodMatchgetMatchingMethod()longgetStartTime()StringgetStatus()booleanisAborted()booleanisFailed()booleanisSkipped()static Resultpassed(long startTime, long nanos)static Resultpassed(long startTime, long nanos, StepRuntime.MethodMatch matchingMethod)static Resultskipped(long startTime)Map<String,Object>toCucumberJson()Map<String,Object>toKarateJson()StringtoString()
-
-
-
Method Detail
-
isSkipped
public boolean isSkipped()
-
isFailed
public boolean isFailed()
-
isAborted
public boolean isAborted()
-
getError
public Throwable getError()
-
getErrorMessage
public String getErrorMessage()
-
passed
public static Result passed(long startTime, long nanos)
-
passed
public static Result passed(long startTime, long nanos, StepRuntime.MethodMatch matchingMethod)
-
failed
public static Result failed(long startTime, long nanos, Throwable error, Step step, StepRuntime.MethodMatch matchingMethod)
-
skipped
public static Result skipped(long startTime)
-
aborted
public static Result aborted(long startTime, long nanos)
-
aborted
public static Result aborted(long startTime, long nanos, StepRuntime.MethodMatch matchingMethod)
-
getStatus
public String getStatus()
-
getDurationNanos
public long getDurationNanos()
-
getDurationMillis
public double getDurationMillis()
-
getStartTime
public long getStartTime()
-
getEndTime
public long getEndTime()
-
getMatchingMethod
public StepRuntime.MethodMatch getMatchingMethod()
-
-