fix(性能测试): 修复性能测试修改绝对路径时没有考虑csv分割的问题

This commit is contained in:
CaptainB 2022-05-13 17:26:04 +08:00 committed by 刘瑞斌
parent 777e7ff58a
commit b738014026
1 changed files with 1 additions and 0 deletions

View File

@ -244,6 +244,7 @@ public class JmeterDocumentParser implements EngineSourceParser {
private void splitCsvFile(Node item) { private void splitCsvFile(Node item) {
String filename = item.getText(); String filename = item.getText();
filename = StringUtils.removeStart(filename, "/test/");
// 已经分割过的不再二次分割 // 已经分割过的不再二次分割
if (BooleanUtils.toBoolean(context.getSplitFlag().get(filename))) { if (BooleanUtils.toBoolean(context.getSplitFlag().get(filename))) {
return; return;