refactor(接口测试): 执行步骤补充项目id
This commit is contained in:
parent
9269aba07b
commit
64b22a6d9a
|
@ -1,5 +1,5 @@
|
||||||
package io.metersphere.plugin.api.constants;
|
package io.metersphere.plugin.api.constants;
|
||||||
|
|
||||||
public enum ElementProperty {
|
public enum ElementProperty {
|
||||||
MS_RESOURCE_ID, MS_STEP_ID, MS_FAKE_ERROR, MS_REPORT_ID
|
MS_RESOURCE_ID, MS_STEP_ID, MS_FAKE_ERROR, MS_REPORT_ID, PROJECT_ID
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,8 @@ public class MsHTTPElementConverter extends AbstractJmeterElementConverter<MsHTT
|
||||||
sampler.setProperty(ElementProperty.MS_RESOURCE_ID.name(), msHTTPElement.getResourceId());
|
sampler.setProperty(ElementProperty.MS_RESOURCE_ID.name(), msHTTPElement.getResourceId());
|
||||||
sampler.setProperty(ElementProperty.MS_STEP_ID.name(), msHTTPElement.getStepId());
|
sampler.setProperty(ElementProperty.MS_STEP_ID.name(), msHTTPElement.getStepId());
|
||||||
sampler.setProperty(ElementProperty.MS_REPORT_ID.name(), config.getReportId());
|
sampler.setProperty(ElementProperty.MS_REPORT_ID.name(), config.getReportId());
|
||||||
|
sampler.setProperty(ElementProperty.PROJECT_ID.name(), msHTTPElement.getProjectId());
|
||||||
|
|
||||||
sampler.setMethod(msHTTPElement.getMethod());
|
sampler.setMethod(msHTTPElement.getMethod());
|
||||||
// todo 根据环境设置
|
// todo 根据环境设置
|
||||||
sampler.setDomain(msHTTPElement.getUrl());
|
sampler.setDomain(msHTTPElement.getUrl());
|
||||||
|
|
Loading…
Reference in New Issue