From b37d6a15f268e9b35035410da88ac78dfa7b09e9 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 11 Aug 2020 11:15:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=89=E6=8B=A9raw=E7=B1=BB=E5=9E=8Bb?= =?UTF-8?q?ody=E5=90=8E=EF=BC=8C=E5=88=87=E6=8D=A2=E6=88=90kv=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A4=B4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/test/model/ScenarioModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/test/model/ScenarioModel.js b/frontend/src/business/components/api/test/model/ScenarioModel.js index 7118bebc61..10800fcb9d 100644 --- a/frontend/src/business/components/api/test/model/ScenarioModel.js +++ b/frontend/src/business/components/api/test/model/ScenarioModel.js @@ -650,7 +650,7 @@ const JMX_ASSERTION_CONDITION = { class JMXHttpRequest { constructor(request, environment) { - if (request && request instanceof HttpRequest && (request.url || request.path)) { + if (request && request instanceof HttpRequest) { this.useEnvironment = request.useEnvironment; this.method = request.method; if (!request.useEnvironment) { @@ -843,7 +843,7 @@ class JMXGenerator { addBodyFormat(request) { let bodyFormat = request.body.format; - if (bodyFormat) { + if (!request.body.isKV() && bodyFormat) { switch (bodyFormat) { case BODY_FORMAT.JSON: this.addContentType(request, 'application/json');