feat(接口测试): 场景导入增加同步刷新功能

--task=1008408 --user=赵勇 接口导入和场景导入列表加刷新按钮 https://www.tapd.cn/55049933/s/1187478
This commit is contained in:
fit2-zhao 2022-06-21 13:52:46 +08:00 committed by fit2-zhao
parent fa4a6f4a73
commit bf0b53bfb1
5 changed files with 6 additions and 4 deletions

View File

@ -137,13 +137,13 @@ public class JMeterService {
// 如果是K8S调用
if (request.getPool().isK8s()) {
try {
LoggerUtil.error("开始发送请求[ " + request.getTestId() + " ] 到K8S节点执行");
LoggerUtil.info("开始发送请求[ " + request.getTestId() + " ] 到K8S节点执行");
final Engine engine = EngineFactory.createApiEngine(request);
engine.start();
} catch (Exception e) {
RemakeReportService apiScenarioReportService = CommonBeanFactory.getBean(RemakeReportService.class);
apiScenarioReportService.testEnded(request, e.getMessage());
LoggerUtil.error("调用K8S执行请求[ " + request.getTestId() + " ] 失败:", e);
LoggerUtil.error("调用K8S执行请求[ " + request.getTestId() + " ],报告:[" + request.getReportId() + "] 失败:", e);
}
} else {
this.send(request);

View File

@ -54,6 +54,7 @@
<!-- 显示数量 -->
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px;"/>
<el-button size="mini" icon="el-icon-refresh" @click="refresh"/>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
{{ $t('commons.copy') }}
</el-button>

View File

@ -1,5 +1,5 @@
<template>
<div>
<div v-loading="result.loading">
<api-list-container
:is-api-list-enable="isApiListEnable"
@isApiListEnableChange="isApiListEnableChange">

View File

@ -1,5 +1,5 @@
<template>
<div>
<div v-loading="result.loading">
<api-list-container
:is-api-list-enable="isApiListEnable"
@isApiListEnableChange="isApiListEnableChange">

View File

@ -28,6 +28,7 @@
<template v-slot:headerBtn>
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px;"/>
<el-button size="mini" icon="el-icon-refresh" @click="refresh"/>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
{{ $t('commons.copy') }}
</el-button>