style(性能测试): 企业版性能测试报告中错误记录表格字段命名优化
This commit is contained in:
parent
000129d632
commit
f49576ccd0
|
@ -236,6 +236,10 @@ public class TestPlanScenarioCaseService {
|
||||||
for (String id : relevanceIds) {
|
for (String id : relevanceIds) {
|
||||||
Map<String, String> newEnvMap = new HashMap<>(16);
|
Map<String, String> newEnvMap = new HashMap<>(16);
|
||||||
List<String> list = mapping.get(id);
|
List<String> list = mapping.get(id);
|
||||||
|
//由于代码历史原因,场景本身没有选择环境,期对应的list数据格式会变成 [""]。这里要进行校验。
|
||||||
|
if (list.size() == 1 && StringUtils.isEmpty(list.get(0))) {
|
||||||
|
list = new ArrayList<>();
|
||||||
|
}
|
||||||
if (CollectionUtils.isEmpty(list)) {
|
if (CollectionUtils.isEmpty(list)) {
|
||||||
EnvironmentCheckDTO scenarioEnv = apiAutomationService.getApiScenarioProjectId(id);
|
EnvironmentCheckDTO scenarioEnv = apiAutomationService.getApiScenarioProjectId(id);
|
||||||
list = new ArrayList<>(scenarioEnv.getProjectIds());
|
list = new ArrayList<>(scenarioEnv.getProjectIds());
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="percentOfErrors"
|
prop="percentOfErrors"
|
||||||
label="% In Errors"
|
label="% In All Errors"
|
||||||
min-width="180">
|
min-width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="percentOfSamples"
|
prop="percentOfSamples"
|
||||||
label="% In Samples"
|
label="% In All Samples"
|
||||||
min-width="180">
|
min-width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|
|
@ -61,20 +61,6 @@
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane
|
|
||||||
:label="$t('api_test.request.extract.label')"
|
|
||||||
name="label"
|
|
||||||
class="pane"
|
|
||||||
>
|
|
||||||
<ms-code-edit
|
|
||||||
:mode="'text'"
|
|
||||||
:read-only="true"
|
|
||||||
:data.sync="responseResult.vars"
|
|
||||||
v-if="activeName === 'label'"
|
|
||||||
ref="codeEdit"
|
|
||||||
/>
|
|
||||||
</el-tab-pane>
|
|
||||||
|
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
:label="$t('api_report.request_body')"
|
:label="$t('api_report.request_body')"
|
||||||
name="request_body"
|
name="request_body"
|
||||||
|
|
|
@ -40,7 +40,9 @@ public class LoadCaseStatusHandleSocket {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void sendMessageSingle(String planId, String message) {
|
public static void sendMessageSingle(String planId, String message) {
|
||||||
ONLINE_PLAN_LOAD_SESSIONS.get(planId).forEach(session -> sendMessage(session, message));
|
if (ONLINE_PLAN_LOAD_SESSIONS.containsKey(planId)) {
|
||||||
|
ONLINE_PLAN_LOAD_SESSIONS.get(planId).forEach(session -> sendMessage(session, message));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue