redis配置及jmeter持续时长默认值

This commit is contained in:
liangdaliang
2025-06-13 16:16:34 +08:00
parent ffed752170
commit e0910ea033
2 changed files with 6 additions and 3 deletions

View File

@@ -71,13 +71,13 @@ spring:
# redis 配置
redis:
# 地址
host: ah.qyyh.net
host: 47.99.93.74
# 端口默认为6379
port: 15129
port: 6379
# 数据库索引
database: 1
# 密码
password:
password: foobaredDkhsb
# 连接超时时间
timeout: 10s
lettuce:

View File

@@ -68,6 +68,9 @@ public class PerformanceTestCaseReportServiceImpl implements IPerformanceTestCas
jmeterGroupRequest.setRampUpSeconds(performanceTest.getRampUpSeconds());
Long seconds = performanceTest.getPressureHour() * 3600L + performanceTest.getPressureMinute() * 60L + performanceTest.getPressureSecond() * 1L;
jmeterGroupRequest.setPressureSecond(seconds);
if (seconds == 0L) {
jmeterGroupRequest.setPressureSecond(1L);
}
jmeterGroupRequest.setLoopCount(performanceTest.getLoopCount());
jmeterGroupRequest.setRpsStatus(performanceTest.getRpsStatus());
jmeterGroupRequest.setRpsLimit(performanceTest.getRpsLimit());