fix(接口自动化): 导入JMX无全路径问题处理
This commit is contained in:
parent
30f8cda21e
commit
68d299871f
|
@ -153,6 +153,10 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
|
|||
|
||||
public String getUrl(HTTPSamplerProxy source) throws MalformedURLException {
|
||||
String path = source.getPath();
|
||||
// Request Defaults
|
||||
if (StringUtils.isEmpty(source.getDomain())) {
|
||||
return null;
|
||||
}
|
||||
if (!path.startsWith("http://") && !path.startsWith("https://")) {
|
||||
String domain = source.getDomain();
|
||||
String protocol = source.getProtocol();
|
||||
|
|
Loading…
Reference in New Issue