Package org.azd.test.runs
Class RunsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.test.runs.RunsRequestBuilder
Provides functionality to work with Test runs Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Represents the query parameters.static class
Request configuration object for the query parameters.static class
Request configuration object for the query parameters.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
ConstructorDescriptionRunsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(RunCreateModel runCreateModel) Create new test run.createAsync
(RunCreateModel runCreateModel) Create new test run.delete
(int runId) Delete a test run by its ID.deleteAsync
(int runId) Delete a test run by its ID.get
(int runId) Get a test run by its ID.get
(int runId, boolean includeDetails) Get a test run by its ID.getAsync
(int runId) Get a test run by its ID.getAsync
(int runId, boolean includeDetails) Get a test run by its ID.getStatistics
(int runId) Get test run statistics , used when we want to get summary of a run by outcome.getStatisticsAsync
(int runId) Get test run statistics , used when we want to get summary of a run by outcome.list()
Get a list of test runs.list
(Consumer<RunsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of test runs.Get a list of test runs.listAsync
(Consumer<RunsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of test runs.query
(Consumer<RunsRequestBuilder.QueryRequestConfiguration> requestConfiguration) Query Test Runs based on filters.queryAsync
(Consumer<RunsRequestBuilder.QueryRequestConfiguration> requestConfiguration) Query Test Runs based on filters.Update test run by its ID.updateAsync
(int runId, TestRun testRun) Update test run by its ID.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
RunsRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
createAsync
Create new test run.- Parameters:
runCreateModel
- Run create model object to create a test run.- Returns:
- TestRun Object
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
deleteAsync
Delete a test run by its ID.- Parameters:
runId
- ID of the run to delete.- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Get a test run by its ID.- Parameters:
runId
- ID of the run to get.- Returns:
- TestRun Object
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Get a test run by its ID.- Parameters:
runId
- ID of the run to get.includeDetails
- Default value is true. It includes details like run statistics, release, build, test environment, post process state, and more.- Returns:
- TestRun Object
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
getStatisticsAsync
Get test run statistics , used when we want to get summary of a run by outcome.- Parameters:
runId
- ID of the run to get.- Returns:
- TestRunStatistic Object
TestRunStatistic
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Get a list of test runs.- Returns:
- Collection of TestRun Object
TestRuns
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<TestRuns> listAsync(Consumer<RunsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of test runs.- Parameters:
requestConfiguration
- Represents the query parameters.- Returns:
- Collection of TestRun Object
TestRuns
- Throws:
AzDException
- Default Api Exception handler.
-
queryAsync
public CompletableFuture<TestRuns> queryAsync(Consumer<RunsRequestBuilder.QueryRequestConfiguration> requestConfiguration) throws AzDException Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.- Parameters:
requestConfiguration
- Represents the query parameters.- Returns:
- Collection of TestRun Object
TestRuns
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
Update test run by its ID.- Parameters:
runId
- ID of the run to update.testRun
- Test run object to update.- Returns:
- Test run objet
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
create
Create new test run.- Parameters:
runCreateModel
- Run create model object to create a test run.- Returns:
- TestRun Object
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Delete a test run by its ID.- Parameters:
runId
- ID of the run to delete.- Throws:
AzDException
- Default Api Exception handler.
-
get
Get a test run by its ID.- Parameters:
runId
- ID of the run to get.- Returns:
- TestRun Object
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
get
Get a test run by its ID.- Parameters:
runId
- ID of the run to get.includeDetails
- Default value is true. It includes details like run statistics, release, build, test environment, post process state, and more.- Returns:
- TestRun Object
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-
getStatistics
Get test run statistics , used when we want to get summary of a run by outcome.- Parameters:
runId
- ID of the run to get.- Returns:
- TestRunStatistic Object
TestRunStatistic
- Throws:
AzDException
- Default Api Exception handler.
-
list
Get a list of test runs.- Returns:
- Collection of TestRun Object
TestRuns
- Throws:
AzDException
- Default Api Exception handler.
-
list
public TestRuns list(Consumer<RunsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of test runs.- Parameters:
requestConfiguration
- Represents the query parameters.- Returns:
- Collection of TestRun Object
TestRuns
- Throws:
AzDException
- Default Api Exception handler.
-
query
public TestRuns query(Consumer<RunsRequestBuilder.QueryRequestConfiguration> requestConfiguration) throws AzDException Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.- Parameters:
requestConfiguration
- Represents the query parameters.- Returns:
- Collection of TestRun Object
TestRuns
- Throws:
AzDException
- Default Api Exception handler.
-
update
Update test run by its ID.- Parameters:
runId
- ID of the run to update.testRun
- Test run object to update.- Returns:
- Test run objet
TestRun
- Throws:
AzDException
- Default Api Exception handler.
-