From 037a115c5057e8ac718f32d06b57351d62dea79d Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 2 Sep 2021 11:04:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8DPython=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=97=AE=E9=A2=98=20--bug=3D1006328=20--user?= =?UTF-8?q?=3D=E8=B5=B5=E5=8B=87=20=E3=80=90github#5787=E3=80=91=E6=96=AD?= =?UTF-8?q?=E8=A8=80=E8=A7=84...=20https://www.tapd.cn/55049933/s/1042946?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../definition/components/assertion/ApiAssertionJsr223.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue index ac5d3feefa..8942e7e037 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue @@ -249,9 +249,9 @@ break; } script += - "\tmsg = \" " + msg + "\";" + - "\tAssertionResult.setFailureMessage(msg);" + - "\tAssertionResult.setFailure(true);"; + "\tmsg = \" " + msg + "\"\n" + + "\tAssertionResult.setFailureMessage(msg)" +"\n"+ + "\tAssertionResult.setFailure(True)"; this.assertion.desc = desc; this.assertion.script = script;