refactor(接口测试): 增加接口测试覆盖率
This commit is contained in:
parent
350f7d23a3
commit
7ffa913080
|
@ -107,14 +107,14 @@ public class CleanupApiResourceServiceImpl implements CleanupProjectResourceServ
|
|||
//删除模块
|
||||
delApiModule(projectId);
|
||||
delScenarioModule(projectId);
|
||||
//删除定时任务
|
||||
deleteSchedule(projectId);
|
||||
//删除接口
|
||||
delApi(projectId);
|
||||
//删除报告 删除执行记录
|
||||
deleteReport(projectId);
|
||||
//删除分享报告的数据
|
||||
deleteShareUrl(projectId);
|
||||
//删除定时任务
|
||||
deleteSchedule(projectId);
|
||||
//删除场景
|
||||
deleteScenario(projectId);
|
||||
|
||||
|
@ -138,7 +138,6 @@ public class CleanupApiResourceServiceImpl implements CleanupProjectResourceServ
|
|||
//删除blob
|
||||
apiScenarioBlobMapper.deleteByExample(example);
|
||||
|
||||
|
||||
ApiScenarioStepExample stepExample = new ApiScenarioStepExample();
|
||||
stepExample.createCriteria().andScenarioIdIn(subList);
|
||||
//删除step
|
||||
|
|
|
@ -187,8 +187,8 @@ public class CleanupApiTests {
|
|||
initData();
|
||||
initReportData("test");
|
||||
initScheduleData();
|
||||
serviceInvoker.invokeServices("test");
|
||||
cleanupApiResourceServiceImpl.deleteResources("test");
|
||||
serviceInvoker.invokeServices("test");
|
||||
}
|
||||
|
||||
private void initScheduleData() {
|
||||
|
|
Loading…
Reference in New Issue