diff --git a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java index 7e216b4b90..4f74486a82 100644 --- a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/JmeterDocumentParser.java @@ -215,7 +215,8 @@ public class JmeterDocumentParser implements EngineSourceParser { if (!StringUtils.contains(filename, "/")) { separator = "\\"; } - filename = filename.substring(filename.lastIndexOf(separator) + 1); + // 改成绝对路径,keystore 不能使用相对路径 + filename = "/test/" + filename.substring(filename.lastIndexOf(separator) + 1); return filename; }