How to perform Decision Table Testing Technique with example
Conditions | Stub | Entry (rules) | |||||
C1 | True | False | |||||
C2 | True | False | True | False | |||
C3 | True | False | - | True | False | - | |
Actions | A1 | x | x | | x | | |
A2 | x | | | | x | | |
A3 | | x | | x | x | | |
A4 | | | x | | | |
Test Case Generation
· Conditions : Inputs
· Actions: Outputs
· Rules: test cases
Example:
| Stub | Rule1 | Rule2 | Rule3 | Rule4 |
Conditions | Flyer member | Yes | Yes | No | No |
Class | Business | Economic | Business | Economic | |
Actions | Upgrade to first | Yes | No | No | No |
Upgrade to business | - | Yes | - | No |
Testcase1: Frequent flyer member, travelling in Business class
Testcase2: Non-member, travelling in Economy class
Possible Answers:
1. Testcase1 – Don’t offer any upgrade, Testcase2 – Don’t offer any upgrade.
2. Testcase1 – Don’t offer any upgrade, Testcase2 – Offer upgrade to Business class.
3. Testcase1 – Offer upgrade to First, Testcase2 – Don’t offer any upgrade.
4. Testcase1 – Offer upgrade to First, Testcase2 – Offer upgrade to Business class.
Follow below steps to answer:
1. Match with conditions in with available rules as input
2. When all the conditions match at that time, verify respective rule section for the answer.
For example in testcase1, frequent flyer member is available with rule1 and rule2. Now check for the travelling business class, here rule 1 only match with the condition. So Rule1 satisfy both the condition 1 and condition2. So according to rule1 testcase 1 allows offer upgrade to First
In testcase 2, non member is available with rule3 and rule4. Now check for the travelling economy class, here rule 4 only match with the condition. So Rule4 satisfy both the condition 1 and condition2. So according to rule4 testcase 2 allows Don’t offer any upgrade.
So answer is ‘Testcase1 – Offer upgrade to First, Testcase2 – Don’t offer any upgrade.’
hi tripthi,
ReplyDeletefirst of all thank u for this post. i am a beginner in testing field , i am trying to appear for istqb .
but i couldnt follow this decision table and state diagram part. would u please elaborate this .
thanks
It has been basically extraordinarily liberal with you to give straightforwardly what precisely numerous people would've promoted for an eBook to wind up making some money for their end, principally given that you could have attempted it in the occasion you needed. Keep sharing
ReplyDeleteDatastage online training in Delhi, Pune, Chennai
Datastage online training in Bangalore, Kolkata, Noida, Hyderabad