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 Code Coverage Criteria
Google
Code Coverage Criteria | Print |  E-mail
  • 1
  • 2
  • 3
  • 4
  • 5
( 2 Votes )


To measure how well the program is exercised by a test suite, one or more coverage criteria are used. There are a number of coverage criteria, the main ones being:

    * Function coverage - Has each function in the program been executed?
    * Statement coverage - Has each line of the source code been executed?
    * Condition coverage (also known as Branch coverage) - Has each evaluation point (such as a true/false decision) been executed?
    * Path coverage - Has every possible route through a given part of the code been executed?
    * Entry/exit coverage - Has every possible call and return of the function been executed?


Safety-critical applications are often required to demonstrate that testing achieves 100% of some form of code coverage.

Some of the coverage criteria above are connected. For instance, path coverage implies condition, statement and entry/exit coverage. Condition coverage implies statement coverage, because every statement is part of a branch.

Full path coverage, of the type described above, is usually impractical or impossible. Any module with a succession of n decisions in it can have up to 2n paths within it; loop constructs can result in an infinite number of paths. Many paths may also be infeasible, in that there is no input to the program under test that can cause that particular path to be executed. However, a general-purpose algorithm for identifying infeasible paths has been proven to be impossible (such an algorithm could be used to solve the halting problem). Techniques for practical path coverage testing instead attempt to identify classes of code paths that differ only in the number of loop executions, and to achieve "basis path" coverage the tester must cover all the path classes.


Set as favorite
Bookmark
Email this
Hits: 1579
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:

  • Other Code Coverage Metrics (2008-08-06)
  • Path Coverage (2008-08-04)
  • Decision Coverage (2008-08-04)
  • 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)


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