Logo
  • Home
  • My Page
  • Tester Community
  • Testing Question Bank
  • Blog navigation
  • Downloads
  • Testing Quiz
  • Forum
  • Groups
  • Testing Related Video
  • Photos
  • Ask
  • Answer
  • Search Answers
  • Software Testing
  • Software Testing Tools
  • Test Management
  • Quality Engineering
lost pwd lost username create account
Home Decision Coverage
Google
Decision Coverage | Print |  E-mail
  • 1
  • 2
  • 3
  • 4
  • 5
( 0 Votes )

This metric reports whether boolean expressions tested in control structures (such as the if-statement and while-statement) evaluated to both true and false. The entire boolean expression is considered one true-or-false predicate regardless of whether it contains logical-and or logical-or operators. Additionally, this metric includes coverage of switch-statement cases, exception handlers, and interrupt handlers.

Also known as: branch coverage, all-edges coverage, basis path coverage, decision-decision-path testing. "Basis path" testing selects paths that achieve decision coverage.

This metric has the advantage of simplicity without the problems of statement coverage.

A disadvantage is that this metric ignores branches within boolean expressions which occur due to short-circuit operators. For example, consider the following C/C++/Java code fragment:

if (condition1 && (condition2 || function1()))

statement1;

else

statement2;

This metric could consider the control structure completely exercised without a call to function1. The test expression is true when condition1 is true and condition2 is true, and the test expression is false when condition1 is false. In this instance, the short-circuit operators preclude a call to function1.

 


Set as favorite
Bookmark
Email this
Hits: 2015
Comments (0)Add Comment
feedSubscribe to this comment's feed

Write comment
bold italicize underline strike url image quote Smile Wink Laugh Grin Angry Sad Shocked Cool Tongue Kiss Cry
smaller | bigger

busy
< Prev   Next >



Related Articles:

  • Statement Coverage (2008-08-04)
  • Code Coverage: Introduction (2008-08-04)
  • Database testing: Basic Concept (2008-08-13)
  • Website testing: testing before a new release (2008-07-01)
  • Testing ERP Packages (2008-06-28)
  • Mainframe Testing (2008-08-12)
  • Introduction to Data mining (2008-06-01)
  • What is Testing Scorecard? (2008-05-05)
  • Data Warehousing and Data Mining Overview (2008-09-07)
  • Data Warehouse Software Testing (2008-08-12)
  • Regression Testing : Selecting the most relevant test cases (2008-04-15)
  • Testing Portal functionality without using automated tools (2008-04-04)
  • Web Security Testing (2008-08-11)
  • XML-Tester's View (2008-02-21)
  • Introduction to XML for Testers (2008-05-12)
  • Testing Enterprise Insurance Applications using SOA (2008-06-02)
  • Automated Website Testing (2008-01-16)
  • Useful Tips of Database testing using Visual Basic Tools (2008-01-09)
  • Test Case Template (2008-05-12)
  • Complete Tutorial Static Testing Part 3 (2007-10-28)


Google

Software Testing

  • Introduction to Software Testing
  • Automated Software Testing
  • Different Types Of Software Testing
  • Software Testing Levels
  • Software Testing Tools
  • Software Performance Testing
  • Web Testing Techniques
  • Software Security Assurance
  • Software Testing Certification
  • Testing Check Lists
  • Software QA Testing Career
  • SOA and Web Services Testing

Test Management

  • Test Plan Template
  • Test Estimation Techniques
  • Defect Tracking System
  • Configuration Management Process

Quality Assurance

  • Software QA Plan
  • Software QA Roles And Responsibilities
  • Software Quality Assurance Life Cycle
  • Software Quality Assurance Tutorial
  • Software Quality Assurance Certification
  • Software QA Engineer Resume
  • Software Quality Assurance Interview Questions
logo footer
  • Privacy Policy
  • Contact Us
  • Antivirus Software Reviews