How to calculate bug rate?
Domanda
On the base of number of test cases can we calculate bug rate ? And if yes then how is it possible to calculate bug rate?
Soluzione
Assume this way that you have n test cases, x is true scenarios, and y are error (bug) scenarios, so:
n = x + y
During testing and false positive, if x out of n turns to be true and y are false, then bugs count is y/n. For example, you developed 10 test cases and during testing, there are 4 bugs reported.So you can think of a bug rate in this case is:
Bug rate = 4/10 * 100 = 40%
However this is not an accurate solution as you may need to include some other parameters also. But this is just a starter.
Altri suggerimenti
Bug Rate:
- No. of Test Cases Failed / No. of Test Cases Executed.
- Calculation of how many bugs you found from your Test Cases. Test Cases = 100; Bugs Found = 10; Bug Rate = 10%
To put it very simple N is the total number of test cases & x is the total number of test case fails encountered(not total number of bugs as you may get two or more bugs for one test case). Then Bug rate = x/N * 100 = y%...
No of bug per case:
bug number / case number