修复场景名称被改变的bug

This commit is contained in:
q4speed 2020-05-29 18:08:30 +08:00
parent aad9d64a7a
commit 2a5c5815e2
1 changed files with 3 additions and 1 deletions

View File

@ -394,7 +394,9 @@ class JMXGenerator {
}
addScenarios(testPlan, scenarios) {
scenarios.forEach(scenario => {
scenarios.forEach(options => {
// clone
let scenario = new Scenario(options);
scenario.name = this.replace(scenario.name);
let threadGroup = new ThreadGroup(scenario.name || "");