将测试与java集成。我能够在root下创建测试运行,但无法在特定测试周期下创建测试运行。
以下是我使用的代码:
TestExecutionService testExecutionService = new TestExecutionServiceClient(credentials, config);
TestDesignService testDesignService = new TestDesignServiceClient(credentials, config);
TestCycle cycleId =testExecutionService.createTestCycle(new CreateTestCycleRequest()
.withProjectId(projectId)
.withTestCycle(new TestCycle().withName("Sisir cycle test"))
);
TestCase testcase = testDesignService.getTestCase(new GetTestCaseRequest().withProjectId(projectId).withTestCaseId(146983L));
TestRun testRun = testExecutionService.createTestRun(new CreateTestRunRequest()
.withProjectId(projectId)
.withTestRun(new TestRun().withTestCase(testcase)
.withName("Thank u")));
我可以在项目下创建Testrun。但是如何在特定的测试周期下创建一个testrun。有人能帮助我吗?