refactor(接口测试): swagger 导入重构

This commit is contained in:
chenjianxing 2020-12-03 16:27:00 +08:00
parent d571c9dc07
commit fde6ae766c
7 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import io.metersphere.api.dto.ApiTestImportRequest;
import io.metersphere.api.dto.scenario.KeyValue;

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import io.metersphere.api.dto.ApiTestImportRequest;
import io.metersphere.api.dto.definition.parse.ApiDefinitionImport;

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import io.metersphere.commons.constants.ApiImportPlatform;
import org.apache.commons.lang3.StringUtils;

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import io.metersphere.commons.utils.LogUtil;
import io.metersphere.commons.utils.ScriptEngineUtils;

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

View File

@ -1,4 +1,4 @@
package io.metersphere.api.parse;
package io.metersphere.api.parse.old;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
@ -79,8 +79,8 @@ public class Swagger2Parser extends ApiImportAbstractParser {
headerManager.setId(UUID.randomUUID().toString());
headerManager.setName(res.getName() + "Postman MsHeaderManager");
headerManager.setHeaders(res.getHeaders());
HashTree tree = new HashTree();
tree.add(headerManager);
// HashTree tree = new HashTree();
// tree.add(headerManager);
LinkedList<MsTestElement> list = new LinkedList<>();
list.add(headerManager);
requestElement.setHashTree(list);