3

How should I calculate the test coverage for the manual testing I have done for my Software Project? Does it need some documentations like Test scenarios, test cases to calculate Test Coverage?

1

First of all you should answer the question: What would my test be covering? In white box testing tests usually cover the code lines. Since you do not have the code lines you should have something to be covered.

In black-box testing it might be the requirements. So that you have to have the requirements each of which would be tested by one or several tests. This approach would let you to calculate the coverage. Say 60% of requirements are covered.

| improve this answer | |
  • How do we determine if a requirement is covered or not? – Seeker001 Feb 12 at 10:32
  • The requirement is covered when all the possible inputs are tested for all possible ranges of data (in real life for classes of data). – Alexey R. Feb 12 at 11:00
  • Can we say in other words that every equivalence class for every acceptance criteria is covered by one test per each class? – Seeker001 Feb 13 at 7:23
2

Why do you need to answer that question? I would try to avoid that. Others are right by saying that usually for black box testing the answer would be requirement coverage. But what does requirement coverage mean? how meaningful a number is ? is 95% coverage consisting of 1 sunny-day test per requirement better or worst than 75% of multiple test at multiple levels per requirement ?

It's misleading the same as with code coverage numbers for white box testing- even if you have passed through all the branches and paths in the code you are still not safe if you haven't used your head in the process.

What can you do ? skip the percentages and present what is tested and how, shortly explain rather then giving one meaningless number. You can use visual heat maps that show areas of the product, percentage of coverage and quality of coverage.

| improve this answer | |
1

Test coverage for black box testing is to validate the extent of coverage of requirements in testing. You can use Traceability matrix to show the test coverage. The traceability matrix would map test cases with requirements which will give you the extent of the test coverage.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.