refactor(性能测试): 性能测试解析证书路径修改成相对路径
This commit is contained in:
parent
348d743119
commit
8d69fc2bff
|
@ -42,6 +42,7 @@ public class JmeterDocumentParser implements EngineSourceParser {
|
|||
private final static String BACKEND_LISTENER = "BackendListener";
|
||||
private final static String CONFIG_TEST_ELEMENT = "ConfigTestElement";
|
||||
private final static String ARGUMENTS = "Arguments";
|
||||
private final static String KEYSTORE_CONFIG = "KeystoreConfig";
|
||||
private final static String RESPONSE_ASSERTION = "ResponseAssertion";
|
||||
private final static String HTTP_SAMPLER_PROXY = "HTTPSamplerProxy";
|
||||
private final static String CSV_DATA_SET = "CSVDataSet";
|
||||
|
@ -110,6 +111,8 @@ public class JmeterDocumentParser implements EngineSourceParser {
|
|||
} else if (nodeNameEquals(ele, HTTP_SAMPLER_PROXY)) {
|
||||
// 处理http上传的附件
|
||||
processArgumentFiles(ele);
|
||||
} else if (nodeNameEquals(ele, KEYSTORE_CONFIG)) {
|
||||
processArgumentFiles(ele);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -201,6 +204,9 @@ public class JmeterDocumentParser implements EngineSourceParser {
|
|||
filename = extractFilename(filename);
|
||||
item.addAttribute("name", filename);
|
||||
}
|
||||
if (StringUtils.equals("MS-KEYSTORE-FILE-PATH", item.attributeValue("name"))) {
|
||||
handleFilename(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue