Decision table --- test case design

 

 Decision table   in a program, if the input and output more, more mutual restriction between input and output conditions, in which case the application determination table is appropriate, it can clearly express a variety therebetween complex relationship determination table method Description: a determination table corresponding to the various combinations of values and output values as the input conditions are set out in table form. It can be in a variety of complex issues enumerated all the possible scenarios, concise and to avoid missing. Thus determination table can be designed using the complete set of test cases in addition. Determination table typically consists of the following four parts:   Condition pile - all the conditions listed problems   Condition - conditions given for all possible values of the conditions listed in piles   operation pile - operation may take a predetermined list of questions   operation item - pointed out that the action in each case the conditions set value of the item to be taken , for example: whether the printer can print out the correct contents are a number of factors, including the driver, paper, toner and so on. (To simplify the problem, do not consider jumping off, cardboard and other factors) assumes: Priority warning out of paper, toner and no warning, final warning drivers not to. Consider equivalence classes how to do? Decision table that the printer can print out the correct contents are influenced by many factors, including the driver, paper, toner and so on. (To simplify the problem, without considering the impact factors of soil types off, cardboard, etc.) assumed: Priority warning out of paper, toner and no warning, final warning drivers not to   1) lists the conditions and actions pile pile     conditions pile: a ) driver is properly b) whether there is paper c) whether any toner               action pile: a) print content b) prompts the driver does c) suggesting no paper d) suggesting no toner determining structure and outlined in table 1. column all conditions piles and piles action                                                      
























2. Determine the number of rule
3. Fill Condition
4. Fill operation item to obtain an initial determination table
5. simplified determination table, merge the similar rule
for each condition for N condition determination table, there are 2 ^ n corresponding rule ( They were taken such values), when n is relatively large, very large determination table. Determination table actual use, it is often first simplified. Simplified determination table to merge similar rules as the goal, that is, if the table has two or more than two kinds of rules have the same operation, and there is very similar to the relationship between the condition items, they may be combined. Condition merged by the symbol "-" means that the operation of the implementation is independent of the value of the condition, regardless of the conditions referred

http://www.bcbxhome.com/bcbx/forum.php?mod=viewthread&tid=68&fromuid=27
(Source: ed ed school test software testing)

Guess you like

Origin www.cnblogs.com/zihkj/p/12432000.html