fix(接口测试): 修复新创建的TCP案例请求数据结构中没有解析参数的缺陷
--bug=1009775 --user=宋天阳 【接口测试】场景里导入tcp接口执行失败,接口列表执行成功 https://www.tapd.cn/55049933/s/1099218
This commit is contained in:
parent
e16ec0e1b5
commit
7e047049bc
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue