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

@@ -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());