Objective
In the process of programming, multiple layers of logic control are often nested, and such nesting relationships often lead to the inability to visually see the logical relationship of the program, which can lead to a relatively easy omission during the testing process. So we need to introduce decision table and decision Tree , in which decision table is a very important tool in designing logic control .
Decision table
Not much to say, first look at the definition (although not many people can see at a glance), but I decided to first listed here, and so you read the following examples will understand. Concept: Decision tables are tools for analyzing and expressing different operations under multiple logical conditions.
Composition
Conditional piles--list all the conditions of the problem
Condition Item--Lists all possible values for conditions given by the condition pile
Action Piles--lists possible actions that the problem prescribes
Action item-The action that the expense should take when each group of the condition item is evaluated
Rules--specific values for any combination of conditions and their corresponding actions are called rules. A column that runs through the condition and action items in a decision table is a rule.
Steps to establish a decision table
Determine the number of rules
List all the conditions piles and action piles
Fill in Conditional items
Fill in action piles and action items to get the initial decision table
Simplification, merging of similar rules
Select test data and design test cases according to the decision table
"Android Test" "essay" Test analysis--decision table, decision tree