fix(接口测试): 修复新创建的TCP案例请求数据结构中没有解析参数的缺陷

--bug=1009775 --user=宋天阳 【接口测试】场景里导入tcp接口执行失败,接口列表执行成功
https://www.tapd.cn/55049933/s/1099218
This commit is contained in:
song-tianyang 2022-01-26 15:50:24 +08:00 committed by song-tianyang
parent e16ec0e1b5
commit 7e047049bc
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ public class ApiTestCaseService {
private ApiTestCase createTest(SaveApiTestCaseRequest request, List<MultipartFile> bodyFiles) { private ApiTestCase createTest(SaveApiTestCaseRequest request, List<MultipartFile> bodyFiles) {
checkNameExist(request); checkNameExist(request);
FileUtils.createBodyFiles(request.getId(), bodyFiles); FileUtils.createBodyFiles(request.getId(), bodyFiles);
request.setRequest(tcpApiParamService.parseMsTestElement(request.getRequest()));
if (StringUtils.isNotEmpty(request.getEsbDataStruct()) || StringUtils.isNotEmpty(request.getBackEsbDataStruct())) { if (StringUtils.isNotEmpty(request.getEsbDataStruct()) || StringUtils.isNotEmpty(request.getBackEsbDataStruct())) {
request = esbApiParamService.handleEsbRequest(request); request = esbApiParamService.handleEsbRequest(request);
} }