mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
feat(测试跟踪): 测试方式自动时关联用例增加其它选项
This commit is contained in:
parent
efdc8e59c4
commit
559fcc3c71
@ -90,7 +90,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-row v-if="form.method && form.method == 'auto'">
|
||||
<el-col :span="10" :offset="1">
|
||||
<el-col :span="9" :offset="1">
|
||||
<el-form-item :label="$t('test_track.case.relate_test')" :label-width="formLabelWidth" prop="testId">
|
||||
<el-select filterable :disabled="readOnly" v-model="form.testId"
|
||||
:placeholder="$t('test_track.case.input_type')">
|
||||
@ -103,8 +103,12 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="9" :offset="1" v-if="form.testId=='other'">
|
||||
<el-form-item :label="$t('test_track.case.test_name')" :label-width="formLabelWidth" prop="testId">
|
||||
<el-input v-model="form.testName" :placeholder="$t('test_track.case.input_test_case')" ></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row style="margin-top: 15px;">
|
||||
<el-col :offset="2">{{$t('test_track.case.prerequisite')}}:</el-col>
|
||||
</el-row>
|
||||
@ -237,6 +241,7 @@
|
||||
method: '',
|
||||
prerequisite: '',
|
||||
testId: '',
|
||||
testName:'',
|
||||
steps: [{
|
||||
num: 1,
|
||||
desc: '',
|
||||
@ -446,6 +451,7 @@
|
||||
if (this.currentProject && this.form.type != '' && this.form.type != 'functional') {
|
||||
this.result = this.$get('/' + this.form.type + '/list/' + this.currentProject.id, response => {
|
||||
this.testOptions = response.data;
|
||||
this.testOptions.unshift({id:'other',name:this.$t('test_track.case.other')})
|
||||
});
|
||||
}
|
||||
},
|
||||
@ -491,6 +497,7 @@
|
||||
this.form.prerequisite = '';
|
||||
this.form.remark = '';
|
||||
this.form.testId = '';
|
||||
this.form.testName='';
|
||||
this.form.steps = [{
|
||||
num: 1,
|
||||
desc: '',
|
||||
|
@ -491,6 +491,9 @@ export default {
|
||||
execution_result: ": Please select the execution result",
|
||||
actual_result: ": The actual result is empty",
|
||||
case: {
|
||||
input_test_case:'Please enter the associated case name',
|
||||
test_name:'TestName',
|
||||
other:'--Other--',
|
||||
test_case: "Case",
|
||||
move: "Move case",
|
||||
case_list: "Test case list",
|
||||
|
@ -491,6 +491,9 @@ export default {
|
||||
actual_result: ": 实际结果为空",
|
||||
|
||||
case: {
|
||||
input_test_case:'请输入关联用例名称',
|
||||
test_name:'测试名称',
|
||||
other:"--其他--",
|
||||
test_case: "测试用例",
|
||||
move: "移动用例",
|
||||
case_list: "用例列表",
|
||||
|
@ -490,6 +490,9 @@ export default {
|
||||
execution_result: ": 請選擇執行結果",
|
||||
actual_result: ": 實際結果為空",
|
||||
case: {
|
||||
input_test_case:'請輸入關聯用例名稱',
|
||||
test_name:'測試名稱',
|
||||
other:'--其他--',
|
||||
test_case: "測試用例",
|
||||
move: "移動用例",
|
||||
case_list: "用例列表",
|
||||
|
Loading…
Reference in New Issue
Block a user