fix(接口测试): 去除自动清理用例结果,统一放到测试报告中清理

This commit is contained in:
fit2-zhao 2022-02-18 14:59:14 +08:00 committed by xiaomeinvG
parent 7baf292495
commit e1919e8938
1 changed files with 0 additions and 6 deletions

View File

@ -358,12 +358,6 @@ public class ApiDefinitionExecResultService {
saveResult.setResourceId(item.getName());
saveResult.setStartTime(item.getStartTime());
saveResult.setEndTime(item.getEndTime());
// 清空上次执行结果的内容只保留近五条结果
ApiDefinitionExecResult prevResult = extApiDefinitionExecResultMapper.selectMaxResultByResourceIdAndType(item.getName(), type);
if (prevResult != null) {
prevResult.setContent(null);
apiDefinitionExecResultMapper.updateByPrimaryKeySelective(prevResult);
}
if (StringUtils.isNotEmpty(saveResult.getTriggerMode()) && saveResult.getTriggerMode().equals("CASE")) {
saveResult.setTriggerMode(TriggerMode.MANUAL.name());