fix(测试跟踪): 测试计划性能测试批量执行有用例没执行

--bug=1018671 --user=陈建星 【测试跟踪】测试计划-性能测试-批量串行执行用例实际只执行了一个 https://www.tapd.cn/55049933/s/1274480
This commit is contained in:
chenjianxing 2022-10-24 16:09:37 +08:00 committed by jianxing
parent e074e1c0ba
commit ee3ab1537b
3 changed files with 9 additions and 4 deletions

View File

@ -245,7 +245,7 @@
SELECT id SELECT id
FROM load_test_report FROM load_test_report
WHERE test_id = #{testId} WHERE test_id = #{testId}
AND `status` !='Completed' AND `status` !='Completed' AND `status` !='Error'
</select> </select>
<select id="selectStatusById" resultType="string"> <select id="selectStatusById" resultType="string">

View File

@ -17,7 +17,7 @@ public class PerfExecController {
PerfExecService perfExecService; PerfExecService perfExecService;
@PostMapping("/run") @PostMapping("/run")
public Map<String, String> getLoadFailureCases(@RequestBody PlanPerformanceExecRequest request) { public Map<String, String> run(@RequestBody PlanPerformanceExecRequest request) {
return perfExecService.run(request.getPlanReportId(), request.getConfig(), request.getTriggerMode(), request.getPerfMap()); return perfExecService.run(request.getPlanReportId(), request.getConfig(), request.getTriggerMode(), request.getPerfMap());
} }
} }

View File

@ -15,7 +15,7 @@
<ms-main-container> <ms-main-container>
<div v-if="showResponse"> <div v-if="showResponse">
<micro-app v-if="!isTemplate" <micro-app v-if="!isTemplate && reportShow"
route-name="perReportView" route-name="perReportView"
service="performance" service="performance"
:route-params="{ :route-params="{
@ -75,7 +75,8 @@ export default {
failureTestCases: [], failureTestCases: [],
showResponse: false, showResponse: false,
reportId: "", reportId: "",
response: null response: null,
reportShow: true
} }
}, },
methods: { methods: {
@ -112,6 +113,10 @@ export default {
if (exist) { if (exist) {
this.reportId = loadReportId; this.reportId = loadReportId;
this.showResponse = true; this.showResponse = true;
this.reportShow = false;
this.$nextTick(() => {
this.reportShow = true;
});
} else { } else {
this.showResponse = false; this.showResponse = false;
this.$message.warning(this.$t('test_track.plan.load_case.report_not_found')); this.$message.warning(this.$t('test_track.plan.load_case.report_not_found'));