Tag: cannot overwrite the include path software use case Branch validation section
Statement overrides
Write a sufficient number of test cases so that each statement can be executed at least once. is a relatively weak test standard, the detection is not sufficient.
Decision Overlay (or branch test)
Write enough tests so that each judgment is true and false, so that each branch is executed at least once. Inadequate testing, some conditions are not verified.
Conditional override
Write enough tests so that each condition in the judgment has a true and false value. Insufficient detection, all paths may not be overwritten.
Decision/Condition Coverage test: Comprehensive decision coverage and conditional overrides, which will all possible all of the criteria in the judgment be executed at least once, and all possible judgments will be executed at least once, and each entry point will be called at least once. Not fully tested (? )
Multiple conditional overrides
The combination of all possible conditional results in the judgment and all entry points are executed at least once.
Summary
The set of test cases satisfying multiple conditions also satisfies the criterion of decision coverage, conditional coverage and decision/condition coverage.
For programs that contain only one condition for each judgment, the test cases include: 1. All results of each judgment are executed at least once; 2. All program portals are called at least once to ensure that all statements are executed at least once. For a program that contains multiple criteria judgments, the test case needs to include a combination of all possible conditional results, and all entry points are executed once.
Software Testing--(3) White box testing