fix(测试跟踪): 修复测试计划报告中失败状态的性能用例数据再失败用例页签不显示的问题
--bug=1010003 --user=宋天阳 【测试跟踪】测试计划报告里,性能测试,失败的用例不显示 https://www.tapd.cn/55049933/s/1098689
This commit is contained in:
parent
eb397506fd
commit
a4a0c0a3d0
|
@ -1625,7 +1625,7 @@ public class TestPlanService {
|
||||||
if (!CollectionUtils.isEmpty(allCases)) {
|
if (!CollectionUtils.isEmpty(allCases)) {
|
||||||
failureCases = allCases.stream()
|
failureCases = allCases.stream()
|
||||||
.filter(i -> StringUtils.isNotBlank(i.getStatus())
|
.filter(i -> StringUtils.isNotBlank(i.getStatus())
|
||||||
&& i.getStatus().equals("error"))
|
&& StringUtils.equalsAnyIgnoreCase(i.getStatus(), "error"))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
report.setLoadFailureCases(failureCases);
|
report.setLoadFailureCases(failureCases);
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
<tab-pane-count :title="$t('test_track.report.fail_case')" :count="failureSize"/>
|
<tab-pane-count :title="$t('test_track.report.fail_case')" :count="failureSize"/>
|
||||||
</template>
|
</template>
|
||||||
<load-failure-result class="container" :share-id="shareId" :is-share="isShare" :is-template="isTemplate"
|
<load-all-result :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate" :is-all="false"
|
||||||
:report="report" :plan-id="planId" @setSize="setFailureSize"/>
|
:report="report" :plan-id="planId" @setSize="setFailureSize"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane name="third" v-if="allEnable" style="min-height: 550px">
|
<el-tab-pane name="third" v-if="allEnable" style="min-height: 550px">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
<tab-pane-count :title="$t('test_track.report.all_case')" :count="allSize"/>
|
<tab-pane-count :title="$t('test_track.report.all_case')" :count="allSize"/>
|
||||||
</template>
|
</template>
|
||||||
<load-all-result :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate"
|
<load-all-result :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate" :is-all="true"
|
||||||
:report="report" :plan-id="planId" @setSize="setAllSize"/>
|
:report="report" :plan-id="planId" @setSize="setAllSize"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<el-container>
|
<el-container>
|
||||||
<ms-aside-container width="500px" :default-hidden-bottom-top="200" :enable-auto-height="true">
|
<ms-aside-container width="500px" :default-hidden-bottom-top="200" :enable-auto-height="true">
|
||||||
<load-failure-result :class="{'init-height': !showResponse}" :is-db="isDb" @rowClick="getReport" :is-all="true" :share-id="shareId" :is-share="isShare" :is-template="isTemplate"
|
<load-failure-result :class="{'init-height': !showResponse}" :is-db="isDb" @rowClick="getReport" :is-all="isAll"
|
||||||
:report="report" :plan-id="planId" @setSize="setAllSize"/>
|
:share-id="shareId" :is-share="isShare" :is-template="isTemplate"
|
||||||
|
:report="report" :plan-id="planId" @setSize="setAllSize"/>
|
||||||
</ms-aside-container>
|
</ms-aside-container>
|
||||||
<ms-main-container>
|
<ms-main-container>
|
||||||
<load-case-report-view :is-plan-report="true" :share-id="shareId" :is-share="isShare" v-show="showResponse"
|
<load-case-report-view :is-plan-report="true" :share-id="shareId" :is-share="isShare" v-show="showResponse"
|
||||||
:plan-report-template="response" :report-id="reportId" ref="loadCaseReportView"/>
|
:plan-report-template="response" :report-id="reportId" ref="loadCaseReportView"/>
|
||||||
<div class="empty" v-show="!showResponse">{{ $t('test_track.plan.load_case.content_empty') }}</div>
|
<div class="empty" v-show="!showResponse">{{ $t('test_track.plan.load_case.content_empty') }}</div>
|
||||||
</ms-main-container>
|
</ms-main-container>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
@ -23,23 +24,29 @@ import LoadCaseReport from "@/business/components/track/plan/view/comonents/load
|
||||||
import LoadCaseReportView from "@/business/components/track/plan/view/comonents/load/LoadCaseReportView";
|
import LoadCaseReportView from "@/business/components/track/plan/view/comonents/load/LoadCaseReportView";
|
||||||
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
|
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
|
||||||
import MsMainContainer from "@/business/components/common/components/MsMainContainer";
|
import MsMainContainer from "@/business/components/common/components/MsMainContainer";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "LoadAllResult",
|
name: "LoadAllResult",
|
||||||
components: {
|
components: {
|
||||||
MsMainContainer,
|
MsMainContainer,
|
||||||
MsAsideContainer,
|
MsAsideContainer,
|
||||||
LoadCaseReportView, LoadCaseReport, LoadFailureResult, StatusTableItem, MethodTableItem, TypeTableItem},
|
LoadCaseReportView, LoadCaseReport, LoadFailureResult, StatusTableItem, MethodTableItem, TypeTableItem
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
planId: String,
|
planId: String,
|
||||||
report: Object,
|
report: Object,
|
||||||
isTemplate: Boolean,
|
isTemplate: Boolean,
|
||||||
isShare: Boolean,
|
isShare: Boolean,
|
||||||
shareId: String,
|
shareId: String,
|
||||||
isDb: Boolean
|
isDb: Boolean,
|
||||||
|
isAll: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
failureTestCases: [],
|
failureTestCases: [],
|
||||||
showResponse: false,
|
showResponse: false,
|
||||||
reportId: "",
|
reportId: "",
|
||||||
response: null
|
response: null
|
||||||
|
|
Loading…
Reference in New Issue