fix(接口测试): 修复执行历史没有去重的缺陷
This commit is contained in:
parent
0db63d9db3
commit
f8cd30f6d4
|
@ -239,7 +239,7 @@
|
|||
</select>
|
||||
<select id="getExecuteList" resultType="io.metersphere.api.dto.definition.ExecuteReportDTO">
|
||||
select
|
||||
api_report.id,
|
||||
distinct api_report.id,
|
||||
api_report.name,
|
||||
api_report.status,
|
||||
api_report.start_time,
|
||||
|
|
|
@ -200,7 +200,8 @@ public class ApiScenarioReportService {
|
|||
//只处理请求的
|
||||
List<String> stepTypes = Arrays.asList(ApiScenarioStepType.API_CASE.name(),
|
||||
ApiScenarioStepType.API.name(),
|
||||
ApiScenarioStepType.CUSTOM_REQUEST.name());
|
||||
ApiScenarioStepType.CUSTOM_REQUEST.name(),
|
||||
ApiScenarioStepType.SCRIPT.name());
|
||||
scenarioReportSteps.parallelStream().forEach(step -> {
|
||||
if (stepTypes.contains(step.getStepType())) {
|
||||
List<ApiScenarioReportStepDTO> details = detailMap.get(step.getStepId());
|
||||
|
|
|
@ -261,7 +261,12 @@
|
|||
});
|
||||
|
||||
const loading = ref<boolean>(false);
|
||||
const showApiType = ref<string[]>([ScenarioStepType.API, ScenarioStepType.API_CASE, ScenarioStepType.CUSTOM_REQUEST]);
|
||||
const showApiType = ref<string[]>([
|
||||
ScenarioStepType.API,
|
||||
ScenarioStepType.API_CASE,
|
||||
ScenarioStepType.CUSTOM_REQUEST,
|
||||
ScenarioStepType.SCRIPT,
|
||||
]);
|
||||
// 获取详情
|
||||
async function getStepDetail(stepId: string) {
|
||||
try {
|
||||
|
|
|
@ -238,7 +238,12 @@
|
|||
const innerExpandedKeys = defineModel<(string | number)[]>('expandedKeys', {
|
||||
required: false,
|
||||
});
|
||||
const showApiType = ref<string[]>([ScenarioStepType.API, ScenarioStepType.API_CASE, ScenarioStepType.CUSTOM_REQUEST]);
|
||||
const showApiType = ref<string[]>([
|
||||
ScenarioStepType.API,
|
||||
ScenarioStepType.API_CASE,
|
||||
ScenarioStepType.CUSTOM_REQUEST,
|
||||
ScenarioStepType.SCRIPT,
|
||||
]);
|
||||
|
||||
const innerNumber = ref<number>(0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue