This commit is contained in:
wenyann 2020-07-09 11:23:58 +08:00
parent 5c4ce18486
commit e089e967c0
4 changed files with 8 additions and 4 deletions

View File

@ -50,8 +50,8 @@ public class APITestController {
return apiTestService.getApiTestByProjectId(projectId);
}
/*查询某个api测试状态*/
@GetMapping("/list/all/{testId}")
@GetMapping("/state/get/{testId}")
public ApiTest apiState(@PathVariable String testId) {
return apiTestService.getApiTestByTestId(testId);
}

View File

@ -71,6 +71,9 @@
<if test="request.planId != null">
and test_plan_test_case.plan_id = #{request.planId}
</if>
<if test="request.method != null">
and test_case.method = #{request.method}
</if>
<if test="request.nodePaths != null and request.nodePaths.size() > 0">
and test_case.node_path in

View File

@ -55,8 +55,8 @@ public class PerformanceTestController {
return performanceTestService.getLoadTestByProjectId(projectId);
}
/*查询某个测试状态*/
@GetMapping("/list/all/{testId}")
@GetMapping("/state/get/{testId}")
public LoadTest listByTestId(@PathVariable String testId) {
return performanceTestService.getLoadTestBytestId(testId);
}

View File

@ -42,6 +42,7 @@ public class TestPlanTestCaseController {
QueryTestPlanCaseRequest request = new QueryTestPlanCaseRequest();
request.setPlanId(planId);
request.setNodePaths(list);
request.setMethod("auto");
return testPlanTestCaseService.listByNode(request);
}