refactor(测试跟踪): 修复测试计划无法执行其余项目的测试计划的缺陷

--bug=1011498 --user=宋天阳 【测试跟踪】-测试计划 点击执行时 ,性能测试没有执行
https://www.tapd.cn/55049933/s/1122643
This commit is contained in:
song-tianyang 2022-03-21 19:33:07 +08:00 committed by 刘瑞斌
parent ef8374bb2b
commit 74437ad647
5 changed files with 6 additions and 3 deletions

View File

@ -306,7 +306,7 @@
and t.status = #{status}
</if>
and (c.status != 'Trash' or c.status is null)
where t.test_plan_id = #{planId};
where t.test_plan_id = #{planId} ORDER BY t.order DESC
</select>
<select id="getFailureListByIds" resultType="io.metersphere.api.dto.automation.TestPlanFailureApiDTO">

View File

@ -297,7 +297,7 @@
<if test="status != null">
and tplc.status = 'error'
</if>
where tplc.test_plan_id = #{planId}
where tplc.test_plan_id = #{planId} ORDER BY tplc.order DESC
</select>
<select id="getCasesByIds" resultType="io.metersphere.track.dto.TestPlanLoadCaseDTO">

View File

@ -255,6 +255,7 @@
and t.last_result in ('Fail','Error')
</if>
where t.test_plan_id = #{planId}
ORDER BY t.order DESC
</select>
<select id="getFailureListByIds" resultType="io.metersphere.api.dto.automation.TestPlanFailureScenarioDTO">

View File

@ -225,7 +225,6 @@ public class TestPlanReportService {
}
LoadCaseRequest loadCaseRequest = new LoadCaseRequest();
loadCaseRequest.setTestPlanId(planId);
loadCaseRequest.setProjectId(projectID);
List<TestPlanLoadCaseDTO> testPlanLoadCaseDTOList = extTestPlanLoadCaseMapper.selectTestPlanLoadCaseList(loadCaseRequest);
for (TestPlanLoadCaseDTO dto : testPlanLoadCaseDTOList) {
performanceIdMap.put(dto.getId(), dto.getLoadCaseId());

View File

@ -42,6 +42,9 @@
<el-tag size="mini" v-else-if="row.status === 'Completed'">
{{ row.status }}
</el-tag>
<el-tag size="mini" v-else-if="!row.status || row.status === '' ">
Prepare
</el-tag>
<el-tag size="mini" v-else>
{{ row.status }}
</el-tag>