Test case design - determination table method (3)

1, Why determination table design test cases?

The method of equivalence classes considered in detail demand input field, but for the input field and the input fields can not cover when there is a correlation, (such as when partitioning equivalence class test cases, a new test designed to only cover one invalidation price class, until all invalid equivalence class is completely covered, is not considered valid combinations of invalid equivalence class equivalence class). So consider the need for a design of mutual relations between the input field testing needs to consider the description of the business.

2. What is the decision table?

Analyzing table drinking expression analysis under certain input conditions, in response to the measured object according to different input tools for a variety of conditions and business logic combinations.

The table structure determination

 

Conditions Pile: All measured object input

Condition: true and false values ​​for the input conditions may pile

Action pile: the conditions for the measured object pile may take all actions

Action Item: piles for action, in response to the measured object may result values

3, how to use decision table design test cases?

step:

First, list all of the conditions and actions

Second, according to the extracted actions and conditions the pile the pile, the design rule determining table to determine the number (if there are n number of conditions, each have two values ​​(0,1), n ​​th species can produce 2 rule)

Third, fill in the decision table

Fourth, simplify decision tables (merge determination table at the expense of adequate testing, chaos rules within the business logic of the proposed merger is not the cost of .8 bar)

Fifth, after the extraction test (simplified determination table, the table can be determined in each extraction rule as a test case, the test determination table rules are obtained, not the final test. Point correctness verification rules can not only verify the business rules correctness)

 4, determine the advantages and disadvantages table design test cases?

Advantages: determination table fully considered the combinations between the input fields, each rule covering a plurality of input conditions, considering constraints entered, reduces the risk of leakage test. At the same time the use of decision tables inferred logical requirements specification itself, the reverse proved correct requirements.

Disadvantages: When you enter too many items, the number of rules to n-th power surge, decision tables can be very large, the use of logic will cause the loss of the determination table consolidation, business confusion error.

5, an example of the determination table of test case design

It shows a row: the calling and called down or allowed arrears

Step a: List all conditions and actions

Conditions: Stop / arrears

Action: the calling and called

Step Two: Determine the number of rules

There are three conditions, each have two values, so there are eight rules

Step three: Fill decision table

Step four: only four rules do not merge, 8 following the rules is not recommended to merge

Step Five: Rule Extraction:

(1) the user is not delinquent non-stop, can be called the main

(2) non-stop user arrears, does not allow the calling and called

(3) the user does not stop arrears, allowed the calling and called

(4) user downtime arrears, allowed called live

Turn: https://www.cnblogs.com/yangyangchunchun/p/8967488.html

Guess you like

Origin blog.csdn.net/qq_39247153/article/details/88554665