From f7097fe42eda5515ae7f0e08d95ae7ea0c87d55c Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Mon, 26 Dec 2022 17:27:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=92=8C=E5=9C=BA=E6=99=AF=E8=BD=AC=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=97=B6=E4=BC=9A=E5=81=B6=E5=8F=91=E9=87=8D?= =?UTF-8?q?=E5=A4=8Djmx=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021243 --user=宋天阳 【接口测试】接口用例转性能后,再用场景转性能测试,还是显示的接口用例的内容 https://www.tapd.cn/55049933/s/1319525 --- .../src/business/automation/scenario/ScenarioExtendBtns.vue | 1 + .../business/definition/components/list/ApiCaseSimpleList.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/automation/scenario/ScenarioExtendBtns.vue b/api-test/frontend/src/business/automation/scenario/ScenarioExtendBtns.vue index f4ee0a7893..3cc71eba43 100644 --- a/api-test/frontend/src/business/automation/scenario/ScenarioExtendBtns.vue +++ b/api-test/frontend/src/business/automation/scenario/ScenarioExtendBtns.vue @@ -78,6 +78,7 @@ export default { jmxObj.attachFiles = jmxInfo.attachFiles; jmxObj.attachByteFiles = jmxInfo.attachByteFiles; jmxObj.scenarioId = row.id; + jmxObj.caseId = null; jmxObj.version = row.version; jmxObj.projectEnvMap = projectEnvMap; performanceStore.$patch({ test: { name: row.name, jmx: jmxObj } }); diff --git a/api-test/frontend/src/business/definition/components/list/ApiCaseSimpleList.vue b/api-test/frontend/src/business/definition/components/list/ApiCaseSimpleList.vue index 03aa298dba..0cb52f6a16 100644 --- a/api-test/frontend/src/business/definition/components/list/ApiCaseSimpleList.vue +++ b/api-test/frontend/src/business/definition/components/list/ApiCaseSimpleList.vue @@ -1433,6 +1433,7 @@ export default { jmxObj.attachFiles = jmxInfo.attachFiles; jmxObj.attachByteFiles = jmxInfo.attachByteFiles; jmxObj.caseId = reqObj.id; + jmxObj.scenarioId = null; jmxObj.version = row.version; jmxObj.envId = environment.id; jmxObj.projectEnvMap = projectEnvMap; @@ -1442,7 +1443,7 @@ export default { }); } }) - .catch((error) => { + .catch(() => { this.$emit('runRefresh', {}); }); },