Skip to content

Conversation

@yimfeng
Copy link
Contributor

@yimfeng yimfeng commented Dec 8, 2021

No description provided.


// 测试getBackupByCaseId接口 get方法
backupController.getBackupByCaseId(2481L, "beginTime", "endTime");
MvcResult mvcResultGet = mockMvc.perform(MockMvcRequestBuilders.get("/api/backup/getBackupByCaseId")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.这里重复测试了,调用了2次
2.校验点太少,仅校验了返回结果ok
3.这里依赖了内部数据库的内容,顺序应该是先上传一个用例,利用返回的id进行查询接口的测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants