fix(性能测试): i18n
--bug=1018670 --user=李玉号 [测试跟踪]测试计划-性能测试用例-批量执行用例时提示信息未汉化 https://www.tapd.cn/55049933/s/1274449
This commit is contained in:
parent
02f5c887cf
commit
9ecd6f1ee7
|
@ -27,6 +27,7 @@ public class HttpHeaderUtils {
|
||||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||||
headers.add(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON.toString());
|
headers.add(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON.toString());
|
||||||
headers.add(HttpHeaders.COOKIE, SessionUtils.getHttpHeader(HttpHeaders.COOKIE));
|
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);
|
String headerToken = SessionUtils.getHttpHeader(SessionConstants.HEADER_TOKEN);
|
||||||
if (StringUtils.isNotBlank(headerToken)) {
|
if (StringUtils.isNotBlank(headerToken)) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class PerfModeExecService {
|
||||||
performanceTestService.run(request);
|
performanceTestService.run(request);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
loadCase.setStatus(TestPlanLoadCaseStatus.error.name());
|
loadCase.setStatus(TestPlanLoadCaseStatus.error.name());
|
||||||
MSException.throwException(e);
|
MSException.throwException(e.getMessage());
|
||||||
}
|
}
|
||||||
//更新关联处的报告
|
//更新关联处的报告
|
||||||
testPlanLoadCaseMapper.updateByPrimaryKeySelective(loadCase);
|
testPlanLoadCaseMapper.updateByPrimaryKeySelective(loadCase);
|
||||||
|
|
Loading…
Reference in New Issue