fix(接口测试): 修复并发插件执行报告存储问题

This commit is contained in:
fit2-zhao 2021-11-29 17:19:53 +08:00 committed by fit2-zhao
parent 06596d33d2
commit 568bb275e4
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ public class MsResultService {
public void formatTestResult(TestResult testResult, Map<String, ScenarioResult> scenarios, SampleResult result) {
String scenarioName = StringUtils.substringBeforeLast(result.getThreadName(), THREAD_SPLIT);
if (StringUtils.equals(scenarioName, "parallel")) {
scenarioName = testResult.getTestId();
}
ScenarioResult scenarioResult;
if (!scenarios.containsKey(scenarioName)) {
scenarioResult = new ScenarioResult();