Class Runner.Builder

java.lang.Object
com.intuit.karate.Runner.Builder
Enclosing class:
Runner

@Deprecated(since="2.0", forRemoval=true) public static class Runner.Builder extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use Runner.Builder instead.
V1 compatibility Builder that delegates to Runner.Builder.
  • Method Details

    • path

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder path(String... paths)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add paths to search for .feature files.
    • path

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder path(List<String> paths)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add paths to search for .feature files.
    • tags

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder tags(String... tags)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set tag filter expressions.
    • tags

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder tags(List<String> tags)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set tag filter expressions from a list.

      V1 had this variant; v2 only has varargs.

    • karateEnv

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder karateEnv(String env)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the karate environment (karate.env).
    • reportDir

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder reportDir(String dir)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use outputDir() instead.
      Set the output directory for reports.

      V1 name was reportDir; v2 uses outputDir.

    • outputDir

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder outputDir(String dir)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the output directory for reports.
    • backupReportDir

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder backupReportDir(boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use backupOutputDir() instead.
      Enable/disable backup of existing report directory.

      V1 name was backupReportDir; v2 uses backupOutputDir.

    • backupOutputDir

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder backupOutputDir(boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enable/disable backup of existing output directory.
    • clientFactory

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder clientFactory(HttpClientFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use httpClientFactory() instead.
      Set the HTTP client factory.

      V1 name was clientFactory; v2 uses httpClientFactory.

    • httpClientFactory

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder httpClientFactory(HttpClientFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the HTTP client factory.
    • scenarioName

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder scenarioName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Filter by scenario name (regex supported).
    • configDir

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder configDir(String dir)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the directory containing karate-config.js.
    • workingDir

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder workingDir(String dir)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the working directory for relative path resolution.
    • outputHtmlReport

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder outputHtmlReport(boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enable/disable HTML report generation.
    • outputCucumberJson

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder outputCucumberJson(boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enable/disable Cucumber JSON report generation.
    • systemProperty

      @Deprecated(since="2.0", forRemoval=true) public Runner.Builder systemProperty(String key, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set a system property.
    • parallel

      @Deprecated(since="2.0", forRemoval=true) public Results parallel(int threadCount)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Execute the tests with the specified thread count.
      Parameters:
      threadCount - number of threads (1 for sequential)
      Returns:
      the test results wrapped in v1 Results class
    • toV2Builder

      public Runner.Builder toV2Builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the underlying v2 Builder for gradual migration.