fix(jenkins): 修复jenkins执行接口用例的问题
This commit is contained in:
parent
e5fba069a7
commit
73341ffcac
|
@ -801,6 +801,11 @@ public class ApiTestCaseService {
|
|||
request.setReportId(request.getTestPlanId());
|
||||
}
|
||||
|
||||
if (StringUtils.equals(request.getRunMode(), ApiRunMode.JENKINS.name())) {
|
||||
testCaseWithBLOBs = apiTestCaseMapper.selectByPrimaryKey(request.getCaseId());
|
||||
request.setReportId(request.getEnvironmentId());
|
||||
}
|
||||
|
||||
// 多态JSON普通转换会丢失内容,需要通过 ObjectMapper 获取
|
||||
if (testCaseWithBLOBs != null && StringUtils.isNotEmpty(testCaseWithBLOBs.getRequest())) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue