refactor(接口测试): 执行历史增加字段

This commit is contained in:
wxg0103 2024-03-18 15:33:49 +08:00 committed by 刘瑞斌
parent ae34ffe61f
commit 665aa4c57b
4 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,9 @@ public class ExecuteReportDTO implements Serializable {
@Schema(description = "执行方式")
private String triggerMode;
@Schema(description = "是否删除")
private boolean deleted;
private static final long serialVersionUID = 1L;
}

View File

@ -458,7 +458,8 @@
api_scenario_report.start_time,
api_scenario_report.create_user,
api_scenario_report.trigger_mode,
api_scenario_report.test_plan_id
api_scenario_report.test_plan_id,
api_scenario_report.deleted
from api_scenario_report
left join api_scenario_record t1 on t1.api_scenario_report_id = api_scenario_report.id
where

View File

@ -240,7 +240,8 @@
api_report.start_time,
api_report.create_user,
api_report.trigger_mode,
api_report.test_plan_id
api_report.test_plan_id,
api_report.deleted
from api_report
left join api_test_case_record atc on atc.api_report_id = api_report.id
where

View File

@ -498,6 +498,7 @@ public class ApiTestCaseControllerTests extends BaseTest {
ApiDefinition apiDefinition = apiDefinitionMapper.selectByPrimaryKey(apiTestCase.getApiDefinitionId());
copyApiDebugDTO.setMethod(apiDefinition.getMethod());
copyApiDebugDTO.setPath(apiDefinition.getPath());
copyApiDebugDTO.setProtocol(apiDefinition.getProtocol());
ApiTestCaseBlob apiTestCaseBlob = apiTestCaseBlobMapper.selectByPrimaryKey(apiTestCase.getId());
ApiTestCaseFollowerExample example = new ApiTestCaseFollowerExample();
example.createCriteria().andCaseIdEqualTo(apiTestCase.getId()).andUserIdEqualTo("admin");