feat(消息通知): 测试计划增加执行结果变量
--story=1009289 --user=刘瑞斌 【系统设置】消息通知-测试计划新增通知字段 https://www.tapd.cn/55049933/s/1241750
This commit is contained in:
parent
018d806b6e
commit
577a214b3a
|
@ -160,10 +160,10 @@ public class TestPlanMessageService {
|
||||||
|
|
||||||
// 执行率 通过率 两位小数
|
// 执行率 通过率 两位小数
|
||||||
if (report.getPassRate() != null && !report.getPassRate().isNaN()) {
|
if (report.getPassRate() != null && !report.getPassRate().isNaN()) {
|
||||||
paramMap.put("passRate", String.format("%.2f", report.getPassRate()));
|
paramMap.put("passRate", String.format("%.2f", report.getPassRate() * 100));
|
||||||
}
|
}
|
||||||
if (report.getExecuteRate() != null && !report.getExecuteRate().isNaN()) {
|
if (report.getExecuteRate() != null && !report.getExecuteRate().isNaN()) {
|
||||||
paramMap.put("executeRate", String.format("%.2f", report.getExecuteRate()));
|
paramMap.put("executeRate", String.format("%.2f", report.getExecuteRate() * 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
paramMap.putAll(caseCountMap);
|
paramMap.putAll(caseCountMap);
|
||||||
|
|
Loading…
Reference in New Issue