Test case design--decision table method

Source: Internet
Author: User
Reprint Concept

Original: Decision table, also translated as the Judgment table, the decision table is a tabular form to organize the logical relationship of the tool, by the horizontal conditions (because) and action (fruit) and vertical rules (test cases) together.

Advantages

The advantages of a decision table: the ability to enumerate complex issues in a variety of possible situations, concise and avoid omissions. Therefore, the decision table can be used to design a complete set of test cases. In some data processing problems, the implementation of some operations relies on the combination of multiple logical conditions, namely: to perform different actions for the combined values of different logical conditions. Decision tables are well suited to dealing with such problems.

Composition

, the decision table usually consists of the following four parts:

1) Conditional pile (Condition Stub): Lists all the conditions of the problem. It is generally considered that the order of the listed conditions does not matter.
2) Action stub: Lists the actions that may be taken by the problem rule. The sort order of these operations is not constrained.
3) Condition entry (Condition Entry): Lists the values for its left column condition. The true and false values in all possible cases.
4) Action item (Action Entry): Lists the actions that should be taken in case of various values of the condition item.

Setup Steps

5 Steps to construct a decision table:

(1) Determine the number of rules. There are 2n rules for a decision table with n conditions (each condition takes a true, False value).
(2) List all the condition piles and action piles.
(3) Fill in the conditions.
(4) Fill in the action item and get the initial decision table.
(5) Simplifying decision tables and merging similar rules.

If there are more than two rules in the table with the same action, and there is a very similar relationship between the conditional items, you can merge.
The merged conditional item is denoted by the symbol "-", which indicates that the action performed is independent of the value of the condition, called the unrelated condition.

Basic form and extension form

The basic form of the decision table, in the action item is only filled with "true" or "false" or similar expressions (such as t/f, y/n, 1/0).
Extended form of decision table, in the action item can also fill in the value or short text.

Test case design--decision table method

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.