fix(测试计划): 修复测试计划报告通过率展示不正确
This commit is contained in:
parent
a847dac0e2
commit
fb7c51c636
|
@ -426,10 +426,6 @@
|
||||||
const apiCaseTotal = computed(() => getSummaryDetail(detail.value.apiCaseCount).caseTotal);
|
const apiCaseTotal = computed(() => getSummaryDetail(detail.value.apiCaseCount).caseTotal);
|
||||||
const scenarioCaseTotal = computed(() => getSummaryDetail(detail.value.apiScenarioCount).caseTotal);
|
const scenarioCaseTotal = computed(() => getSummaryDetail(detail.value.apiScenarioCount).caseTotal);
|
||||||
|
|
||||||
const totalCase = computed(() => {
|
|
||||||
return functionalCaseTotal.value + apiCaseTotal.value + scenarioCaseTotal.value;
|
|
||||||
});
|
|
||||||
|
|
||||||
const reportAnalysisList = computed<ReportMetricsItemModel[]>(() => {
|
const reportAnalysisList = computed<ReportMetricsItemModel[]>(() => {
|
||||||
if (props.isGroup) {
|
if (props.isGroup) {
|
||||||
return [
|
return [
|
||||||
|
@ -447,7 +443,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: t('report.passRate'),
|
name: t('report.passRate'),
|
||||||
value: detail.value.executeRate,
|
value: detail.value.passRate,
|
||||||
unit: '%',
|
unit: '%',
|
||||||
icon: 'passRate',
|
icon: 'passRate',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue