This commit is contained in:
parent
5c4ce18486
commit
e089e967c0
|
@ -50,8 +50,8 @@ public class APITestController {
|
||||||
return apiTestService.getApiTestByProjectId(projectId);
|
return apiTestService.getApiTestByProjectId(projectId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*查询某个api测试状态*/
|
|
||||||
@GetMapping("/list/all/{testId}")
|
@GetMapping("/state/get/{testId}")
|
||||||
public ApiTest apiState(@PathVariable String testId) {
|
public ApiTest apiState(@PathVariable String testId) {
|
||||||
return apiTestService.getApiTestByTestId(testId);
|
return apiTestService.getApiTestByTestId(testId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,9 @@
|
||||||
<if test="request.planId != null">
|
<if test="request.planId != null">
|
||||||
and test_plan_test_case.plan_id = #{request.planId}
|
and test_plan_test_case.plan_id = #{request.planId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="request.method != null">
|
||||||
|
and test_case.method = #{request.method}
|
||||||
|
</if>
|
||||||
|
|
||||||
<if test="request.nodePaths != null and request.nodePaths.size() > 0">
|
<if test="request.nodePaths != null and request.nodePaths.size() > 0">
|
||||||
and test_case.node_path in
|
and test_case.node_path in
|
||||||
|
|
|
@ -55,8 +55,8 @@ public class PerformanceTestController {
|
||||||
return performanceTestService.getLoadTestByProjectId(projectId);
|
return performanceTestService.getLoadTestByProjectId(projectId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*查询某个测试状态*/
|
|
||||||
@GetMapping("/list/all/{testId}")
|
@GetMapping("/state/get/{testId}")
|
||||||
public LoadTest listByTestId(@PathVariable String testId) {
|
public LoadTest listByTestId(@PathVariable String testId) {
|
||||||
return performanceTestService.getLoadTestBytestId(testId);
|
return performanceTestService.getLoadTestBytestId(testId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class TestPlanTestCaseController {
|
||||||
QueryTestPlanCaseRequest request = new QueryTestPlanCaseRequest();
|
QueryTestPlanCaseRequest request = new QueryTestPlanCaseRequest();
|
||||||
request.setPlanId(planId);
|
request.setPlanId(planId);
|
||||||
request.setNodePaths(list);
|
request.setNodePaths(list);
|
||||||
|
request.setMethod("auto");
|
||||||
return testPlanTestCaseService.listByNode(request);
|
return testPlanTestCaseService.listByNode(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue