fix(UI 自动化): 测试计划 UI 测试结果与总报告结果不同步

--bug=1015636 --user=张大海 【UI 测试】测试计划 UI 测试结果与总报告结果不同步 https://www.tapd.cn/55049933/s/1218511
This commit is contained in:
zhangdahai112 2022-08-03 16:09:07 +08:00 committed by zhangdahai112
parent 3f57f88436
commit 72c5523003
2 changed files with 7 additions and 3 deletions

View File

@ -61,8 +61,7 @@ public class PerfExecService {
apiExecutionQueueService.add(responseMap, config.getResourcePoolId(), ApiRunMode.TEST_PLAN_PERFORMANCE_TEST.name(),
planReportId, config.getReportType(), config.getMode(), config);
}
if (CollectionUtils.isEmpty(requests) && StringUtils.isNotEmpty(planReportId)) {
apiExecutionQueueService.testPlanReportTestEnded(planReportId);
if (CollectionUtils.isEmpty(requests)) {
return responseMap;
}
LoggerUtil.info("开始执行性能测试任务");

View File

@ -41,7 +41,12 @@
:label="$t('test_track.plan_view.execute_result')"
prop="lastResult">
<template v-slot:default="{row}">
<status-table-item v-if="row.lastResult" :value="resultMap[row.lastResult]"/>
<status-table-item v-if="row.lastResult === 'Success'" :value="'Pass'"/>
<status-table-item v-else-if="row.lastResult === 'Error'" :value="'Failure'"/>
<status-table-item v-else-if="row.lastResult === 'STOP'" :value="'STOP'"/>
<status-table-item v-else-if="row.lastResult === 'Running'" :value="'Underway'"/>
<status-table-item v-else-if="row.lastResult === 'Waiting'" :value="'Waiting'"/>
<status-table-item v-else-if="row.lastResult === 'Timeout'" :value="'Timeout'"/>
<status-table-item v-else :value="'Prepare'"/>
</template>
</ms-table-column>