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 Path Coverage
Google
Web
SoftwareQAtestings
Path Coverage | Print |  E-mail
  • 1
  • 2
  • 3
  • 4
  • 5
( 1 Vote )

This metric reports whether each of the possible paths in each function have been followed. A path is a unique sequence of branches from the function entry to the exit.

Also known as predicate coverage. Predicate coverage views paths as possible combinations of logical conditions.

Since loops introduce an unbounded number of paths, this metric considers only a limited number of looping possibilities. A large number of variations of this metric exist to cope with loops. Boundary-interior path testing considers two possibilities for loops: zero repetitions and more than zero repetitions. For do-while loops, the two possibilities are one iteration and more than one iteration.

Path coverage has the advantage of requiring very thorough testing. Path coverage has two severe disadvantages. The first is that the number of paths is exponential to the number of branches. For example, a function containing 10 if-statements has 1024 paths to test. Adding just one more if-statement doubles the count to 2048. The second disadvantage is that many paths are impossible to exercise due to relationships of data. For example, consider the following C/C++ code fragment:

if (success)

statement1;

statement2;

if (success)

statement3;

Path coverage considers this fragment to contain 4 paths. In fact, only two are feasible: success=false and success=true.

Researchers have invented many variations of path coverage to deal with the large number of paths. For example, n-length sub-path coverage reports whether you exercised each path of length n branches.


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

  • 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)
  • Useful Tips of Database testing using Visual Basic Tools (2008-01-09)
  • Test Case Template (2008-05-12)


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