fix(接口测试): 修复接口导入缺失断言的缺陷

--bug=1025478 --user=王孝刚 【接口测试】导出api-再次导入到ms-断言数据全部缺失
https://www.tapd.cn/55049933/s/1363338
This commit is contained in:
wxg0103 2023-04-17 14:40:01 +08:00 committed by xiaomeinvG
parent 55a610a1f1
commit 730f2b8cfb
1 changed files with 0 additions and 2 deletions

View File

@ -1325,7 +1325,6 @@ public class ApiDefinitionImportUtilService {
createCase = true;
}
msHTTPSamplerProxy.setId(apiDefinition.getId());
msHTTPSamplerProxy.setHashTree(new LinkedList<>());
apiDefinition.setRequest(JSON.toJSONString(msHTTPSamplerProxy));
return createCase;
}
@ -1344,7 +1343,6 @@ public class ApiDefinitionImportUtilService {
createCase = true;
}
tcpSampler.setId(apiDefinition.getId());
tcpSampler.setHashTree(new LinkedList<>());
apiDefinition.setRequest(JSON.toJSONString(tcpSampler));
return createCase;
}