fix(测试计划): 性能测试执行,提示信息优化
This commit is contained in:
parent
67d3d3d20c
commit
9dad8cb0a0
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue