style(性能测试): 企业版性能测试报告中错误记录表格字段命名优化

This commit is contained in:
song-tianyang 2023-11-14 15:34:15 +08:00 committed by 刘瑞斌
parent 000129d632
commit f49576ccd0
4 changed files with 9 additions and 17 deletions

View File

@ -236,6 +236,10 @@ public class TestPlanScenarioCaseService {
for (String id : relevanceIds) {
Map<String, String> newEnvMap = new HashMap<>(16);
List<String> list = mapping.get(id);
//由于代码历史原因场景本身没有选择环境期对应的list数据格式会变成 [""]这里要进行校验
if (list.size() == 1 && StringUtils.isEmpty(list.get(0))) {
list = new ArrayList<>();
}
if (CollectionUtils.isEmpty(list)) {
EnvironmentCheckDTO scenarioEnv = apiAutomationService.getApiScenarioProjectId(id);
list = new ArrayList<>(scenarioEnv.getProjectIds());

View File

@ -24,13 +24,13 @@
<el-table-column
prop="percentOfErrors"
label="% In Errors"
label="% In All Errors"
min-width="180">
</el-table-column>
<el-table-column
prop="percentOfSamples"
label="% In Samples"
label="% In All Samples"
min-width="180">
</el-table-column>

View File

@ -61,20 +61,6 @@
/>
</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
:label="$t('api_report.request_body')"
name="request_body"

View File

@ -40,8 +40,10 @@ public class LoadCaseStatusHandleSocket {
}
public static void sendMessageSingle(String planId, String message) {
if (ONLINE_PLAN_LOAD_SESSIONS.containsKey(planId)) {
ONLINE_PLAN_LOAD_SESSIONS.get(planId).forEach(session -> sendMessage(session, message));
}
}
/**
* 连接成功响应