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