fix(性能测试): 修复执行过程包括CSV,部分参数没有初始化的问题

--bug=1022153 --user=刘瑞斌 [BUG]github#21147性能测试测试场景高级设置选择 csv 分割,性能测试场景无法运行 https://www.tapd.cn/55049933/s/1329694

Closes #21147
This commit is contained in:
CaptainB 2023-02-01 13:14:49 +08:00 committed by 刘瑞斌
parent 2c3aed1252
commit 646881e736
1 changed files with 2 additions and 2 deletions

View File

@ -263,8 +263,8 @@ public class JmeterDocumentParser implements EngineSourceParser {
if (!BooleanUtils.toBoolean(csvSplit)) {
return;
}
boolean csvHasHeader = (Boolean) ((Map) (config)).get("csvHasHeader");
if (csvHasHeader) {
Boolean csvHasHeader = (Boolean) ((Map) (config)).get("csvHasHeader");
if (BooleanUtils.toBoolean(csvHasHeader)) {
String header = tokenizer.nextToken();
csv.append(header).append(StringUtils.LF);
}