fix(接口测试): ms插件导入增加模块

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-09-01 18:28:48 +08:00 committed by xiaomeinvG
parent 9b8f76e522
commit 380014a5f8
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public class MsDefinitionParser extends MsAbstractParser<ApiDefinitionImport> {
List<MsHTTPSamplerProxy> msHTTPSamplerProxies = parseMsHTTPSamplerProxy(testObject, tag, false);
for (MsHTTPSamplerProxy msHTTPSamplerProxy : msHTTPSamplerProxies) {
ApiDefinitionWithBLOBs apiDefinition = buildApiDefinition(msHTTPSamplerProxy.getId(), msHTTPSamplerProxy.getName(), msHTTPSamplerProxy.getPath(), msHTTPSamplerProxy.getMethod(), importRequest);
apiDefinition.setModulePath(tag);
apiDefinition.setProjectId(this.projectId);
apiDefinition.setRequest(JSONObject.toJSONString(msHTTPSamplerProxy));
apiDefinition.setName(apiDefinition.getPath() + " [" + apiDefinition.getMethod() + "]");