Uses of Class
io.karatelabs.core.ScenarioRuntime
Packages that use ScenarioRuntime
-
Uses of ScenarioRuntime in io.karatelabs.core
Methods in io.karatelabs.core that return ScenarioRuntimeModifier and TypeMethodDescriptionstatic ScenarioRuntimeScenarioRuntime.currentOrNull()The scenario executing on the current thread, or null outside a scenario's call().FeatureRuntime.getCallerScenario()FeatureRuntime.getLastExecuted()KarateJsContext.getRuntime()Returns the ScenarioRuntime, or null for standalone usage.ScenarioRuntime.getRuntime()ErrorRunEvent.scenarioRuntime()Returns the value of thescenarioRuntimerecord component.HttpRunEvent.scenarioRuntime()Returns the value of thescenarioRuntimerecord component.StepRunEvent.scenarioRuntime()Returns the value of thescenarioRuntimerecord component.ScenarioRunEvent.source()Returns the value of thesourcerecord component.Methods in io.karatelabs.core with parameters of type ScenarioRuntimeModifier and TypeMethodDescriptionChannelFactory.create(ScenarioRuntime runtime, Map<String, Object> options) static HttpRunEventHttpRunEvent.enter(HttpRequest request, ScenarioRuntime sr) Creates an HTTP_ENTER event fired before the HTTP request is made.static ScenarioRunEventScenarioRunEvent.enter(ScenarioRuntime sr) static StepRunEventStepRunEvent.enter(Step step, ScenarioRuntime sr) static HttpRunEventHttpRunEvent.exit(HttpRequest request, HttpResponse response, ScenarioRuntime sr) Creates an HTTP_EXIT event fired after the HTTP response is received.static ScenarioRunEventScenarioRunEvent.exit(ScenarioRuntime sr, ScenarioResult result) static StepRunEventStepRunEvent.exit(StepResult result, ScenarioRuntime sr) PerfHook.getPerfEventName(HttpRequest request, ScenarioRuntime runtime) Get the name for a performance event based on the HTTP request.Channel.init(ScenarioRuntime runtime) static ErrorRunEventErrorRunEvent.of(Throwable error, ScenarioRuntime sr) voidScenarioRuntime.setDriverFromCallee(ScenarioRuntime callee) Set driver from a callee feature (upward propagation).Constructors in io.karatelabs.core with parameters of type ScenarioRuntimeModifierConstructorDescriptionErrorRunEvent(ScenarioRuntime scenarioRuntime, Throwable error, long timeStamp) Creates an instance of aErrorRunEventrecord class.FeatureRuntime(Suite suite, Feature feature, FeatureRuntime caller, ScenarioRuntime callerScenario, boolean sharedScope, Map<String, Object> callArg) FeatureRuntime(Suite suite, Feature feature, FeatureRuntime caller, ScenarioRuntime callerScenario, boolean sharedScope, Map<String, Object> callArg, String callTagSelector) FeatureRuntime(Suite suite, Feature feature, FeatureRuntime caller, ScenarioRuntime callerScenario, boolean sharedScope, Map<String, Object> callArg, String callTagSelector, Set<Integer> callLineFilters) HttpRunEvent(RunEventType type, HttpRequest request, HttpResponse response, ScenarioRuntime scenarioRuntime, long timeStamp) Creates an instance of aHttpRunEventrecord class.ScenarioRunEvent(RunEventType type, ScenarioRuntime source, ScenarioResult result, long timeStamp) Creates an instance of aScenarioRunEventrecord class.StepExecutor(ScenarioRuntime runtime) StepRunEvent(RunEventType type, Step step, ScenarioRuntime scenarioRuntime, StepResult result, long timeStamp) Creates an instance of aStepRunEventrecord class. -
Uses of ScenarioRuntime in io.karatelabs.driver
Methods in io.karatelabs.driver with parameters of type ScenarioRuntimeModifier and TypeMethodDescriptionDriverProvider.acquire(ScenarioRuntime runtime, Map<String, Object> config) Acquire a driver instance for a scenario.PooledDriverProvider.acquire(ScenarioRuntime runtime, Map<String, Object> config) voidDriverProvider.release(ScenarioRuntime runtime, Driver driver) Release a driver instance after scenario completion.voidPooledDriverProvider.release(ScenarioRuntime runtime, Driver driver)