fix(接口测试): 接口测试首页用例通过率统计错误的问题
--bug=1017123 --user=宋天阳 【接口测试】接口测试首页接口用例数量通过率统计错误 https://www.tapd.cn/55049933/s/1249668
This commit is contained in:
parent
db02f3051d
commit
d6afeefae2
|
@ -251,7 +251,7 @@ public class APITestController {
|
|||
|
||||
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");
|
||||
apiCountResult.setPassRage(df.format(coverageRageNumber) + "%");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue