mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 20:19:16 +08:00
fix(接口测试): 修复场景步骤中包含自定义请求的jmx报错的缺陷
This commit is contained in:
parent
93853efce8
commit
846a402e4d
@ -88,7 +88,7 @@ public class ElementUtil {
|
||||
this.add(ElementConstants.JSR223_POST);
|
||||
}};
|
||||
public static final String JSR = "jsr223";
|
||||
|
||||
public static final String CLAZZ = "clazzName";
|
||||
|
||||
|
||||
|
||||
@ -401,7 +401,7 @@ public class ElementUtil {
|
||||
}
|
||||
|
||||
public static void setDomain(JSONObject element, MsParameter msParameter) {
|
||||
if (!StringUtils.equals(element.optString("type"), ElementConstants.HTTP_SAMPLER)) {
|
||||
if (!StringUtils.equals(element.optString(MsHashTreeService.TYPE), ElementConstants.HTTP_SAMPLER) || !element.has(CLAZZ)) {
|
||||
return;
|
||||
}
|
||||
MsHTTPSamplerProxy httpSamplerProxy = JSON.parseObject(element.toString(), MsHTTPSamplerProxy.class);
|
||||
|
Loading…
Reference in New Issue
Block a user