From b7900468e1619b28cfa1ee74ff5704c9af7ee313 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 22 Jan 2021 10:31:21 +0800 Subject: [PATCH 1/5] =?UTF-8?q?refactor:=20tcp=E6=B7=BB=E5=8A=A0=E6=96=AD?= =?UTF-8?q?=E8=A8=80=E7=AD=89=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../complete/EditCompleteTCPApi.vue | 2 +- .../components/ApiDefinitionStepButton.vue | 83 +++++++++++++++++++ .../request/http/ApiHttpRequestForm.vue | 81 +----------------- .../request/tcp/TcpBasisParameters.vue | 33 +++----- .../components/runtest/RunTestTCPPage.vue | 71 +++++++++------- .../definition/components/step/JmxStep.vue | 4 +- 6 files changed, 143 insertions(+), 131 deletions(-) create mode 100644 frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue index e2f0eb4a61..3253522333 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue @@ -22,7 +22,7 @@

{{ $t('api_test.definition.request.req_param') }}

- + diff --git a/frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue b/frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue new file mode 100644 index 0000000000..63fc721786 --- /dev/null +++ b/frontend/src/business/components/api/definition/components/request/components/ApiDefinitionStepButton.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue index f80c3ad55b..921ba00734 100644 --- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue +++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue @@ -71,35 +71,9 @@ - - - - - - - - - - - - - - - - - - - - +{{$t('api_test.definition.request.pre_script')}} -
- +{{$t('api_test.definition.request.post_script')}} -
- +{{$t('api_test.definition.request.assertions_rule')}} -
- +{{$t('api_test.definition.request.extract_param')}} -
+ @@ -120,10 +94,12 @@ import BatchAddParameter from "../../basis/BatchAddParameter"; import MsApiAdvancedConfig from "./ApiAdvancedConfig"; import MsJsr233Processor from "../../../../automation/scenario/component/Jsr233Processor"; + import ApiDefinitionStepButton from "../components/ApiDefinitionStepButton"; export default { name: "MsApiHttpRequestForm", components: { + ApiDefinitionStepButton, MsJsr233Processor, MsApiAdvancedConfig, BatchAddParameter, @@ -194,26 +170,6 @@ }, methods: { - addPre() { - let jsr223PreProcessor = createComponent("JSR223PreProcessor"); - this.request.hashTree.push(jsr223PreProcessor); - this.reload(); - }, - addPost() { - let jsr223PostProcessor = createComponent("JSR223PostProcessor"); - this.request.hashTree.push(jsr223PostProcessor); - this.reload(); - }, - addAssertions() { - let assertions = new Assertions(); - this.request.hashTree.push(assertions); - this.reload(); - }, - addExtract() { - let jsonPostProcessor = new Extract(); - this.request.hashTree.push(jsonPostProcessor); - this.reload(); - }, remove(row) { let index = this.request.hashTree.indexOf(row); this.request.hashTree.splice(index, 1); @@ -289,13 +245,6 @@ From b0fa695c29698b4d894c8a0352fa60fa14290433 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 22 Jan 2021 11:39:36 +0800 Subject: [PATCH 5/5] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20=E5=8E=BB=E6=8E=89=E5=85=B3=E8=81=94=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E9=A1=B5=E9=9D=A2=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E6=A8=A1=E5=9D=97=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/load/TestCaseLoadRelevance.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/load/TestCaseLoadRelevance.vue b/frontend/src/business/components/track/plan/view/comonents/load/TestCaseLoadRelevance.vue index 8d78de1771..ad0e39f6f1 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/TestCaseLoadRelevance.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/TestCaseLoadRelevance.vue @@ -226,10 +226,7 @@ export default { if (projectId) { this.projectId = projectId; } - this.$refs.nodeTree.result = this.$post("/case/node/list/all/plan", - {testPlanId: this.planId, projectId: this.projectId}, response => { - this.treeNodes = response.data; - }); + this.treeNodes = []; this.selectNodeIds = []; } }