Class AzureDevopsRestClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class AzureDevopsRestClient
    extends AbstractRestClient
    • Constructor Detail

      • AzureDevopsRestClient

        public AzureDevopsRestClient​(java.lang.String organization,
                                     java.lang.String project,
                                     java.lang.String accessToken)
    • 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,
                         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)
      • 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)