Interface TestCaseRun.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TestCaseRun.Builder,TestCaseRun>, SdkBuilder<TestCaseRun.Builder,TestCaseRun>, SdkPojo
Enclosing class:
TestCaseRun

public static interface TestCaseRun.Builder extends SdkPojo, CopyableBuilder<TestCaseRun.Builder,TestCaseRun>
  • Method Details

    • testCaseRunId

      TestCaseRun.Builder testCaseRunId(String testCaseRunId)

      Provides the test case run ID.

      Parameters:
      testCaseRunId - Provides the test case run ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testCaseDefinitionId

      TestCaseRun.Builder testCaseDefinitionId(String testCaseDefinitionId)

      Provides the test case run definition ID.

      Parameters:
      testCaseDefinitionId - Provides the test case run definition ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testCaseDefinitionName

      TestCaseRun.Builder testCaseDefinitionName(String testCaseDefinitionName)

      Provides the test case run definition name.

      Parameters:
      testCaseDefinitionName - Provides the test case run definition name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      TestCaseRun.Builder status(String status)

      Provides the test case run status. Status is one of the following:

      • PASS: Test passed.

      • FAIL: Test failed.

      • PENDING: Test has not started running but is scheduled.

      • RUNNING: Test is running.

      • STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run.

      • STOPPED Test is stopped. You will see this status only if you stop a suite run.

      • PASS_WITH_WARNINGS: Test passed with warnings.

      • ERORR: Test faced an error when running due to an internal issue.

      Parameters:
      status - Provides the test case run status. Status is one of the following:

      • PASS: Test passed.

      • FAIL: Test failed.

      • PENDING: Test has not started running but is scheduled.

      • RUNNING: Test is running.

      • STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run.

      • STOPPED Test is stopped. You will see this status only if you stop a suite run.

      • PASS_WITH_WARNINGS: Test passed with warnings.

      • ERORR: Test faced an error when running due to an internal issue.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      TestCaseRun.Builder status(Status status)

      Provides the test case run status. Status is one of the following:

      • PASS: Test passed.

      • FAIL: Test failed.

      • PENDING: Test has not started running but is scheduled.

      • RUNNING: Test is running.

      • STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run.

      • STOPPED Test is stopped. You will see this status only if you stop a suite run.

      • PASS_WITH_WARNINGS: Test passed with warnings.

      • ERORR: Test faced an error when running due to an internal issue.

      Parameters:
      status - Provides the test case run status. Status is one of the following:

      • PASS: Test passed.

      • FAIL: Test failed.

      • PENDING: Test has not started running but is scheduled.

      • RUNNING: Test is running.

      • STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run.

      • STOPPED Test is stopped. You will see this status only if you stop a suite run.

      • PASS_WITH_WARNINGS: Test passed with warnings.

      • ERORR: Test faced an error when running due to an internal issue.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startTime

      TestCaseRun.Builder startTime(Instant startTime)

      Provides test case run start time.

      Parameters:
      startTime - Provides test case run start time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      TestCaseRun.Builder endTime(Instant endTime)

      Provides test case run end time.

      Parameters:
      endTime - Provides test case run end time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logUrl

      TestCaseRun.Builder logUrl(String logUrl)

      Provides test case run log URL.

      Parameters:
      logUrl - Provides test case run log URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warnings

      TestCaseRun.Builder warnings(String warnings)

      Provides test case run warnings.

      Parameters:
      warnings - Provides test case run warnings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failure

      TestCaseRun.Builder failure(String failure)

      Provides test case run failure result.

      Parameters:
      failure - Provides test case run failure result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testScenarios

      TestCaseRun.Builder testScenarios(Collection<TestCaseScenario> testScenarios)

      Provides the test scenarios for the test case run.

      Parameters:
      testScenarios - Provides the test scenarios for the test case run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testScenarios

      TestCaseRun.Builder testScenarios(TestCaseScenario... testScenarios)

      Provides the test scenarios for the test case run.

      Parameters:
      testScenarios - Provides the test scenarios for the test case run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testScenarios

      TestCaseRun.Builder testScenarios(Consumer<TestCaseScenario.Builder>... testScenarios)

      Provides the test scenarios for the test case run.

      This is a convenience method that creates an instance of the TestCaseScenario.Builder avoiding the need to create one manually via TestCaseScenario.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to testScenarios(List<TestCaseScenario>).

      Parameters:
      testScenarios - a consumer that will call methods on TestCaseScenario.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: