parent
193f807f94
commit
e4cb8647d5
|
@ -366,7 +366,7 @@ public class TestCaseService {
|
||||||
data.setStepResult("");
|
data.setStepResult("");
|
||||||
data.setRemark(t.getPerformName());
|
data.setRemark(t.getPerformName());
|
||||||
}
|
}
|
||||||
data.setMaintainer(user.getId());
|
data.setMaintainer(t.getMaintainer());
|
||||||
list.add(data);
|
list.add(data);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -72,12 +72,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formInline: {
|
formInline: {
|
||||||
/*host: 'smtp.163.com',
|
|
||||||
port: '465',
|
|
||||||
account: 'xjj0608@163.com',
|
|
||||||
password: '2345678',*/
|
|
||||||
},
|
},
|
||||||
|
|
||||||
input: '',
|
input: '',
|
||||||
visible: true,
|
visible: true,
|
||||||
result: {},
|
result: {},
|
||||||
|
@ -113,7 +108,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
activated() {
|
created() {
|
||||||
this.query()
|
this.query()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -129,6 +124,9 @@
|
||||||
this.$set(this.formInline, "SSL", JSON.parse(response.data[4].paramValue));
|
this.$set(this.formInline, "SSL", JSON.parse(response.data[4].paramValue));
|
||||||
this.$set(this.formInline, "TLS", JSON.parse(response.data[5].paramValue));
|
this.$set(this.formInline, "TLS", JSON.parse(response.data[5].paramValue));
|
||||||
this.$set(this.formInline, "SMTP", JSON.parse(response.data[6].paramValue));
|
this.$set(this.formInline, "SMTP", JSON.parse(response.data[6].paramValue));
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.formInline.clearValidate();
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
change() {
|
change() {
|
||||||
|
|
|
@ -88,6 +88,10 @@
|
||||||
<span class="cast_label">{{$t('test_track.case.module')}}:</span>
|
<span class="cast_label">{{$t('test_track.case.module')}}:</span>
|
||||||
<span class="cast_item">{{testCase.nodePath}}</span>
|
<span class="cast_item">{{testCase.nodePath}}</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="4" :offset="1">
|
||||||
|
<span class="cast_label">{{$t('test_track.case.prerequisite')}}:</span>
|
||||||
|
<span class="cast_item">{{testCase.prerequisite}}</span>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row v-if="testCase.method == 'auto' && testCase.testId">
|
<el-row v-if="testCase.method == 'auto' && testCase.testId">
|
||||||
|
@ -121,17 +125,18 @@
|
||||||
:default-sort="{prop: 'num', order: 'ascending'}"
|
:default-sort="{prop: 'num', order: 'ascending'}"
|
||||||
highlight-current-row>
|
highlight-current-row>
|
||||||
<el-table-column :label="$t('test_track.case.number')" prop="num" min-width="5%"></el-table-column>
|
<el-table-column :label="$t('test_track.case.number')" prop="num" min-width="5%"></el-table-column>
|
||||||
<el-table-column :label="$t('test_track.case.step_desc')" prop="desc" min-width="29%">
|
|
||||||
|
<el-table-column :label="$t('test_track.case.step_desc')" prop="desc" min-width="21%">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span>{{scope.row.desc}}</span>
|
<span>{{scope.row.desc}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="28%">
|
<el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="21%">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span>{{scope.row.result}}</span>
|
<span>{{scope.row.result}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('test_track.plan_view.actual_result')" min-width="29%">
|
<el-table-column :label="$t('test_track.plan_view.actual_result')" min-width="21%">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<el-input
|
<el-input
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -145,7 +150,7 @@
|
||||||
<span>{{scope.row.actualResult}}</span>
|
<span>{{scope.row.actualResult}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('test_track.plan_view.step_result')" min-width="9%">
|
<el-table-column :label="$t('test_track.plan_view.step_result')" min-width="12%">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="isReadOnly"
|
:disabled="isReadOnly"
|
||||||
|
@ -297,15 +302,6 @@
|
||||||
+ this.$t('test_track.length_less_than') + '300');
|
+ this.$t('test_track.length_less_than') + '300');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.testCase.method != 'auto') {
|
|
||||||
if (!result.executeResult) {
|
|
||||||
this.$warning(this.testCase.steptResults[i].desc + this.$t('test_track.execution_result')
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
param.results.push(result);
|
param.results.push(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,8 @@
|
||||||
priorityFilters: [
|
priorityFilters: [
|
||||||
{text: 'P0', value: 'P0'},
|
{text: 'P0', value: 'P0'},
|
||||||
{text: 'P1', value: 'P1'},
|
{text: 'P1', value: 'P1'},
|
||||||
{text: 'P2', value: 'P2'}
|
{text: 'P2', value: 'P2'},
|
||||||
|
{text: 'P3', value: 'P3'}
|
||||||
],
|
],
|
||||||
methodFilters: [
|
methodFilters: [
|
||||||
{text: this.$t('test_track.case.manual'), value: 'manual'},
|
{text: this.$t('test_track.case.manual'), value: 'manual'},
|
||||||
|
|
Loading…
Reference in New Issue