From 2ae0d0ab543dc9fcd6469f2a0e49638019b9828f Mon Sep 17 00:00:00 2001 From: mmagi Date: Sat, 25 Mar 2023 23:04:55 +0800 Subject: [PATCH] feat: support extra global params per testsuite --- src/components/TestSuiteUpdate.vue | 66 ++++++++++++++++++++++++++++++ src/locales/lang/en_US.js | 1 + src/locales/lang/ja_JP.js | 1 + src/locales/lang/zh_CN.js | 1 + src/locales/lang/zh_TW.js | 1 + 5 files changed, 70 insertions(+) diff --git a/src/components/TestSuiteUpdate.vue b/src/components/TestSuiteUpdate.vue index 3b764637..f8a45f2c 100644 --- a/src/components/TestSuiteUpdate.vue +++ b/src/components/TestSuiteUpdate.vue @@ -73,6 +73,10 @@ const testSuite = ref({ devices: [], testCases: [], }); +const paramEditor = ref({ + idx: 0, + data: {}, +}); const deviceData = ref([]); const deviceDataBack = ref([]); const getDevice = () => { @@ -417,6 +421,68 @@ onMounted(() => { + + + + + + + + + + + + + + + + + + +
+ {{ + $t('form.confirm') + }} +
+
+
diff --git a/src/locales/lang/en_US.js b/src/locales/lang/en_US.js index ed2dceff..1d41ae87 100644 --- a/src/locales/lang/en_US.js +++ b/src/locales/lang/en_US.js @@ -35,6 +35,7 @@ const suite = { devicePlace: 'Please select the devices. You can enter the model, remarks, name and serial number to filter', selectedCase: 'Selected Cases', + testSuiteGlobalParams: 'Extra parameters', }; const testcase = { info: 'Case Info', diff --git a/src/locales/lang/ja_JP.js b/src/locales/lang/ja_JP.js index 6b5dfa7e..552787ee 100644 --- a/src/locales/lang/ja_JP.js +++ b/src/locales/lang/ja_JP.js @@ -33,6 +33,7 @@ const suite = { interval: '采集间隔', devicePlace: '请选择测试设备,可输入型号、备注、中文名称、序列号筛选', selectedCase: '已选用例', + testSuiteGlobalParams: '附加参数', }; const testcase = { info: '用例信息', diff --git a/src/locales/lang/zh_CN.js b/src/locales/lang/zh_CN.js index d052ac18..c13098e6 100644 --- a/src/locales/lang/zh_CN.js +++ b/src/locales/lang/zh_CN.js @@ -33,6 +33,7 @@ const suite = { interval: '采集间隔', devicePlace: '请选择测试设备,可输入型号、备注、中文名称、序列号筛选', selectedCase: '已选用例', + testSuiteGlobalParams: '附加参数', }; const testcase = { info: '用例信息', diff --git a/src/locales/lang/zh_TW.js b/src/locales/lang/zh_TW.js index 575f6b7b..f1f1851d 100644 --- a/src/locales/lang/zh_TW.js +++ b/src/locales/lang/zh_TW.js @@ -33,6 +33,7 @@ const suite = { interval: '采集间隔', devicePlace: '请选择测试设备,可输入型号、备注、中文名称、序列号筛选', selectedCase: '已选用例', + testSuiteGlobalParams: '附加参数', }; const testcase = { info: '用例信息',