fix(接口测试): 修复CASE执行未发消息问题

This commit is contained in:
fit2-zhao 2022-04-28 13:21:18 +08:00 committed by 刘瑞斌
parent adc19d2161
commit c7cdeaec88

View File

@ -85,6 +85,7 @@ public class ApiDefinitionExecResultService {
ApiDefinitionExecResult result = this.editResult(item, dto.getReportId(), dto.getConsole(), dto.getRunMode(), dto.getTestId(), null);
if (result != null) {
// 发送通知
result.setResourceId(dto.getTestId());
sendNotice(result);
}
//删除用例运行时存放在redis中的用户数据
@ -118,6 +119,7 @@ public class ApiDefinitionExecResultService {
if (result != null && !StringUtils.startsWithAny(dto.getRunMode(), "SCHEDULE")) {
// 发送通知
result.setResourceId(dto.getTestId());
sendNotice(result);
}
//删除用例运行时存放在redis中的用户数据