fix(测试跟踪): 脑图用例校验问题
--bug=1015664 --user=宋昌昌 【测试跟踪】脑图模式添加用例,前置条件/备注添加多个仍可以保存 https://www.tapd.cn/55049933/s/1221877
This commit is contained in:
parent
0d1c7feb44
commit
48c2dcee1d
|
@ -464,6 +464,14 @@ name: "TestCaseMinder",
|
||||||
let steps = [];
|
let steps = [];
|
||||||
let stepNum = 1;
|
let stepNum = 1;
|
||||||
if (node.children) {
|
if (node.children) {
|
||||||
|
let prerequisiteNodes = node.children.filter(childNode => childNode.data.resource && childNode.data.resource.indexOf(this.$t('test_track.case.prerequisite')) > -1);
|
||||||
|
if (prerequisiteNodes.length > 1) {
|
||||||
|
this.throwError('[' + testCase.name + ']' + this.$t('test_track.case.exists_multiple_prerequisite_node'));
|
||||||
|
}
|
||||||
|
let remarkNodes = node.children.filter(childNode => childNode.data.resource && childNode.data.resource.indexOf(this.$t('commons.remark')) > -1);
|
||||||
|
if (remarkNodes.length > 1) {
|
||||||
|
this.throwError('[' + testCase.name + ']' + this.$t('test_track.case.exists_multiple_remark_node'));
|
||||||
|
}
|
||||||
node.children.forEach((childNode) => {
|
node.children.forEach((childNode) => {
|
||||||
let childData = childNode.data;
|
let childData = childNode.data;
|
||||||
if (childData.type === 'issue') return;
|
if (childData.type === 'issue') return;
|
||||||
|
|
|
@ -2213,7 +2213,9 @@ export default {
|
||||||
export_tip: "Switch to Case List and check Use Case Export"
|
export_tip: "Switch to Case List and check Use Case Export"
|
||||||
},
|
},
|
||||||
case_desc: "Case Desc",
|
case_desc: "Case Desc",
|
||||||
passing_rate: 'Case Pass Rate'
|
passing_rate: 'Case Pass Rate',
|
||||||
|
exists_multiple_prerequisite_node: "Exists multiple precondition node",
|
||||||
|
exists_multiple_remark_node: "Exists multiple remark node",
|
||||||
},
|
},
|
||||||
plan: {
|
plan: {
|
||||||
test_plan: "Plan",
|
test_plan: "Plan",
|
||||||
|
|
|
@ -2213,6 +2213,8 @@ export default {
|
||||||
passing_rate: '用例通过率',
|
passing_rate: '用例通过率',
|
||||||
version: "版本",
|
version: "版本",
|
||||||
sync_to_new_version: "复制以下信息到新版本",
|
sync_to_new_version: "复制以下信息到新版本",
|
||||||
|
exists_multiple_prerequisite_node: "下存在多个前置条件",
|
||||||
|
exists_multiple_remark_node: "下存在多个备注",
|
||||||
},
|
},
|
||||||
plan: {
|
plan: {
|
||||||
test_plan: "测试计划",
|
test_plan: "测试计划",
|
||||||
|
|
|
@ -2207,6 +2207,8 @@ export default {
|
||||||
case_desc: "用例描述",
|
case_desc: "用例描述",
|
||||||
passing_rate: '用例通過率',
|
passing_rate: '用例通過率',
|
||||||
sync_to_new_version: "復製以下信息到新版本",
|
sync_to_new_version: "復製以下信息到新版本",
|
||||||
|
exists_multiple_prerequisite_node: "下存在多個前置條件",
|
||||||
|
exists_multiple_remark_node: "下存在多個備註"
|
||||||
},
|
},
|
||||||
plan: {
|
plan: {
|
||||||
test_plan: "測試計劃",
|
test_plan: "測試計劃",
|
||||||
|
|
Loading…
Reference in New Issue