test(UI自动化): 增加测试计划生成报告日志
--bug=1021705 --user=张大海 【测试跟踪】测试计划-历史数据-多个任务不同时段执行-报告查看显示成功率0且无用例结果和结果失败 https://www.tapd.cn/55049933/s/1325310
This commit is contained in:
parent
a703c33ad3
commit
06b169f8d5
|
@ -27,6 +27,7 @@ import io.metersphere.request.report.QueryTestPlanReportRequest;
|
||||||
import io.metersphere.service.BaseUserService;
|
import io.metersphere.service.BaseUserService;
|
||||||
import io.metersphere.service.ServiceUtils;
|
import io.metersphere.service.ServiceUtils;
|
||||||
import io.metersphere.utils.DiscoveryUtil;
|
import io.metersphere.utils.DiscoveryUtil;
|
||||||
|
import io.metersphere.utils.LoggerUtil;
|
||||||
import io.metersphere.xpack.track.dto.IssuesDao;
|
import io.metersphere.xpack.track.dto.IssuesDao;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.collections.MapUtils;
|
import org.apache.commons.collections.MapUtils;
|
||||||
|
@ -378,6 +379,15 @@ public class TestPlanReportService {
|
||||||
returnDTO.setApiTestCaseDataMap(saveRequest.getApiCaseIdMap());
|
returnDTO.setApiTestCaseDataMap(saveRequest.getApiCaseIdMap());
|
||||||
returnDTO.setPerformanceIdMap(saveRequest.getPerformanceIdMap());
|
returnDTO.setPerformanceIdMap(saveRequest.getPerformanceIdMap());
|
||||||
returnDTO.setUiScenarioIdMap(saveRequest.getUiScenarioIdMap());
|
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;
|
return returnDTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue