test(UI自动化): 增加测试计划生成报告日志

--bug=1021705 --user=张大海 【测试跟踪】测试计划-历史数据-多个任务不同时段执行-报告查看显示成功率0且无用例结果和结果失败 https://www.tapd.cn/55049933/s/1325310
This commit is contained in:
zhangdahai112 2023-01-10 16:11:16 +08:00 committed by zhangdahai112
parent b38a484f3f
commit 4be6c1365c
1 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import io.metersphere.request.report.QueryTestPlanReportRequest;
import io.metersphere.service.BaseUserService;
import io.metersphere.service.ServiceUtils;
import io.metersphere.utils.DiscoveryUtil;
import io.metersphere.utils.LoggerUtil;
import io.metersphere.xpack.track.dto.IssuesDao;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
@ -378,6 +379,15 @@ public class TestPlanReportService {
returnDTO.setApiTestCaseDataMap(saveRequest.getApiCaseIdMap());
returnDTO.setPerformanceIdMap(saveRequest.getPerformanceIdMap());
returnDTO.setUiScenarioIdMap(saveRequest.getUiScenarioIdMap());
String debugMsg = String.format(
"生成测试计划报告!id:【%s】,PlanScenarioIdMap:【%s】,ApiTestCaseDataMap:【%s】,PerformanceIdMap:【%s】,UiScenarioIdMap:【%s】",
planReportId,
JSON.toJSONString(saveRequest.getScenarioIdMap()),
JSON.toJSONString(saveRequest.getApiCaseIdMap()),
JSON.toJSONString(saveRequest.getPerformanceIdMap()),
JSON.toJSONString(saveRequest.getUiScenarioIdMap()));
LoggerUtil.info(debugMsg);
return returnDTO;
}