refactor(接口测试): 执行结果增加日志输出

This commit is contained in:
wxg0103 2023-10-10 10:27:37 +08:00 committed by fit2-zhao
parent e2476b7209
commit ce44ad18bd
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ public class JMeterBase {
requestResult.setBody("");
} else {
//判断返回的类型是否是图片
LoggerUtil.info("返回内容类型为【" + result.getContentType() + "");
if (StringUtils.isNotEmpty(result.getContentType()) && imageList.contains(result.getContentType())) {
responseResult.setContentType(result.getContentType());
responseResult.setImageUrl(result.getResponseData());