fix(接口测试): 批量执行接口Case报错信息过长
--bug=1025827 --user=宋昌昌 【接口测试】批量执行接口用例-较多用例未配置环境时-提示信息无法滚动查看-未展示关闭按钮 https://www.tapd.cn/55049933/s/1369241
This commit is contained in:
parent
2b586710db
commit
0345f60630
|
@ -176,6 +176,11 @@ public class ApiCaseExecuteService {
|
|||
}
|
||||
}
|
||||
if (StringUtils.isNotEmpty(message)) {
|
||||
// message过长时截取部分展示
|
||||
String[] splitErr = message.toString().split(";");
|
||||
if (splitErr.length > 20) {
|
||||
MSException.throwException("用例:" + String.join(";", Arrays.copyOf(splitErr, 20)) + "....;运行环境为空!");
|
||||
}
|
||||
MSException.throwException("用例:" + message + "运行环境为空!");
|
||||
}
|
||||
return projectEnvMap;
|
||||
|
|
Loading…
Reference in New Issue