Class AzureDevopsRestClient
- java.lang.Object
-
- step.repositories.azure.devops.rest.AbstractRestClient
-
- step.repositories.azure.devops.rest.AzureDevopsRestClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class AzureDevopsRestClient extends AbstractRestClient
-
-
Field Summary
-
Fields inherited from class step.repositories.azure.devops.rest.AbstractRestClient
client
-
-
Constructor Summary
Constructors Constructor Description AzureDevopsRestClient(java.lang.String organization, java.lang.String project, java.lang.String accessToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
call(java.lang.String method, java.lang.String relativeUri, java.lang.Object requestEntity, java.lang.Class<T> responseType, ApiVersion apiVersion, java.lang.String urlSuffix)
TestRun
createTestRun(TestRun.Create create)
<T> void
DELETE(RequestSpecification<T> spec, java.lang.Object... parameters)
void
deleteTestRun(int runId)
<T> T
GET(RequestSpecification<T> spec, java.lang.Object... parameters)
<T> T
GET(RequestSpecification<T> spec, java.lang.Object[] parameters, java.lang.String urlSuffix)
java.lang.String
getBaseUri()
java.util.List<TestSuite>
getChildSuites(TestSuite suite)
TestCase
getTestCase(int planId, int suiteId, int caseId)
TestCase
getTestCase(TestSuite suite, int caseId)
TestCaseResult
getTestCaseResult(int runId, int testResultId)
java.util.Optional<TestCaseResult>
getTestCaseResultOptional(int runId, int testCaseId)
java.util.List<TestCaseResult>
getTestCaseResults(int runId)
java.util.List<TestCase>
getTestCases(int planId, int suiteId)
java.util.List<TestCase>
getTestCases(TestSuite suite)
java.util.List<TestPlan>
getTestPlans()
TestPoint
getTestPoint(TestCase kase)
java.util.List<TestPoint>
getTestPoints(int planId, int suiteId)
TestRun
getTestRun(int runId)
java.util.List<TestRun>
getTestRuns()
java.util.List<TestRun>
getTestRuns(int planId)
TestSuite
getTestSuite(int planId, int suiteId)
java.util.List<TestSuite>
getTestSuites(int planId)
java.util.List<TestSuite>
getTestSuitesOld(int planId)
java.util.List<WorkItem>
getWorkItems(int... workItemIds)
<T> T
PATCH(RequestSpecification<T> spec, java.lang.Object requestEntity, java.lang.Object... requestParameters)
<T> T
POST(RequestSpecification<T> spec, java.lang.Object requestEntity, java.lang.Object... specParameters)
void
updateTestCaseResult(TestCaseResult result)
TestRun
updateTestRun(TestRun run)
void
uploadAttachment(ResultAttachment attach, int runId, int resultId)
-
Methods inherited from class step.repositories.azure.devops.rest.AbstractRestClient
close, invoke, performCall
-
-
-
-
Method Detail
-
getBaseUri
public java.lang.String getBaseUri()
-
call
public <T> T call(java.lang.String method, java.lang.String relativeUri, java.lang.Object requestEntity, java.lang.Class<T> responseType, ApiVersion apiVersion, java.lang.String urlSuffix)
-
GET
public <T> T GET(RequestSpecification<T> spec, java.lang.Object... parameters)
-
GET
public <T> T GET(RequestSpecification<T> spec, java.lang.Object[] parameters, java.lang.String urlSuffix)
-
DELETE
public <T> void DELETE(RequestSpecification<T> spec, java.lang.Object... parameters)
-
POST
public <T> T POST(RequestSpecification<T> spec, java.lang.Object requestEntity, java.lang.Object... specParameters)
-
PATCH
public <T> T PATCH(RequestSpecification<T> spec, java.lang.Object requestEntity, java.lang.Object... requestParameters)
-
getTestPlans
public java.util.List<TestPlan> getTestPlans()
-
getTestSuitesOld
public java.util.List<TestSuite> getTestSuitesOld(int planId)
-
getTestSuites
public java.util.List<TestSuite> getTestSuites(int planId)
-
getTestSuite
public TestSuite getTestSuite(int planId, int suiteId)
-
getTestCases
public java.util.List<TestCase> getTestCases(int planId, int suiteId)
-
getTestCase
public TestCase getTestCase(int planId, int suiteId, int caseId)
-
getTestRuns
public java.util.List<TestRun> getTestRuns()
-
getTestRuns
public java.util.List<TestRun> getTestRuns(int planId)
-
getTestRun
public TestRun getTestRun(int runId)
-
deleteTestRun
public void deleteTestRun(int runId)
-
createTestRun
public TestRun createTestRun(TestRun.Create create)
-
getTestPoints
public java.util.List<TestPoint> getTestPoints(int planId, int suiteId)
-
getTestCaseResult
public TestCaseResult getTestCaseResult(int runId, int testResultId)
-
getTestCaseResults
public java.util.List<TestCaseResult> getTestCaseResults(int runId)
-
getWorkItems
public java.util.List<WorkItem> getWorkItems(int... workItemIds)
-
getTestCaseResultOptional
public java.util.Optional<TestCaseResult> getTestCaseResultOptional(int runId, int testCaseId)
-
updateTestCaseResult
public void updateTestCaseResult(TestCaseResult result)
-
uploadAttachment
public void uploadAttachment(ResultAttachment attach, int runId, int resultId)
-
-