Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 3 of 6

From variants to scenarios

9 min

Listen to this lesson

0:00 / 8:50

A mining model with 300 variants is not a test plan. Most variants differ only in the order of two steps, or in a repeated activity that does not change the outcome. The skill is to turn variants into a manageable set of test scenarios that still represent what the business does, and to pick which of them to automate.

Step 1: map activities to test steps

Mined activityTest stepApp or transaction (Contoso)
Order createdCreate standard order for sold-to 17100001Manage Sales Orders (F1873) or VA01
Credit block setOrder exceeds credit limit; check statusCredit status in the order; Manage Credit Accounts for the credit account
Credit releasedRelease blocked orderBlocked SD documents (VKM1) or the Fiori release app in your release
Delivery createdCreate outbound delivery from shipping point 1710VL01N or the Fiori Create Outbound Deliveries app
Goods issue postedPick from 171A and post goods issueWarehouse task confirmation in EWM 1710, then goods issue
Invoice createdBill the deliveryVF01 or the Fiori Create Billing Documents app

Each mined activity maps to a test step and the app or transaction that performs it. Verify app IDs for your release.

Step 2: group variants into scenarios

  1. Start from the variants that together cover most cases (Contoso's six variants cover 92%).
  2. Merge variants whose differences do not change what the system does, for example the same steps where only the order of two independent changes differs.
  3. Keep variants separate when the difference triggers different system logic: a credit block, a partial delivery, a credit memo request, a cancellation.
  4. Turn each scenario's attribute spread into data variation: order types, sales areas, customer groups and plants that appear in real cases.
  5. Record the variant IDs each scenario represents, so coverage can be measured later.
Illustrative course data: six top variants become six scenarios; the long tail gets a review, not a test each.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-311
VariantV2: order, credit block, credit release, delivery, goods issue, invoice, payment (12% of cases)
ScenarioO2C-03 credit block path, covering V2 and the rejection variant
Test casesO2C-03-A release and deliver; O2C-03-B reject; both in SAP Cloud ALM with variant IDs
Data rowsFleet customer in plant 1710; aftermarket customer in plant 1720; one order over the credit limit by a small margin
From mined variant to scenario, test cases and data rows, with the link kept at every layer.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-311

Variant grouping is ordinary test design with better evidence. The equivalence classes and decision tables from sap-tst-201 still apply: variants that the system treats the same belong in one class, and the attributes that change system behavior become the conditions of a decision table. Mining replaces guesses about which classes exist and how big they are.

Step 3: data variation from attributes

Variants tell you the path; attributes tell you the data. If 30% of the credit-block cases come from aftermarket customers in plant 1720 and 70% from fleet customers in plant 1710, the credit-block scenario needs both, because the profit center derivation and the credit segment may differ. Mining makes this explicit: slice each variant by order type, sales area, plant and customer group, and add a data row for every slice with a meaningful share. Wei turns those rows into test data recipes for CMQ and later CMR.

Scenario O2C-03 as states: the test must reach both the released and the rejected outcomes of the credit block.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-311

Step 4: pick automation candidates

CriterionWhy it mattersContoso example
High frequencyRuns in every regression; automation pays back fastestO2C-01 standard order to cash
Stable pathFewer script changes per releaseO2C-01 and O2C-04
Many data variationsOne script, many rowsO2C-03 across fleet and aftermarket
Clear expected resultsAssertions can be exactPrices, credit status, document flow
Low frequency but high impactUsually stays manual or semi-automated, but stays in scopeO2C-05 complaint and credit

Mining frequency feeds the automation decision; Ravi uses it to rank candidates.

Ravi's automation portfolio has about 400 regression tests, of which 240 are to be automated. Mining gives him an ordering inside that plan: automate the scenarios that represent the most real cases first. The long tail, the 8% of cases spread over hundreds of variants, is reviewed by Maria for business impact, not automated variant by variant.

What would you do?

The mining model shows 40 variants that differ from V1 only by an extra "change sales order" step at different points. Together they hold 9% of cases. A tester proposes 40 new test cases. What is the better approach?

Key points
  • Map mined activities to test steps and the apps or transactions that perform them.
  • Group variants by what the system does differently, not by sequence labels.
  • Use attribute slices to define data variation per scenario.
  • Rank automation candidates by frequency, stability and data variation; keep high-impact rare paths in scope.

Check your understanding · not graded

Lesson check

  1. 1. When should two variants become separate scenarios?

  2. 2. What do variant attributes give a test designer?

  3. 3. Which scenario is the best first automation candidate at Contoso?

  4. 4. Why store variant IDs on each test case?