fix: 测试计划场景统计错误
This commit is contained in:
parent
44b34b239f
commit
ad553c2fb8
|
@ -303,7 +303,7 @@
|
|||
</foreach>
|
||||
</select>
|
||||
<select id="selectForPlanReport" resultType="io.metersphere.track.dto.PlanReportCaseDTO">
|
||||
select status from api_scenario_report
|
||||
select status, id as report_id , scenario_id as case_id from api_scenario_report
|
||||
WHERE id IN
|
||||
<foreach collection="ids" item="value" separator="," open="(" close=")">
|
||||
#{value}
|
||||
|
|
|
@ -44,6 +44,7 @@ public class TestPlanUtils {
|
|||
addToReportStatusResultList(resultMap, statusResult, TestPlanTestCaseStatus.Pass.name());
|
||||
addToReportStatusResultList(resultMap, statusResult, TestPlanTestCaseStatus.Failure.name());
|
||||
addToReportStatusResultList(resultMap, statusResult, "error");
|
||||
addToReportStatusResultList(resultMap, statusResult, "Error");
|
||||
addToReportStatusResultList(resultMap, statusResult, "run");
|
||||
addToReportStatusResultList(resultMap, statusResult, "Fail");
|
||||
addToReportStatusResultList(resultMap, statusResult, "success");
|
||||
|
|
|
@ -28,6 +28,7 @@ export default {
|
|||
["Success", {name: this.$t('test_track.plan_view.pass'), itemStyle: {color: '#67C23A'}}],
|
||||
["Pass", {name: this.$t('test_track.plan_view.pass'), itemStyle: {color: '#67C23A'}}],
|
||||
["error", {name: this.$t('test_track.plan_view.failure'), itemStyle: {color: '#F56C6C'}}],
|
||||
["Error", {name: this.$t('test_track.plan_view.failure'), itemStyle: {color: '#F56C6C'}}],
|
||||
["Fail", {name: this.$t('test_track.plan_view.failure'), itemStyle: {color: '#F56C6C'}}],
|
||||
["Failure", {name: this.$t('test_track.plan_view.failure'), itemStyle: {color: '#F56C6C'}}],
|
||||
["Prepare", {name: this.$t('api_test.home_page.detail_card.unexecute'), itemStyle: {color: '#909399'}}],
|
||||
|
|
Loading…
Reference in New Issue