fix(接口自动化): 场景步骤下接口执行问题
This commit is contained in:
parent
2bed7959bb
commit
e15b1624a8
|
@ -101,7 +101,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
HTTPSamplerProxy sampler = new HTTPSamplerProxy();
|
HTTPSamplerProxy sampler = new HTTPSamplerProxy();
|
||||||
sampler.setEnabled(this.isEnable());
|
sampler.setEnabled(this.isEnable());
|
||||||
sampler.setName(this.getName());
|
sampler.setName(this.getName());
|
||||||
String name = this.getParentName(this.getParent(), config);
|
String name = this.getParentName(this.getParent());
|
||||||
if (StringUtils.isNotEmpty(name) && !config.isOperating()) {
|
if (StringUtils.isNotEmpty(name) && !config.isOperating()) {
|
||||||
sampler.setName(this.getName() + "<->" + name);
|
sampler.setName(this.getName() + "<->" + name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -436,7 +436,7 @@ public class ApiDefinitionService {
|
||||||
|
|
||||||
Map<String, EnvironmentConfig> envConfig = new HashMap<>();
|
Map<String, EnvironmentConfig> envConfig = new HashMap<>();
|
||||||
Map<String, String> map = request.getEnvironmentMap();
|
Map<String, String> map = request.getEnvironmentMap();
|
||||||
if (map != null) {
|
if (map != null && map.size() > 0) {
|
||||||
map.keySet().forEach(id -> {
|
map.keySet().forEach(id -> {
|
||||||
ApiTestEnvironmentWithBLOBs environment = environmentService.get(map.get(id));
|
ApiTestEnvironmentWithBLOBs environment = environmentService.get(map.get(id));
|
||||||
EnvironmentConfig env = JSONObject.parseObject(environment.getConfig(), EnvironmentConfig.class);
|
EnvironmentConfig env = JSONObject.parseObject(environment.getConfig(), EnvironmentConfig.class);
|
||||||
|
|
Loading…
Reference in New Issue