Uses of Class
io.karatelabs.core.StepResult
Packages that use StepResult
-
Uses of StepResult in io.karatelabs.core
Methods in io.karatelabs.core that return StepResultModifier and TypeMethodDescriptionScenarioRuntime.evalAsStep(String text) Evaluate text as a Gherkin step against this runtime's variable / HTTP state.static StepResultstatic StepResultStepResult.fakeFailure(String message, long startTime, Throwable error) Create a fake failure step result (for @fail tag handling).static StepResultStepResult.fakeSuccess(String message, long startTime) Create a fake success step result (for @fail tag handling).static StepResultStepResult.hook(String hookName, StepResult.Status status, long startTime, long durationNanos, Throwable error) Create a synthetic step result representing a beforeScenario / afterScenario hook.static StepResultStepRunEvent.result()Returns the value of theresultrecord component.static StepResultstatic StepResultStepResult.synthetic(String text, StepResult.Status status, long startTime, Throwable error) Create a synthetic step result that an out-of-band producer appends to a scenario at runtime (not parsed from a.feature).Methods in io.karatelabs.core that return types with arguments of type StepResultMethods in io.karatelabs.core with parameters of type StepResultModifier and TypeMethodDescriptionvoidScenarioResult.addStepResult(StepResult sr) static StepRunEventStepRunEvent.exit(StepResult result, ScenarioRuntime sr) Constructors in io.karatelabs.core with parameters of type StepResultModifierConstructorDescriptionStepRunEvent(RunEventType type, Step step, ScenarioRuntime scenarioRuntime, StepResult result, long timeStamp) Creates an instance of aStepRunEventrecord class. -
Uses of StepResult in io.karatelabs.output
Methods in io.karatelabs.output that return StepResultModifier and TypeMethodDescriptionLogContext.step(StepResult sr) Append a fully-built synthetic step — the escape hatch for full control (a failure message viasynthetic(java.lang.String, io.karatelabs.core.StepResult.Status, long, java.lang.Throwable)with aThrowable, a custom log, multi-part embeds).Append a synthetic step with no embeds (seeLogContext.step(String, boolean, List)).LogContext.step(String text, boolean passed, List<StepResult.Embed> embeds) Append a synthetic step to the scenario currently executing on this thread — symmetric withLogContext.embed(byte[], java.lang.String, java.lang.String): an out-of-band producer (e.g. running inside an* eval) contributes a real, named step row to the report/JSONL without parsing a.feature.Methods in io.karatelabs.output that return types with arguments of type StepResultModifier and TypeMethodDescriptionLogContext.collectPendingSteps()Collect and clear the synthetic steps buffered since the last call (flushed per step by the runtime).Methods in io.karatelabs.output with parameters of type StepResultModifier and TypeMethodDescriptionLogContext.step(StepResult sr) Append a fully-built synthetic step — the escape hatch for full control (a failure message viasynthetic(java.lang.String, io.karatelabs.core.StepResult.Status, long, java.lang.Throwable)with aThrowable, a custom log, multi-part embeds).