refactor(接口测试): 增加接口测试覆盖率

This commit is contained in:
wxg0103 2024-02-28 11:04:26 +08:00 committed by wxg0103
parent 350f7d23a3
commit 7ffa913080
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -187,8 +187,8 @@ public class CleanupApiTests {
initData();
initReportData("test");
initScheduleData();
serviceInvoker.invokeServices("test");
cleanupApiResourceServiceImpl.deleteResources("test");
serviceInvoker.invokeServices("test");
}
private void initScheduleData() {