fix(测试计划): 性能测试执行,提示信息优化

This commit is contained in:
fit2-zhao 2021-07-01 16:28:06 +08:00 committed by fit2-zhao
parent 67d3d3d20c
commit 9dad8cb0a0
1 changed files with 7 additions and 1 deletions

View File

@ -139,7 +139,13 @@ public class TestPlanLoadCaseService {
try {
serialRun(request);
} catch (Exception e) {
MSException.throwException(e.getMessage());
String message = e.getMessage();
if (StringUtils.isNotEmpty(message)) {
message = message.replace("io.metersphere.commons.exception.MSException:", "");
MSException.throwException(message);
}else{
MSException.throwException("请求参数错误,请刷新后执行");
}
}
} else {
ExecutorService executorService = Executors.newFixedThreadPool(request.getRequests().size());