White-box testing-five methods of logical path coverage and physical path coverage (2)

Source: Internet
Author: User

5. Conditional combination path coverage: By designing enough use cases, all possible combinations of condition results in each decision appear at least once when these test cases are run. Example:
Test Cases Input Expected output Path
TC8 X = 4 Y = 2 z = 0 3 Sacbed (red)
Tc9 X = 1 y = 2 z = 1 2 Sabed (blue)
Tc10 X = 2 y = 1 Z = 0 3 Sabed (brown)
TC11 X = 1 y = 1 Z = 1 1 Sabd (yellow)
6. physical path coverage: By designing enough test cases, Program Each possible physical path must go through at least once (if the program has a loop, each loop must go through at least once ). Example:
Test Cases Input Expected output Path
Tc12 X = 4 Y = 2 z = 0 3 Sacbed (red)
Tc13 X = 1 y = 2 z = 1 2 Sabed (blue)
Tc14 X = 1 y = 3 Z = 0 1/3 Sabed (brown)
Tc15 X = 1 y = 1 Z = 1 1 Sabd (yellow)

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.