mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
refactor(测试跟踪): 修复测试计划无法执行其余项目的测试计划的缺陷
--bug=1011498 --user=宋天阳 【测试跟踪】-测试计划 点击执行时 ,性能测试没有执行 https://www.tapd.cn/55049933/s/1122643
This commit is contained in:
parent
ef8374bb2b
commit
74437ad647
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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());
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user