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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestCaseRun.BuilderendTime(Instant endTime)Provides test case run end time.TestCaseRun.Builderfailure(String failure)Provides test case run failure result.TestCaseRun.BuilderlogUrl(String logUrl)Provides test case run log URL.TestCaseRun.BuilderstartTime(Instant startTime)Provides test case run start time.TestCaseRun.Builderstatus(String status)Provides the test case run status.TestCaseRun.Builderstatus(Status status)Provides the test case run status.TestCaseRun.BuildertestCaseDefinitionId(String testCaseDefinitionId)Provides the test case run definition ID.TestCaseRun.BuildertestCaseDefinitionName(String testCaseDefinitionName)Provides the test case run definition name.TestCaseRun.BuildertestCaseRunId(String testCaseRunId)Provides the test case run ID.TestCaseRun.BuildertestScenarios(Collection<TestCaseScenario> testScenarios)Provides the test scenarios for the test case run.TestCaseRun.BuildertestScenarios(Consumer<TestCaseScenario.Builder>... testScenarios)Provides the test scenarios for the test case run.TestCaseRun.BuildertestScenarios(TestCaseScenario... testScenarios)Provides the test scenarios for the test case run.TestCaseRun.Builderwarnings(String warnings)Provides test case run warnings.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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. -
STOPPEDTest 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. -
STOPPEDTest 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,Status
-
-
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. -
STOPPEDTest 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. -
STOPPEDTest 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,Status
-
-
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 theTestCaseScenario.Builderavoiding the need to create one manually viaTestCaseScenario.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#testScenarios(List.) - Parameters:
testScenarios- a consumer that will call methods onTestCaseScenario.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#testScenarios(java.util.Collection)
-
-