From c7237be7e9b88d9a2e0b0a02236a1139177da4ec Mon Sep 17 00:00:00 2001 From: liangdaliang Date: Thu, 6 Mar 2025 17:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E7=BC=96?= =?UTF-8?q?=E6=8E=92=E2=80=9C=E6=8F=90=E5=8F=96=E2=80=9D=E5=92=8C=E2=80=9C?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E2=80=9D=E5=A1=AB=E5=86=99=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=9A=84bug=E4=BB=A5=E5=8F=8A=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=8B=96=E6=9B=B3=E6=8E=92=E5=BA=8F=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E3=80=81=E5=90=8E=E7=AB=AF=E6=8B=BC=E6=8E=A5url=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TestCaseStepServiceImpl.java | 4 ++++ test-ui/src/views/test/case/detail/page1.vue | 16 ++++++++++++++++ test-ui/src/views/test/case/detail/step.vue | 14 +++++++------- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/test-test/src/main/java/com/test/test/service/impl/TestCaseStepServiceImpl.java b/test-test/src/main/java/com/test/test/service/impl/TestCaseStepServiceImpl.java index d2a31e0..c8b6a4d 100644 --- a/test-test/src/main/java/com/test/test/service/impl/TestCaseStepServiceImpl.java +++ b/test-test/src/main/java/com/test/test/service/impl/TestCaseStepServiceImpl.java @@ -137,6 +137,10 @@ public class TestCaseStepServiceImpl implements ITestCaseStepService { log.error("不支持的请求方式:{}", method); return null; } + if (!url.startsWith("http")) { + String apiProtocol = testCaseStep.getApiProtocol(); + url = apiProtocol + "://" + url; + } JmeterRequest jmeterRequest = new JmeterRequest(); jmeterRequest.setId(id); jmeterRequest.setUrl(url); diff --git a/test-ui/src/views/test/case/detail/page1.vue b/test-ui/src/views/test/case/detail/page1.vue index 19019f5..8724244 100644 --- a/test-ui/src/views/test/case/detail/page1.vue +++ b/test-ui/src/views/test/case/detail/page1.vue @@ -293,6 +293,22 @@ export default { }) } } + if (flag === "assignment") { + if (e && this.form.assignment.length === scope.$index + 1) { + this.form.assignment.push({ + key: "", + value: "" + }) + } + } + if (flag === "assertion") { + if (e && this.form.assertion.length === scope.$index + 1) { + this.form.assertion.push({ + key: "", + value: "" + }) + } + } }, handleDelete(flag, scope) { if (flag === "header") { diff --git a/test-ui/src/views/test/case/detail/step.vue b/test-ui/src/views/test/case/detail/step.vue index 1ccee85..3c22d80 100644 --- a/test-ui/src/views/test/case/detail/step.vue +++ b/test-ui/src/views/test/case/detail/step.vue @@ -11,15 +11,15 @@
- + 删除