Class Results

java.lang.Object
com.intuit.karate.Results

@Deprecated(since="2.0", forRemoval=true) public class Results extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use SuiteResult instead. This class will be removed in a future release.
V1 compatibility shim for SuiteResult.

This class provides backward compatibility for code written against Karate v1. Migrate to SuiteResult for new code.

  • Constructor Details

    • Results

      public Results(SuiteResult delegate)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getFailCount

      @Deprecated(since="2.0", forRemoval=true) public int getFailCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the number of failed scenarios.
    • getPassCount

      @Deprecated(since="2.0", forRemoval=true) public int getPassCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the number of passed scenarios.
    • getScenarioCount

      @Deprecated(since="2.0", forRemoval=true) public int getScenarioCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the total number of scenarios.
    • getFeatureCount

      @Deprecated(since="2.0", forRemoval=true) public int getFeatureCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the total number of features.
    • getErrorMessages

      @Deprecated(since="2.0", forRemoval=true) public String getErrorMessages()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get all error messages joined by newlines.
    • getReportDir

      @Deprecated(since="2.0", forRemoval=true) public String getReportDir()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Configure output directory via Runner.Builder.outputDir() instead.
      Get the report directory path.

      Note: In v2, the report directory is configured via Runner.Builder.outputDir(String) and defaults to "target/karate-reports".

    • toSuiteResult

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