fix(接口测试): 保存并执行为DEBUG模式

This commit is contained in:
chenjianxing 2020-11-30 14:41:29 +08:00
parent a3d98b5921
commit 9ca89babed
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ public class JMeterService {
Object scriptWrapper = SaveService.loadElement(is); Object scriptWrapper = SaveService.loadElement(is);
HashTree testPlan = getHashTree(scriptWrapper); HashTree testPlan = getHashTree(scriptWrapper);
JMeterVars.addJSR223PostProcessor(testPlan); JMeterVars.addJSR223PostProcessor(testPlan);
addBackendListener(testId, debugReportId, ApiRunMode.DEBUG.name(), testPlan); String runMode = StringUtils.isBlank(debugReportId) ? ApiRunMode.RUN.name() : ApiRunMode.DEBUG.name();
addBackendListener(testId, debugReportId, runMode, testPlan);
LocalRunner runner = new LocalRunner(testPlan); LocalRunner runner = new LocalRunner(testPlan);
runner.run(); runner.run();
} catch (Exception e) { } catch (Exception e) {