From 30ac861702ef611f44d92107790d4ea8f7ab472a Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Sat, 28 Mar 2020 10:16:48 +0800 Subject: [PATCH] m->s --- .../metersphere/parse/xml/reader/jmx/JmeterDocumentParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/parse/xml/reader/jmx/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/parse/xml/reader/jmx/JmeterDocumentParser.java index 2f457f543d..cccc050a7a 100644 --- a/backend/src/main/java/io/metersphere/parse/xml/reader/jmx/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/parse/xml/reader/jmx/JmeterDocumentParser.java @@ -422,7 +422,8 @@ public class JmeterDocumentParser implements DocumentParser { stringPropCount++; } else { stringPropCount = 0; - prop.getFirstChild().setNodeValue(context.getProperty("duration").toString()); + Integer duration = (Integer) context.getProperty("duration");// 传入的是分钟数, 需要转化成秒数 + prop.getFirstChild().setNodeValue(String.valueOf(duration * 60)); continue; } prop.getFirstChild().setNodeValue(context.getProperty("rpsLimit").toString());