Package org.azd.test.results
Class ResultsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.test.results.ResultsRequestBuilder
Provides functionality to work with Test results Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter -
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer -
Constructor Summary
ConstructorsConstructorDescriptionResultsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate(int runId, TestCaseResults testCaseResults) Create test results by run ID.createAsync(int runId, TestCaseResults testCaseResults) Create test results by run ID.get(int runId, int testCaseResultId) Get a test case results for a test run.getAsync(int runId, int testCaseResultId) Get a test case results for a test run.list(int runId) Get a list of test results by run ID.listAsync(int runId) Get a list of test results by run ID.update(int runId, TestCaseResults testCaseResults) Update test results by run ID.updateAsync(int runId, TestCaseResults testCaseResults) Update test results by run ID.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
ResultsRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl- Represents organization location request url.accessTokenCredential- Access token credential object.
-
-
Method Details
-
getAsync
public CompletableFuture<TestCaseResult> getAsync(int runId, int testCaseResultId) throws AzDException Get a test case results for a test run.- Parameters:
runId- ID of the run to get.testCaseResultId- ID of the test case result to get.- Returns:
- TestCaseResult Object
TestCaseResult - Throws:
AzDException- Default Api Exception handler.
-
listAsync
Get a list of test results by run ID.- Parameters:
runId- ID of the run.- Returns:
- Collection of TestCaseResults Object
TestRuns - Throws:
AzDException- Default Api Exception handler.
-
createAsync
public CompletableFuture<TestCaseResults> createAsync(int runId, TestCaseResults testCaseResults) throws AzDException Create test results by run ID.- Parameters:
runId- ID of the run to update.testCaseResults- Test case results object to update.- Returns:
- Test case results object
TestCaseResults - Throws:
AzDException- Default Api Exception handler.
-
updateAsync
public CompletableFuture<TestCaseResults> updateAsync(int runId, TestCaseResults testCaseResults) throws AzDException Update test results by run ID.- Parameters:
runId- ID of the run to update.testCaseResults- Test case results object to update.- Returns:
- Test case results object
TestCaseResults - Throws:
AzDException- Default Api Exception handler.
-
get
Get a test case results for a test run.- Parameters:
runId- ID of the run to get.testCaseResultId- ID of the test case result to get.- Returns:
- TestCaseResult Object
TestCaseResult - Throws:
AzDException- Default Api Exception handler.
-
list
Get a list of test results by run ID.- Parameters:
runId- ID of the run.- Returns:
- Collection of TestCaseResults Object
TestRuns - Throws:
AzDException- Default Api Exception handler.
-
create
Create test results by run ID.- Parameters:
runId- ID of the run to update.testCaseResults- Test case results object to update.- Returns:
- Test case results object
TestCaseResults - Throws:
AzDException- Default Api Exception handler.
-
update
Update test results by run ID.- Parameters:
runId- ID of the run to update.testCaseResults- Test case results object to update.- Returns:
- Test case results object
TestCaseResults - Throws:
AzDException- Default Api Exception handler.
-