fix(接口测试): 优化误报编码样式

--bug=1011596 --user=宋天阳 【接口测试】场景执行-误报-响应码和误报描述未对齐显示
https://www.tapd.cn/55049933/s/1124057
This commit is contained in:
song-tianyang 2022-03-23 10:41:52 +08:00 committed by 刘瑞斌
parent e384e17a72
commit a8d28b9570
2 changed files with 5 additions and 1 deletions

View File

@ -228,6 +228,10 @@ public class ApiTestCaseService {
if (updateUser != null) { if (updateUser != null) {
caseResult.setUpdateUser(updateUser.getName()); caseResult.setUpdateUser(updateUser.getName());
} }
//检查用例的执行状态是否是null如果报告被删除 如果执行结果是null取记录最后执行状态的status字段
if(caseResult.getExecResult() == null && StringUtils.isNotEmpty(caseResult.getStatus()) && !StringUtils.equalsIgnoreCase(caseResult.getStatus(),"trash")){
caseResult.setExecResult(caseResult.getStatus());
}
}); });
} }
} }

View File

@ -19,7 +19,7 @@
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }} {{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
</div> </div>
<div v-if="response && response.attachInfoMap && response.attachInfoMap.errorReportResult"> <div v-if="response && response.attachInfoMap && response.attachInfoMap.errorReportResult">
<div class="ms-req-error-report-result"> <div class="node-title ms-req-error-report-result" style="margin-left: 0px;padding-left: 0px">
{{ response.attachInfoMap.errorReportResult }} {{ response.attachInfoMap.errorReportResult }}
</div> </div>
</div> </div>