refactor(性能测试): 修复单位错误

This commit is contained in:
Captain.B 2020-11-30 17:07:20 +08:00
parent 1ad6aefc7d
commit 57b86dd2ef
1 changed files with 2 additions and 2 deletions

View File

@ -785,7 +785,7 @@ public class JmeterDocumentParser implements DocumentParser {
threadGroup.appendChild(createStringProp(document, "LogFilename", ""));
// bzm - Concurrency Thread Group "Thread Iterations Limit:" 设置为空
// threadGroup.appendChild(createStringProp(document, "Iterations", "1"));
threadGroup.appendChild(createStringProp(document, "Unit", "M"));
threadGroup.appendChild(createStringProp(document, "Unit", "S"));
}
private void processCheckoutTimer(Element element) {
@ -912,7 +912,7 @@ public class JmeterDocumentParser implements DocumentParser {
} else {
duration = (Integer) durations;
}
prop.getFirstChild().setNodeValue(String.valueOf(duration * 60));
prop.getFirstChild().setNodeValue(String.valueOf(duration));
continue;
}
Object rpsLimits = context.getProperty("rpsLimit");