fix(性能测试): i18n

--bug=1018670 --user=李玉号 [测试跟踪]测试计划-性能测试用例-批量执行用例时提示信息未汉化
https://www.tapd.cn/55049933/s/1274449
This commit is contained in:
shiziyuan9527 2022-10-24 16:56:51 +08:00 committed by lyh
parent 02f5c887cf
commit 9ecd6f1ee7
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ public class HttpHeaderUtils {
headers.setContentType(MediaType.APPLICATION_JSON);
headers.add(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON.toString());
headers.add(HttpHeaders.COOKIE, SessionUtils.getHttpHeader(HttpHeaders.COOKIE));
headers.add(HttpHeaders.ACCEPT_LANGUAGE, SessionUtils.getHttpHeader(HttpHeaders.ACCEPT_LANGUAGE));
String headerToken = SessionUtils.getHttpHeader(SessionConstants.HEADER_TOKEN);
if (StringUtils.isNotBlank(headerToken)) {

View File

@ -28,7 +28,7 @@ public class PerfModeExecService {
performanceTestService.run(request);
} catch (Exception e) {
loadCase.setStatus(TestPlanLoadCaseStatus.error.name());
MSException.throwException(e);
MSException.throwException(e.getMessage());
}
//更新关联处的报告
testPlanLoadCaseMapper.updateByPrimaryKeySelective(loadCase);