fix(接口测试): 修复用例执行人错误问题
--bug=1009206 --user=赵勇 [github#8774]API Case执行人错误 https://www.tapd.cn/55049933/s/1088238
This commit is contained in:
parent
0ab3f6d1b6
commit
ec267cf8c9
|
@ -327,10 +327,6 @@ public class ApiDefinitionExecResultService {
|
||||||
saveResult.setName(item.getName());
|
saveResult.setName(item.getName());
|
||||||
saveResult.setType(type);
|
saveResult.setType(type);
|
||||||
saveResult.setCreateTime(item.getStartTime());
|
saveResult.setCreateTime(item.getStartTime());
|
||||||
if (SessionUtils.getUser() != null) {
|
|
||||||
saveResult.setUserId(SessionUtils.getUser().getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
String status = item.isSuccess() ? "success" : "error";
|
String status = item.isSuccess() ? "success" : "error";
|
||||||
saveResult.setName(editStatus(type, status, saveResult.getCreateTime(), saveResult.getId(), testId));
|
saveResult.setName(editStatus(type, status, saveResult.getCreateTime(), saveResult.getId(), testId));
|
||||||
saveResult.setStatus(status);
|
saveResult.setStatus(status);
|
||||||
|
|
Loading…
Reference in New Issue