fix(接口测试): 修复执行误报的场景,执行结果为成功的缺陷

--bug=1019627 --user=王孝刚 【接口测试】场景执行结果是FakeError,但是报告列表和场景列表显示的都是success
https://www.tapd.cn/55049933/s/1295490
This commit is contained in:
wxg0103 2022-11-14 15:21:55 +08:00 committed by f2c-ci-robot[bot]
parent fefc70734c
commit 37e7e93cac
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class ReportStatusUtil {
// 默认状态 // 默认状态
String status = dto.getRequestResults().isEmpty() && StringUtils.isEmpty(resultVO.getStatus()) String status = dto.getRequestResults().isEmpty() && StringUtils.isEmpty(resultVO.getStatus())
? ApiReportStatus.PENDING.name() ? ApiReportStatus.PENDING.name()
: ApiReportStatus.SUCCESS.name(); : StringUtils.defaultIfEmpty(resultVO.getStatus(), ApiReportStatus.SUCCESS.name());
if (errorSize > 0) { if (errorSize > 0) {
status = ApiReportStatus.ERROR.name(); status = ApiReportStatus.ERROR.name();