How do you determine if a condition belongs in a set of conditions for a decision table

Andrew Sieffert's picture

I was hoping you might be able to provide some direction on creating decision tables.  There are about 11 different promotions and each promotion triggers a different set of actions such as a discount on a Basic membership, or a discount on a Plus membership

How do I determine if I should include other conditions?  For example, we have 4 different rate types (Senior, Regular, Employee and Honorary) that get applied BEFORE the promotions are calculated and can result in different charges for our memberships.  I am just not sure if rate type should be a separate decision table, or an additional condition in the Promotions decision table?

Any assistance is appreciated.

Thanks

 

5 Answers

Bas Dijkstra's picture

What is the value you want to verify in your test cases? The final membership fee? Or the rate?

In the first case, the rate is just another input parameter and should therefore be a condition in the overall decision table. In the second case, the rate is the outcome and should have its own decision table.
So it all depends on what you want to test..

Andrew Sieffert's picture

Hi Bas, 

Here is the table I am creating.  Each promotion has a set of actions that need to be validated.  As you can see, some discount a registration fee, others discount a membership fee of a certain type.  I am not trying to validate the total price as I am the discount amount applied, and other promotional items.

 
Rule 1
Rule 2
Rule 3
Rule 4
Rule 5
Rule 6
Rule 7
Rule 8
Rule 9
Rule 10
Rule 11

Conditions
 
 
 
 
 
 
 
 
 
 
 

Promo
Best Western
DM 1
DM 2
DM 3
DM 4
DM 5
Driver Ed
Free Plus
Protect Your Family
Shred It
Waive Reg Fee Summer

 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 

Actions
 
 
 
 
 
 
 
 
 
 
 

Free Primary (Basic Coverage)
Yes
No
No
No
No
No
No
No
No
No
No

Free Primary (Plus Coverage)
No
No
No
No
No
No
No
Yes
No
No
No

Free Associate (Basic Coverage)
No
Yes
Yes
Yes
Yes
No
Yes
No
Yes
No
No

Free Associate (Plus Coverage)
No
No
No
No
No
Yes
No
Yes
No
No
No

Waive Registration Fee
Yes
No
No
Yes
Yes
No
No
No
No
No
No

Waive Registration Fee (Summer Promo)
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes

ACCR Extension
No
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No

$10.00 of Join
No
No
No
No
No
No
No
No
No
Yes
No

Andrew Sieffert's picture

Sorry, didnt realize this post was so messed up.  You answered my question Bas thank you.  Essentially it depends on your outcome or what you are trying to test.  Is it best then to determine your outcomes/actions first and then your conditions?  Does it help to simplify your outcomes (make sure they are targeting a specific outcome) first in other words?

 

 

Bas Dijkstra's picture

Hi Andrew,

 

yes, that sounds like a good approach to me. Glad to hear you figured it out!

Andrew Sieffert's picture

Can anyone suggest material related to Decision Tables.  I want to gain a deeper knowledge of this technique while I continue to apply it to my projects.  Anything at all, web articles, books, etc..

Thanks!

StickyMinds is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.