Explain Branch Coverage and Decision Coverage.


- Branch Coverage is testing performed in order to ensure that every branch of the software is executed atleast. To perform the Branch coverage testing we take the help of the Control Flow Graph. 

- Decision coverage testing ensures that every decision taking statement is executed atleast once.

- Both decision and branch coverage testing is done to ensure the tester that no branch and decision taking statement, will not lead to failure of the software.

- To Calculate Branch Coverage:
Branch Coverage = Tested Decision Outcomes / Total Decision Outcomes.

Comments

Popular posts from this blog

Handling Dynamic Web Tables Using Selenium WebDriver

Verify Specific Position of an Element

Read it out for TESTNG before going for an iterview