From 032b9e16e19bb903b50a6253446762042ee1fbe4 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 3 Mar 2021 17:48:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8Djmx=E5=AF=BC=E5=85=A5=20?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E8=A7=84=E5=88=99=E5=A4=84=E7=90=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/api/dto/automation/parse/MsJmeterParser.java | 4 ++-- .../api/definition/components/assertion/ApiAssertions.vue | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java index 1aef53d6dd..905cfca561 100644 --- a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java @@ -472,13 +472,13 @@ public class MsJmeterParser extends ApiImportAbstractParser { if (assertion.getTestStrings() != null && !assertion.getTestStrings().isEmpty()) { assertionRegex.setExpression(assertion.getTestStrings().get(0).getStringValue()); } - if (assertion.isTestFieldRequestData()) { + if (assertion.isTestFieldResponseData()) { assertionRegex.setSubject("Response Data"); } if (assertion.isTestFieldResponseCode()) { assertionRegex.setSubject("Response Code"); } - if (assertion.isTestFieldRequestHeaders()) { + if (assertion.isTestFieldResponseHeaders()) { assertionRegex.setSubject("Response Headers"); } assertions.setName(assertion.getName()); diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue index 3bf78dbd8c..029ee6bcbd 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue @@ -16,6 +16,7 @@ + @@ -24,6 +25,9 @@ + +