当前位置:网站首页>Detailed explanation of the decision table method of common test case design methods

Detailed explanation of the decision table method of common test case design methods

2022-07-18 15:32:00 Love coriander

Theoretical part

Decision table is a tool to analyze and express different actions of the system under various input conditions , It can combine complex logical relationships with various The condition combination is expressed concretely and clearly .

Condition stake (Condition Stub)

Action post (Action Stub)

Condition item (Condition Entry)

Action items (Action Entry)

 Insert picture description here

Steps to design use cases

1、 List all condition piles and action piles .

2、 Determine the number of rules . If there is one here 3 Conditions , Each condition has two values , So there should be 2×2×2=8 Rules .

3、 Fill in the conditions .

4、 Fill in the action pile and action item , Simplification , Merge similar rules .

5、 Turn each rule into a use case .

Related examples

Purchase movie tickets .

Condition stake

1、 Swipe Huaxia Credit Card ;

2、 Wednesday afternoon ;

3、 couples .

Action post

1、 Cinema ticket 8 fold ;

2、 Cinema ticket 7 fold ;

3、 Cinema ticket 5.6 fold ;

4、 Free tickets for girls .

 Insert picture description here

Test case examples

1、 Non lovers don't swipe Huaxia information card on Wednesday afternoon , Conduct ticket purchase test ;

2、 Couples don't swipe Huaxia Credit Card on Wednesday afternoon , Conduct ticket purchase test .

Scope of application

1、 Multiple check boxes , At the same time choose , Do not select at the same time , Choose a part ;

2、 There are many kinds of logic in the function 、 Multiple relationships , When different conditions are combined , The corresponding results are different ;

3、 The logic processing process is complex . for example : Control system 、 Game testing .

Advantages and disadvantages of the decision table

advantage

It can list complex problems one by one according to various possible situations .

Concise and easy to understand , It can also avoid missing , Quickly list all possible situations , Including nonexistent combinations , You can combine according to the advantages .

shortcoming

There is a risk of missing measurement in the merger .

Because I made a full combination , So the number of use cases is especially large when there are many inputs ( Condition stake ), The portfolio grows exponentially .

Now I invite you to join our software testing learning exchange group :746506216】, remarks “ The group of ”, We can discuss communication software testing together , Learn software testing together 、 Interview and other aspects of software testing , There will also be free live classes , Gain more testing skills , Let's advance together Python automated testing / Test Development , On the road to high pay .

Friends who like software testing , If my blog helps you 、 If you like my blog content , please “ give the thumbs-up ” “ Comment on ” “ Collection ” One Key triple connection !

原网站

版权声明
本文为[Love coriander]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/199/202207160708114024.html