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 @@ + +