fix(接口测试): 接口测试首页用例通过率统计错误的问题

--bug=1017123 --user=宋天阳 【接口测试】接口测试首页接口用例数量通过率统计错误
https://www.tapd.cn/55049933/s/1249668
This commit is contained in:
song-tianyang 2022-09-22 10:25:27 +08:00 committed by 建国
parent db02f3051d
commit d6afeefae2
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ public class APITestController {
if (unexecuteCount + executionFailedCount + executionPassCount + fakeErrorCount > 0) { if (unexecuteCount + executionFailedCount + executionPassCount + fakeErrorCount > 0) {
//通过率 //通过率
float coverageRageNumber = (float) executionPassCount * 100 / (unexecuteCount + executedCountNumber + executionPassCount); float coverageRageNumber = (float) executionPassCount * 100 / (unexecuteCount + executionFailedCount + fakeErrorCount + executionPassCount);
DecimalFormat df = new DecimalFormat("0.0"); DecimalFormat df = new DecimalFormat("0.0");
apiCountResult.setPassRage(df.format(coverageRageNumber) + "%"); apiCountResult.setPassRage(df.format(coverageRageNumber) + "%");
} else { } else {