fix(接口测试): 修复场景执行结果显示了unexecute的缺陷 (#16610)
--bug=1015580 --user=王孝刚 【接口测试】场景执行结果显示了unexecute等2个问题优化 https://www.tapd.cn/55049933/s/1217625 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
bed9ec92ed
commit
fdfe195587
|
@ -515,6 +515,7 @@ public class ApiAutomationService {
|
||||||
} else {
|
} else {
|
||||||
scenario.setVersionId(request.getVersionId());
|
scenario.setVersionId(request.getVersionId());
|
||||||
}
|
}
|
||||||
|
scenario.setLastResult("");
|
||||||
return scenario;
|
return scenario;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1325,6 +1326,7 @@ public class ApiAutomationService {
|
||||||
scenarioWithBLOBs.setUserId(request.getUserId());
|
scenarioWithBLOBs.setUserId(request.getUserId());
|
||||||
}
|
}
|
||||||
scenarioWithBLOBs.setDescription(request.getDescription());
|
scenarioWithBLOBs.setDescription(request.getDescription());
|
||||||
|
scenarioWithBLOBs.setLastResult("");
|
||||||
|
|
||||||
Boolean openCustomNum = apiTestImportRequest.getOpenCustomNum();
|
Boolean openCustomNum = apiTestImportRequest.getOpenCustomNum();
|
||||||
List<ApiScenario> list = new ArrayList<>();
|
List<ApiScenario> list = new ArrayList<>();
|
||||||
|
|
|
@ -224,6 +224,10 @@
|
||||||
v-else-if="row.lastResult === 'errorReportResult'">
|
v-else-if="row.lastResult === 'errorReportResult'">
|
||||||
{{ $t('error_report_library.option.name') }}
|
{{ $t('error_report_library.option.name') }}
|
||||||
</el-link>
|
</el-link>
|
||||||
|
<el-link type="danger" style="color: #7F7F7F" :disabled="true"
|
||||||
|
v-else-if="row.lastResult === 'unexecute' || row.lastResult === ''">
|
||||||
|
{{ $t('api_test.home_page.detail_card.unexecute') }}
|
||||||
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
|
||||||
|
@ -731,6 +735,10 @@ export default {
|
||||||
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
|
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.condition.filters.last_result && this.condition.filters.last_result.indexOf('unexecute') !== -1) {
|
||||||
|
this.condition.filters.last_result.push('');
|
||||||
|
}
|
||||||
|
|
||||||
// todo
|
// todo
|
||||||
if (projectId != null && typeof projectId === 'string') {
|
if (projectId != null && typeof projectId === 'string') {
|
||||||
this.condition.projectId = projectId;
|
this.condition.projectId = projectId;
|
||||||
|
|
|
@ -147,7 +147,9 @@ export function API_SCENARIO_FILTERS() {
|
||||||
],
|
],
|
||||||
RESULT_FILTERS: [
|
RESULT_FILTERS: [
|
||||||
{text: i18n.t('api_test.automation.fail'), value: 'Fail'},
|
{text: i18n.t('api_test.automation.fail'), value: 'Fail'},
|
||||||
{text: i18n.t('api_test.automation.success'), value: 'Success'}
|
{text: i18n.t('api_test.automation.success'), value: 'Success'},
|
||||||
|
{text: i18n.t('api_test.home_page.detail_card.unexecute'), value: 'unexecute'},
|
||||||
|
{text: i18n.t('error_report_library.option.name'), value: 'errorReportResult'}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
/*LEVEL_FILTERS: [
|
/*LEVEL_FILTERS: [
|
||||||
|
|
Loading…
Reference in New Issue