Package org.azd.test
Class TestApi
java.lang.Object
org.azd.test.TestApi
- All Implemented Interfaces:
TestDetails
-
Constructor Summary
ConstructorsConstructorDescriptionTestApi(Connection connection) Pass the connection object to work with Service hooks Api -
Method Summary
Modifier and TypeMethodDescriptioncreateTestRun(RunCreateModel runCreateModel) Create new test run.deleteTestRun(int runId) Delete a test run by its ID.getTestRunById(int runId) Get a test run by its ID.Get a list of test runs.getTestRuns(int top) Get a list of test runs.getTestRuns(int skip, int top, boolean automated, String buildUri, boolean includeRunDetails, String owner, int planId, String tmiRunId) Get a list of test runs.getTestRuns(String buildUri) Get a list of test runs.getTestRunStatistics(int runId) Get test run statistics , used when we want to get summary of a run by outcome.
-
Constructor Details
-
TestApi
Pass the connection object to work with Service hooks Api- Parameters:
connection- Connection object
-
-
Method Details
-
createTestRun
Create new test run.- Specified by:
createTestRunin interfaceTestDetails- Returns:
- TestRun Object
TestRun - Throws:
AzDException- Default Api Exception handler.
-
getTestRunById
Get a test run by its ID.- Specified by:
getTestRunByIdin interfaceTestDetails- Parameters:
runId- ID of the run to get.- Returns:
- TestRun Object
TestRun - Throws:
AzDException- Default Api Exception handler.
-
getTestRuns
Get a list of test runs.- Specified by:
getTestRunsin interfaceTestDetails- Returns:
- TestRun Object
TestRun - Throws:
AzDException- Default Api Exception handler.
-
getTestRuns
Get a list of test runs.- Specified by:
getTestRunsin interfaceTestDetails- Parameters:
top- Number of test runs to return.- Returns:
- TestRun Object
TestRun - Throws:
AzDException- Default Api Exception handler.
-
getTestRuns
Get a list of test runs.- Specified by:
getTestRunsin interfaceTestDetails- Parameters:
buildUri- URI of the build that the runs used.- Returns:
- TestRun Object
TestRun - Throws:
AzDException- Default Api Exception handler.
-
getTestRuns
public TestRuns getTestRuns(int skip, int top, boolean automated, String buildUri, boolean includeRunDetails, String owner, int planId, String tmiRunId) throws AzDException Get a list of test runs.- Specified by:
getTestRunsin interfaceTestDetails- Parameters:
skip- Number of test runs to skip.top- Number of test runs to return.automated- If true, only returns automated runs.buildUri- URI of the build that the runs used.includeRunDetails- If true, include all the properties of the runs.owner- Team foundation ID of the owner of the runs.planId- ID of the test plan that the runs are a part of.tmiRunId- None- Returns:
- TestRun Object
TestRun - Throws:
AzDException- Default Api Exception handler.
-
getTestRunStatistics
Get test run statistics , used when we want to get summary of a run by outcome.- Specified by:
getTestRunStatisticsin interfaceTestDetails- Parameters:
runId- ID of the run to get.- Returns:
- TestRunStatistic Object
TestRunStatistic - Throws:
AzDException- Default Api Exception handler.
-
deleteTestRun
Delete a test run by its ID.- Specified by:
deleteTestRunin interfaceTestDetails- Parameters:
runId- ID of the run to delete.- Throws:
AzDException- Default Api Exception handler.
-