Basic Test Scenario creation with Decision Table

Luís Aguirre
2 min readDec 7, 2020

Hi folks, follow one basic example about Decision Table under Test Scenario definition. In my job, I have created this artefact with my Engineers, and We have had excellent test coverage results. This is a good brainstorm documentation, and It can provide a path for future automated scripts.

Usually, I work on this artefact with my team, during Sprint Planning session. However, as I sayd on my post about refinemment, the process to writeTest Scenarios starts on Grooming session, as a first draft and in this session my goals are:

  • Eliminate existing knowledge gaps (when they exist)
  • Share with Engineers knowledge about Test Scenarios
  • Create new Test Scenarios when applicable

Now, some suggestion how to write scenarios on Decision Table mode:

Example:

GIVEN that a feed is received from application ABC
WHEN Campaign Name is equal to Customer Not Available
AND Group Name is in (US.A,US.B,US.B)
AND Entitlement is equal to Premium
THEN change the status from case to Need answer

Steps:

  1. Find the happy path: The information needs to match the Story/Feature goal. If I proceed with all actions/data defined on Acceptance criteria, I should match an expected results previous defined. (Lines in green on image above)
  2. Find Negative scenarios: If you set a wrong information, a data different from defined in the happy path… The story goal won’t be reached. (Lines in red on image above)

Of course this is a basic example, and It isn’t fit for all scenarios/companies or stories existents. This isn’t the silver bullet for test strategy. But, If you would like to start to think about Test Scenarios, Decision Table can help you. This strategy has helped to share Test Discipline with my Engineers and could help you too, with your challenges. Good luck.

--

--

Luís Aguirre
Luís Aguirre

Written by Luís Aguirre

As a program manager, I'm responsible for ensuring a specific set of projects are delivered on time, within budget, and to the established scope.