Uses of Class
io.karatelabs.core.Runner.Builder
Packages that use Runner.Builder
-
Uses of Runner.Builder in com.intuit.karate
Methods in com.intuit.karate that return Runner.BuilderModifier and TypeMethodDescriptionRunner.Builder.toV2Builder()Deprecated, for removal: This API element is subject to removal in a future version.Get the underlying v2 Builder for gradual migration. -
Uses of Runner.Builder in io.karatelabs.core
Methods in io.karatelabs.core that return Runner.BuilderModifier and TypeMethodDescriptionKaratePom.applyTo(Runner.Builder builder) Apply this configuration to a Runner.Builder.Runner.Builder.backupOutputDir(boolean enabled) Enable/disable backup of existing output directory.static Runner.BuilderRunner.builder()Get a new builder instance.Runner.Builder.callOnceCacheStore(Map<String, Map<String, Object>> cacheStore, Map<String, ReentrantLock> lockStore) Inject pre-allocated callOnce/setupOnce stores (keyed by feature URI).Runner.Builder.callSingleCache(Map<String, Object> cache, ReentrantLock lock) Inject a pre-allocated callSingle cache (and its companion lock).Runner.Builder.captureStepLogs(boolean enabled) Collect each step's Karate output — HTTP request / response blocks,print— intoStepResult.log, which is what the HTML report, the JSONL / JUnit / Cucumber writers and karate-gatling's log replay all read.Set the directory containing karate-config.js.Runner.Builder.consoleLevel(String level) Set the SLF4J/console log level for the "karate" logger.<T> Runner.BuilderRunner.Builder.debugSupport(io.karatelabs.js.RunInterceptor<T> interceptor, io.karatelabs.js.DebugPointFactory<T> factory) Set debug support with interceptor and factory.Runner.Builder.driverProvider(DriverProvider provider) Set a driver provider for managing browser driver lifecycle.Runner.Builder.dryRun(boolean enabled) Enable dry-run mode (parse but don't execute).Add Feature objects directly.Runner.Builder.features(Collection<Feature> values) Add Feature objects directly.static Runner.BuilderStart building a test run with Feature objects.Bind a JS global (an ext-global-shaped object, typically aSimpleObject) into every scenario of this run — the run-free / programmatic equivalent of anExtcallingSuite.registerGlobal(String, Object)inonBoot.Runner.Builder.httpClientFactory(HttpClientFactory factory) Set the HTTP client factory for custom/mock HTTP clients.Set the karate environment (karate.env).Runner.Builder.listener(RunListener listener) Add a run event listener.Runner.Builder.listenerFactory(RunListenerFactory factory) Add a run listener factory for per-thread listeners.Runner.Builder.listenerFactory(String className) Add a run listener factory by class name (supports no-arg constructor).Runner.Builder.listeners(Collection<RunListener> values) Add multiple run event listeners.Set the minimum log level for report capture.Set the minimum log level by name (case-insensitive).Runner.Builder.outputConsoleSummary(boolean enabled) Runner.Builder.outputCucumberJson(boolean enabled) Enable/disable Cucumber JSON report generation.Set the output directory for reports.Set the output directory for reports.Runner.Builder.outputHtmlReport(boolean enabled) Enable/disable HTML report generation.Runner.Builder.outputJsonLines(boolean enabled) Enable/disable JSON Lines streaming output.Runner.Builder.outputJunitXml(boolean enabled) Enable/disable JUnit XML report generation.Add paths to search for .feature files.Add paths to search for .feature files.static Runner.BuilderStart building a test run with one or more paths.static Runner.BuilderStart building a test run with a list of paths.Runner.Builder.pool()Enable browser driver pooling for parallel UI tests.Runner.Builder.pool(int size) Enable browser driver pooling with explicit pool size.Runner.Builder.resultListener(ResultListener listener) Add a result listener for streaming test results.Runner.Builder.resultListeners(Collection<ResultListener> values) Add multiple result listeners.Runner.Builder.retainCallResults(boolean enabled) Keep the nestedkarate.call()result trees reachable after the run.Runner.Builder.retainStepLogs(boolean enabled) Keep each step's captured log text and embeds reachable after the run.Runner.Builder.scenarioName(String name) Filter by scenario name (exact match, whitespace-trimmed on both sides).Runner.Builder.skipTagFiltering(boolean skip) Skip tag filtering (@env, @ignore) so all scenarios run regardless of tags.Runner.Builder.systemProperty(String key, String value) Set a system property that will be available via karate.properties in scripts.Set tag filter expressions.Runner.Builder.workingDir(String dir) Set the working directory for relative path resolution.Runner.Builder.workingDir(Path dir) Set the working directory for relative path resolution.Methods in io.karatelabs.core with parameters of type Runner.BuilderModifier and TypeMethodDescriptionstatic intKarateOptionsHandler.apply(Runner.Builder builder, int threadCount) Apply sysprop/env overrides to the given Builder.static voidKarateOptionsHandler.applyEnvAndConfigDir(Runner.Builder builder) Apply only the individualkarate.env/karate.config.dirsysprop and environment-variable overrides to the builder — without parsingkarate.options.KaratePom.applyTo(Runner.Builder builder) Apply this configuration to a Runner.Builder.static FeatureResultRunner.runFeature(String path, Map<String, Object> arg, PerfHook perfHook, List<String> tags, Runner.Builder template) Run a single feature with arguments, optional PerfHook, tag filter, and a pre-configuredRunner.Buildertemplate (env, configDir, systemProperties).