How to calculate in Branch Testing?



  • I wants to need the procedure about how to calculate branch testing.

    If i wants to make test case for it, how to create for it?



  • For practical purposes, I use McCabe Cyclomatic complexity to estimate the number of tests required for thorough branch testing. This this actually gives a good number for "basis path testing". The linked article gives a good explaination about the differences. McCabe Cyclomatic complexity is a practical measure because there are many tools that will automatically calculate this for you.

    If you are researching for an exam and need the precise calculation for branch coverage, here is a good resource that shows the procedure.

    Good luck!

    John


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2