Package io.karatelabs.core
Interface KarateJsContext
- All Known Implementing Classes:
ScenarioRuntime
public interface KarateJsContext
Minimal context interface for KarateJs to access runtime information.
Implemented by ScenarioRuntime for Gherkin execution contexts.
Can be null or stubbed for standalone/test usage.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the runtime configuration.Returns the ScenarioRuntime, or null for standalone usage.io.karatelabs.common.ResourceReturns the working directory resource for resolving relative paths.
-
Method Details
-
getRuntime
ScenarioRuntime getRuntime()Returns the ScenarioRuntime, or null for standalone usage. -
getConfig
KarateConfig getConfig()Returns the runtime configuration. -
getWorkingDir
io.karatelabs.common.Resource getWorkingDir()Returns the working directory resource for resolving relative paths.
-