From 66e2b7843ce28153222e12eac017ff90537f3857 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 21 Feb 2023 16:45:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E4=B8=AD=E6=9C=89=E5=89=8D?= =?UTF-8?q?=E5=90=8E=E7=BD=AE=E8=84=9A=E6=9C=AC=E5=9C=BA=E6=99=AF=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=BB=9F=E8=AE=A1=E6=AD=A5=E9=AA=A4=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023541 --user=王孝刚 【接口测试】环境里有全局脚本,场景统计报告里会多统计一个请求 https://www.tapd.cn/55049933/s/1339869 --- .../src/main/java/io/metersphere/jmeter/JMeterBase.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/sdk-parent/jmeter/src/main/java/io/metersphere/jmeter/JMeterBase.java b/framework/sdk-parent/jmeter/src/main/java/io/metersphere/jmeter/JMeterBase.java index 3013a34a78..98ad0feebf 100644 --- a/framework/sdk-parent/jmeter/src/main/java/io/metersphere/jmeter/JMeterBase.java +++ b/framework/sdk-parent/jmeter/src/main/java/io/metersphere/jmeter/JMeterBase.java @@ -232,11 +232,6 @@ public class JMeterBase { } else { requestResults.add(requestResult); } - } else { - //全局前后置脚本的执行结果不影响场景执行结果,默认它们都是执行成功的 - requestResult.setError(0); - requestResult.setSuccess(true); - requestResults.add(requestResult); } } });