fix(测试跟踪): 修复测试计划执行case报错无资源池的缺陷

--bug=1026743 --user=王孝刚 【测试跟踪】测试计划-接口用列-操作-执行-调用资源池失败
https://www.tapd.cn/55049933/s/1379537
This commit is contained in:
wxg0103 2023-06-07 14:55:00 +08:00 committed by fit2-zhao
parent fa56934a6f
commit 677d87b416
1 changed files with 5 additions and 0 deletions

View File

@ -133,6 +133,11 @@ public class ApiExecuteService {
: request.getReportId(), request.getRunMode(), null);
if (testCase != null && StringUtils.isNotEmpty(testCase.getRequest())) {
try {
if (!StringUtils.equals(request.getRunMode(), ApiRunMode.JENKINS.name())) {
HashTree jmeterHashTree = this.generateHashTree(request, testCase, runModeConfigDTO);
// 调用执行方法
runRequest.setHashTree(jmeterHashTree);
}
if (MapUtils.isNotEmpty(extendedParameters)) {
runRequest.setExtendedParameters(extendedParameters);
}