decision tables l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Decision Tables PowerPoint Presentation
Download Presentation
Decision Tables

Loading in 2 Seconds...

play fullscreen
1 / 15

Decision Tables - PowerPoint PPT Presentation


  • 329 Views
  • Uploaded on

Decision Tables. A useful testing technique and more…. Marien de Wilde, Solution Architect. Definition Application areas Steps to create a decision table Exercise Solution to exercise. In this session …. Definition. Components

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Decision Tables' - Sophia


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
decision tables

Decision Tables

A useful testing technique and more…

Marien de Wilde, Solution Architect

in this session
Definition

Application areas

Steps to create a decision table

Exercise

Solution to exercise

In this session …
definition
Definition
  • Components
  • A decision table lists causes and effects in a matrix. Each column represents a unique combination.
  • Purpose is to structure logic

Cause = conditionEffect = action = expected results

application areas
Application Areas
  • Business Analysis
  • Programming
  • Testing
  • Hardware Design
  • etc
steps to create a decision table
Steps to Create a decision table
  • List all causes in the decision table
  • Calculate the number of possible combinations
  • Fill columns with all possible combinations
  • Reduce test combinations
  • Check covered combinations
  • Add effects to the table
step 1 list all causes
Step 1: List all causes

Hints:

  • Write down the values the cause/condition can assume
  • Cluster related causes
  • Put the most dominating cause first
  • Put multi valued causes last
step 2 calculate combinations
Step 2: Calculate combinations
  • If all causes are simply Y/N values:2number of causes
  • If 1 cause with 3 values and 3 with 2:31 * 23 = 24
  • Or, use the Values column and multiply each value down the column, eg. 3*2*2*2=24

Number of Values to the power of the number of causes with these values

step 3 fill columns
Step 3: Fill columns
  • Algorithm:
  • Determine Repeating Factor (RF): divide remaining combinations by the number of possible values for that cause
  • Write RF times the first value, then RF times the next etc. until row is full
  • Next row, go to 1.
step 4 reduce combinations
Step 4: Reduce combinations
  • Find indifferent combinations – place a ‘-’
  • Join columns where columns are identical
  • Tip: ensure the effects are the same
step 5 check covered combinations
Step 5: Check covered combinations
  • Checksum
  • For each column calculate the combinations it represents
  • A ‘-’ represents as many combinations as the cause has
  • Multiply for each ‘-’ down the column
  • Add up total and compare with step 2
step 6 add effects to table
Step 6: Add effects to table
  • Read column by column and determine the effects
  • One effect can occur in multiple test combinations
exercise specification create a decision table
Exercise: SpecificationCreate a decision table

A mailing is to be sent out to customers. The content of the mailing is about the current level of discounting and potential levels of discounting. The content is different for different types of customers.

Customer Types A, B and C get a normal letter except Customer Type C, who get a special letter. Any customer with 2 or more current lines or with a credit rating of ‘X’ get a special paragraph added with an offer to subscribe to another level of discounting.

exercise possible solution
Exercise: possible solution

“2 or more current lines OR credit rating X”. What if both: AND?

Other customer types? See “O-Other” above.

What about non current lines?