fix(接口自动化): 接口自动化通知支持显示环境

--bug=1007801 --user=刘瑞斌 【接口测试】接口自动化定时任务通知模版增加“测试环境”变量 https://www.tapd.cn/55049933/s/1073013
This commit is contained in:
CaptainB 2021-11-23 17:45:06 +08:00 committed by 刘瑞斌
parent f42f4aaf2d
commit 01c6287d6c

View File

@ -92,7 +92,7 @@ public class TestResultService {
ApiScenarioReport scenarioReport = apiScenarioReportService.complete(testResult, runMode);
//环境
if (scenarioReport != null) {
ApiScenarioWithBLOBs apiScenario = apiAutomationService.getDto(scenarioReport.getScenarioId());
ApiScenarioWithBLOBs apiScenario = apiAutomationService.getApiScenario(scenarioReport.getScenarioId());
String environment = "";
//执行人
String userName = "";