fix(测试计划): 测试计划执行时未显示测试步骤
This commit is contained in:
parent
4d25ab60a0
commit
1b5288756a
|
@ -90,26 +90,26 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row v-if="testCase.method === 'auto' && testCase.testId && testCase.testId != 'other'">
|
<!-- <el-row v-if="testCase.method === 'auto' && testCase.testId && testCase.testId != 'other'">-->
|
||||||
<el-col class="test-detail" :span="20" :offset="1">
|
<!-- <el-col class="test-detail" :span="20" :offset="1">-->
|
||||||
<el-tabs v-model="activeTab" type="border-card" @tab-click="testTabChange">
|
<!-- <el-tabs v-model="activeTab" type="border-card" @tab-click="testTabChange">-->
|
||||||
<el-tab-pane name="detail" :label="$t('test_track.plan_view.test_detail')">
|
<!-- <el-tab-pane name="detail" :label="$t('test_track.plan_view.test_detail')">-->
|
||||||
<api-test-detail :is-read-only="isReadOnly" v-if="testCase.type === 'api'" @runTest="testRun"
|
<!-- <api-test-detail :is-read-only="isReadOnly" v-if="testCase.type === 'api'" @runTest="testRun"-->
|
||||||
:id="testCase.testId" ref="apiTestDetail"/>
|
<!-- :id="testCase.testId" ref="apiTestDetail"/>-->
|
||||||
<performance-test-detail :is-read-only="isReadOnly" v-if="testCase.type === 'performance'"
|
<!-- <performance-test-detail :is-read-only="isReadOnly" v-if="testCase.type === 'performance'"-->
|
||||||
@runTest="testRun" :id="testCase.testId" ref="performanceTestDetail"/>
|
<!-- @runTest="testRun" :id="testCase.testId" ref="performanceTestDetail"/>-->
|
||||||
</el-tab-pane>
|
<!-- </el-tab-pane>-->
|
||||||
<el-tab-pane name="result" :label="$t('test_track.plan_view.test_result')">
|
<!-- <el-tab-pane name="result" :label="$t('test_track.plan_view.test_result')">-->
|
||||||
<api-test-result :report-id="testCase.reportId" v-if=" testCase.type === 'api'"
|
<!-- <api-test-result :report-id="testCase.reportId" v-if=" testCase.type === 'api'"-->
|
||||||
ref="apiTestResult"/>
|
<!-- ref="apiTestResult"/>-->
|
||||||
<performance-test-result :is-read-only="isReadOnly" :report-id="testCase.reportId"
|
<!-- <performance-test-result :is-read-only="isReadOnly" :report-id="testCase.reportId"-->
|
||||||
v-if="testCase.type === 'performance'" ref="performanceTestResult"/>
|
<!-- v-if="testCase.type === 'performance'" ref="performanceTestResult"/>-->
|
||||||
</el-tab-pane>
|
<!-- </el-tab-pane>-->
|
||||||
</el-tabs>
|
<!-- </el-tabs>-->
|
||||||
</el-col>
|
<!-- </el-col>-->
|
||||||
</el-row>
|
<!-- </el-row>-->
|
||||||
|
|
||||||
<el-row v-if="testCase.method && testCase.method !== 'auto'">
|
<el-row>
|
||||||
<el-col :span="22" :offset="1">
|
<el-col :span="22" :offset="1">
|
||||||
<div>
|
<div>
|
||||||
<span class="cast_label">{{ $t('test_track.case.steps') }}:</span>
|
<span class="cast_label">{{ $t('test_track.case.steps') }}:</span>
|
||||||
|
@ -641,7 +641,7 @@ export default {
|
||||||
this.$post('/test/plan/edit/status/' + planId);
|
this.$post('/test/plan/edit/status/' + planId);
|
||||||
},
|
},
|
||||||
stepResultChange() {
|
stepResultChange() {
|
||||||
if (this.testCase.method === 'manual') {
|
if (this.testCase.method === 'manual' || !this.testCase.method) {
|
||||||
this.isFailure = this.testCase.steptResults.filter(s => {
|
this.isFailure = this.testCase.steptResults.filter(s => {
|
||||||
return s.executeResult === 'Failure' || s.executeResult === 'Blocking';
|
return s.executeResult === 'Failure' || s.executeResult === 'Blocking';
|
||||||
}).length > 0;
|
}).length > 0;
|
||||||
|
|
Loading…
Reference in New Issue