From f234ba6bb4d649c2075357130a098a9c1322921b Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 17 Jan 2024 10:48:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E5=9C=BA=E6=99=AF=E8=BD=AC=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E6=97=B6=E9=83=A8=E5=88=86csv=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1034342 --user=宋天阳 【性能测试】github#28363,在接口自动化场景中,有场景变量csv文件,然后把这个自动化转化成性能测试的时候,转化过的性能测试中的高级配置没有csv文件。 https://www.tapd.cn/55049933/s/1452192 --- .../io/metersphere/service/scenario/ApiScenarioService.java | 6 +++++- .../frontend/src/business/test/EditPerformanceTest.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java index 3fa148dac5..e47ac2c4fd 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java @@ -1703,7 +1703,11 @@ public class ApiScenarioService { } public ScenarioToPerformanceInfoDTO exportJmx(ApiScenarioBatchRequest request) { - List apiScenarioWithBLOBs = getExportResult(request); + + ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiScenarioMapper.selectIdsByQuery(query)); + ApiScenarioExample example = new ApiScenarioExample(); + example.createCriteria().andIdIn(request.getIds()); + List apiScenarioWithBLOBs = apiScenarioMapper.selectByExampleWithBLOBs(example); //检查运行环境 checkExportEnv(apiScenarioWithBLOBs); // 生成jmx diff --git a/performance-test/frontend/src/business/test/EditPerformanceTest.vue b/performance-test/frontend/src/business/test/EditPerformanceTest.vue index f35e668e8f..00d93dd4f4 100644 --- a/performance-test/frontend/src/business/test/EditPerformanceTest.vue +++ b/performance-test/frontend/src/business/test/EditPerformanceTest.vue @@ -679,7 +679,7 @@ export default { csvHasHeader: true, recycle: true, stopThread: false, - shareMode: "shareMode.thread" + shareMode: "shareMode.all" }); }