REM:
1. 添加askController QA测试用例中停止某处置IP的处置任务的异常用例测试代码
This commit is contained in:
chenlinghy 2020-05-09 15:17:56 +08:00
parent f2a1788eae
commit e98d71bd2c
1 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ public class TaskControllerSmokeTest extends InitTestEnvironment {
List<TaskInfoData> taskInfoList = startTaskRsp.getItems();
for (TaskInfoData task : taskInfoList
) {
Assert.assertNotNull(task.getTaskId());
Assert.assertNotNull(task.getId());
Assert.assertNotNull(task.getTaskId());
Assert.assertNotNull(task.getStartTime());
Assert.assertNotNull(task.getDisposeTime());
@ -204,8 +204,8 @@ public class TaskControllerSmokeTest extends InitTestEnvironment {
if (task.getStatus() == 0) {
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
} else if (task.getStatus() == 30) {
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode()));
} else if (task.getStatus() == 19) {
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode()));
}
}
}