From 203fcaeed62f4e18260ac16e6dd18e10c661e9cf Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 28 Mar 2024 10:22:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E5=90=8D=E7=A7=B0=E8=BE=83?= =?UTF-8?q?=E9=95=BF=EF=BC=8C=E6=89=A7=E8=A1=8C=E7=94=A8=E4=BE=8B=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1037915 --user=王孝刚 【接口测试】用例名称较长-执行用例失败 https://www.tapd.cn/55049933/s/1482510 --- .../main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql | 4 ++-- .../io/metersphere/api/dto/request/http/MsHTTPConfig.java | 4 ++-- .../project/dto/environment/common/CommonParams.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql index f61e9aa695..a719afcb0a 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_test.sql @@ -100,7 +100,7 @@ CREATE INDEX idx_name ON api_definition(name); CREATE TABLE IF NOT EXISTS api_report( `id` VARCHAR(50) NOT NULL COMMENT '接口报告pk' , - `name` VARCHAR(255) NOT NULL COMMENT '接口报告名称' , + `name` VARCHAR(300) NOT NULL COMMENT '接口报告名称' , `test_plan_id` VARCHAR(50) NOT NULL DEFAULT 'NONE' COMMENT '测试计划id' , `create_user` VARCHAR(50) NOT NULL COMMENT '创建人' , `delete_time` BIGINT COMMENT '删除时间' , @@ -337,7 +337,7 @@ CREATE UNIQUE INDEX uq_name_project_parent_type ON api_scenario_module (project_ CREATE TABLE IF NOT EXISTS api_scenario_report( `id` VARCHAR(50) NOT NULL COMMENT '场景报告pk' , - `name` VARCHAR(255) NOT NULL COMMENT '报告名称' , + `name` VARCHAR(300) NOT NULL COMMENT '报告名称' , `test_plan_id` VARCHAR(50) NOT NULL DEFAULT 'NONE' COMMENT '测试计划id' , `create_user` VARCHAR(50) NOT NULL COMMENT '创建人' , `delete_time` BIGINT COMMENT '删除时间' , diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/MsHTTPConfig.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/MsHTTPConfig.java index e93ccc6dba..0f9f7ba8ca 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/MsHTTPConfig.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/request/http/MsHTTPConfig.java @@ -14,11 +14,11 @@ public class MsHTTPConfig { /** * 连接超时 */ - private Long connectTimeout = 6000L; + private Long connectTimeout = 60000L; /** * 响应超时 */ - private Long responseTimeout = 6000L; + private Long responseTimeout = 60000L; /** * 证书别名 */ diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/dto/environment/common/CommonParams.java b/backend/services/project-management/src/main/java/io/metersphere/project/dto/environment/common/CommonParams.java index bc3d23c1ae..a790fab944 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/dto/environment/common/CommonParams.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/dto/environment/common/CommonParams.java @@ -11,7 +11,7 @@ public class CommonParams implements Serializable { @Serial private static final long serialVersionUID = 1L; @Schema(description = "链接超时时间") - private Long requestTimeout = 600000L; + private Long requestTimeout = 60000L; @Schema(description = "响应超时时间") - private Long responseTimeout = 600000L; + private Long responseTimeout = 60000L; }