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 nanos)static Resultaborted(long nanos, StepRuntime.MethodMatch matchingMethod)static Resultfailed(long nanos, Throwable error, Step step)static Resultfailed(long nanos, Throwable error, Step step, StepRuntime.MethodMatch matchingMethod)static ResultfromKarateJson(Map<String,Object> map)doublegetDurationMillis()longgetDurationNanos()ThrowablegetError()StringgetErrorMessage()StepRuntime.MethodMatchgetMatchingMethod()StringgetStatus()booleanisAborted()booleanisFailed()booleanisSkipped()static Resultpassed(long nanos)static Resultpassed(long nanos, StepRuntime.MethodMatch matchingMethod)static Resultskipped()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 nanos)
-
passed
public static Result passed(long nanos, StepRuntime.MethodMatch matchingMethod)
-
failed
public static Result failed(long nanos, Throwable error, Step step, StepRuntime.MethodMatch matchingMethod)
-
skipped
public static Result skipped()
-
aborted
public static Result aborted(long nanos)
-
aborted
public static Result aborted(long nanos, StepRuntime.MethodMatch matchingMethod)
-
getStatus
public String getStatus()
-
getDurationNanos
public long getDurationNanos()
-
getDurationMillis
public double getDurationMillis()
-
getMatchingMethod
public StepRuntime.MethodMatch getMatchingMethod()
-
-