fix(性能测试): 修复性能测试增加响应码断言时dom错误

--bug=1016342 --user=刘瑞斌 【 性能测试】github #17293,性能测试-高级配置中配置了自定义响应码后,errors中仍显示配置的响应码 https://www.tapd.cn/55049933/s/1235052

Closes #17293
This commit is contained in:
CaptainB 2022-08-29 15:32:09 +08:00 committed by 刘瑞斌
parent f228f5d2a8
commit b6f04acf38
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}