Decision Table - what it is and how to apply

Decision Table (decision table) - a technique that helps to visualize the combinator of conditions from the TK.





The simpler and clearer the requirements, the less discrepancies there will be. And the fewer fixes after implementation. And the easier it is for us, testers, to write test cases for such requirements))





In testing, a decision table is used to create test cases based on requirements. And do not forget anything with complex combinations of input conditions! After all, each row or column of the table โ†’ a ready-made test case.





Decision Table refers to test design techniques. So, they ask about her at interviews. And so I will make a short series of articles on such techniques to help novice testers. To familiarize yourself with each technique:





  1. Use case





  2. Decision Table - current article





  3. State & Transition Diagramm - TBD





  4. Other diagrams, diagrams, pictures (this bonus to techniques) - TBD





Today we are talking about Decision Table (decision table) :





  1. How to make a table





  2. Advantages of the approach





  3. Cons of the approach





  4. Total





In addition to the article, there is a video about the decision table from my channel. Who is more convenient! :)





How to make a table

  • Horizontally - write down the conditions that affect the result. And just below - the result itself, in the original Action - the action that needs to be performed.





  • โ€” :  .









 





1





2





...





N









 





 





 





 





1





 





 





 





 





1





 





 





 





 





...





 





 





 





 





N





 





 





 





 





 





 





 





 





 









 





 





 





 





1





 





 





 





 





2





 





 





 





 





...





 





 





 





 





N





 





 





 





 





โ€” (action).






1. ( )





, 2 :





  1. 5 ?





  2. ?





, .





2 2 , 4 , 4 . :





  • โ€”  , .





  • , โ€”  , . โ€”  , ยซ , ยป. ...





  • , โ€”  . โ€” . , , ? , โ€” .





  • , โ€”  . , !





, :





 





1





2





3





4









 





 





 





 





5





















?





















 





 





 





 





 









 





 





 





 









200





100





50





10





 





, , ? !





. โ€” ! โ€” , .





, - . , 4 , .






2 , 3 . . :





 





1





2





...





N









 





 





 





 





1





















2





















3





















 





 





 





 





 









 





 





 





 





1





Do X





Do Y





Do X





Do Z





2





Do A





Do B





Do B





Do A





 





โ€”  , .






2. - ( )





-, :









  • ,





. ? :





  • ( - ) โ€” 100, 500, 1000 5000





  • ( , , ) โ€” 5%, 30%, 50% 80%





100 โ€” . , . โ€”  ... .





:





 





1





2





...





N









 





 





 





 









100





500





1000





5000









5%





30%





50%





80%





 





 





 





 





 









 





 





 





 









0%





6%





10%





20%





-





2





8





15





20





 





, 2, 4 โ€”  16 , 16 !





:





... !





, - , :





  • 100 โ€” 0%





  • 500 โ€” 5%





  • 1000 โ€” 10%





  • 5000 โ€” 20%





... , !





. โ€” decision table . , !






 





 





1. โ€” . - . . , , .





2. = -. ยซยป ยซ-ยป, , ! , .





, , , โ€” :





-





1:









2:













1





100





5%





Do X / Do A





2





500





30%





Do X / Do Y





3





1000





50%





Do B / Do C





4





5000





80%





Do B / Do Z





 





3. . .





4. , -. , , .





 





 





, , :





  • โ€”  ยซ ?ยป. .





  • โ€”  . , , -, pairwise ..





 





 





Decision Table :





  • .





  • โ€“ .





  • โ€“ -!





โ€” , . , ? !





, 100 . - , !





See also:





How to compose a use case is another option for filing requirements.





PS - Look for more helpful articles in my blog under the tag โ€œusefulโ€ . And useful videos are on my youtube channel








All Articles