From b6f04acf38fe66cd12ee98e9f38513aafb0227d3 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 29 Aug 2022 15:32:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=93=8D=E5=BA=94=E7=A0=81=E6=96=AD=E8=A8=80=E6=97=B6?= =?UTF-8?q?dom=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016342 --user=刘瑞斌 【 性能测试】github #17293,性能测试-高级配置中配置了自定义响应码后,errors中仍显示配置的响应码 https://www.tapd.cn/55049933/s/1235052 Closes #17293 --- .../performance/parse/xml/reader/JmeterDocumentParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java index 16d273aa42..a0f7f8c855 100644 --- a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java @@ -31,6 +31,7 @@ public class JmeterDocumentParser implements EngineSourceParser { private final static String STRING_PROP = "stringProp"; private final static String ELEMENT_PROP = "elementProp"; private final static String BOOL_PROP = "boolProp"; + private final static String INT_PROP = "intProp"; private final static String COLLECTION_PROP = "collectionProp"; private final static String CONCURRENCY_THREAD_GROUP = "com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup"; private final static String VARIABLE_THROUGHPUT_TIMER = "kg.apc.jmeter.timers.VariableThroughputTimer"; @@ -547,7 +548,7 @@ public class JmeterDocumentParser implements EngineSourceParser { } private void appendIntProp(Element ele, String name, int value) { - Element intProp = ele.addElement(BOOL_PROP); + Element intProp = ele.addElement(INT_PROP); intProp.addAttribute("name", name); intProp.setText(String.valueOf(value)); }