ICCO · TEST AUTOMATION

Test automation: starting from the critical path

We do not automate everything, but first what costs money or operations if it fails. Every figure can be traced back to the story, and the dashboard honestly shows what really runs.

Discuss your project →To test management

THE PRINCIPLE

Highest risk first: four categories in a fixed order

We start with category 1 and finish each category before the next one begins. This puts the effort where a defect would be most expensive, and not where tests are simply easiest to write.

  1. 1

    Critical path

    The chain from price to accounting: price, volume, offer, order, invoice, payment. If something breaks here, billing is wrong or does not happen at all.

    Example · scenarios running
    41 %
  2. 2

    Customer hot spots

    Outside the chain: the places where customers report problems most often in support.

    Example · scenarios running
    5 %
  3. 3

    Daily workflows

    What is used most every day, for example requests, appointments, documents, planning and login.

    Example · scenarios running
    9 %
  4. 4

    Breadth

    Everything else. Added when capacity is free, or stays manual on purpose.

    Example · scenarios running
    0 %
  1. SizedAcceptance criteria are classified
  2. CreatedScenarios are in the knowledge base
  3. AutomatingTests are being built in the pipeline
  4. DoneEvery created scenario runs

Every scenario goes through four phases. “Done” means the scenario runs in the pipeline, it does not just exist on paper. The percentages above are example values.

TRANSPARENCY

Transparency from story to test run

Every figure in the dashboard can be opened up: from the category to the step, from the step to the story, from the story to the scenario and down to the test that actually runs.

  1. Story

    Requirement

    The business requirement in Jira, with area and priority

  2. Acceptance criterion

    Verifiable statement

    Given, when, then: every criterion can be counted individually

  3. Scenario

    Test description

    Scenarios in BDD style, kept in the knowledge base

  4. Xray test

    Published

    Test case with key, linked to the story, status “Test ready”

  5. Pipeline job

    Runs in the test run

    The job selects tests by filter and executes them

How scenarios come about: Example Mapping and BDD →

TWO FIGURES

Created does not mean tested

A test case on paper protects nothing. That is why we show both figures side by side, and the stricter one is the one we measure ourselves by.

Created: criterion has a test case91 %

Almost every criterion has a created test case. This shows how far planning has come, but not yet what is actually checked.

Tested: runs in every test run34 %

Only these criteria are really verified in every test run. This is the figure that secures a release, and the one we raise.

THE DASHBOARD

Progress at a glance

A dashboard for the business unit, test management and development. The values here are a made-up example from the scenario “from order to invoice”.

Test automation: progressExample values
Regression progress16 %240 of 1,480 created scenarios running
Critical path41 %205 of 500 scenarios running
Tests per run2407 pipeline jobs

Critical path at a glance

Share of each step’s acceptance criteria that are checked by running tests. Clicking a step opens the stories behind it.

  • A1Price master data resolves0 %
  • A2Volume capture feeds the calculation21 %
  • A3Calculation and line items hold their values55 %
  • A4The offer reaches the customer14 %
  • A5The customer confirms and an order is created68 %
  • A6The order becomes an invoice with the right number57 %
  • A7Payment, dunning and credit notes settle correctly38 %
  • A8The invoice reaches accounting unchanged12 %

Recently published

Features most recently published to Xray.

  • Invoice recipient: rules on saveToday · 4 tests published to Xray
  • Select an existing debtor or create one inlineToday · 3 tests published to Xray
  • Invoice address defaults from order data with overrideToday · 5 tests published to Xray
  • Customer master data: segmentation and order addressToday · 4 tests published to Xray
  • Customer master data: base fields and defaultsToday · 4 tests published to Xray

Regression sets

Each set covers part of the critical path, with progress and status.

SetCoversProgressRunningStatus
REG-01Access and shared interface15 of 15Done
REG-02Customer and invoice identity33 of 36In progress
REG-03Offer calculation and line items72 of 124In progress
REG-04Offer dispatch, confirmation, order31 of 56In progress
REG-05Invoice creation and numbering44 of 110In progress
REG-06Payment, dunning and export22 of 68In progress
REG-07Price master data0 of 70Not started
Clicking a step, here A1, opens the detail view
Detail view of step A1Example values

A1 · Price master data resolves

Critical path · step 1 of 8 · 7 stories

Created, not running yet
Acceptance criteria96
With test case (created)70 %
Checked by running tests0 %
Scenarios created54
Running0
Stories of step A1 with coverage by test cases and running tests
StoryCriteriaWith test caseChecked by running testsRunningStatus
A1-01 General price settings2820 of 2871 %0 of 280 %0Created
A1-02 Price lists and tiers2015 of 2075 %0 of 200 %0Created
A1-03 Prices for additional services97 of 978 %0 of 90 %0Created
A1-04 Discounts and surcharges147 of 1450 %0 of 140 %0Created
A1-05 Tax rates and currencies118 of 1173 %0 of 110 %0Created
A1-06 Customer-specific prices85 of 862 %0 of 80 %0Created
A1-07 International price calculation65 of 683 %0 of 60 %0Created
CUSTOMER FEEDBACK

Customer reports decide what we automate next

Reports from operations are the best data source for risk. We link them to the stories and see where customers have problems that no running test guards yet.

  1. 500

    Support tickets

    reported in the observation period

  2. 40

    Jira issues

    derived from them, each assigned to a story

  3. 16

    On the critical path

    40 % of support issues

  4. 5

    Checked by tests

    31 % of those already run in the pipeline

Example values. The gap between the last two figures is the list of the next automations.

PIPELINES

What runs in every test run

The tests are distributed across pipeline jobs by area and run in parallel. A scenario with several example rows runs once per row, so the number of tests per run can be higher than the number of Xray tests.

Example of pipeline jobs with workers and tests per run
JobWorkersTests per run
Sequential (tenant settings)136
Area: customers252
Area: requests214
Area: offers270
Area: orders228
Area: invoices230
Area: accounting210
Total13240

After the automated tests comes the acceptance test with the business unit. More on UAT with exploratory testing →

ALWAYS CURRENT

A dashboard that updates itself

There is no hand-maintained status slide. The page is built from the same data the tests are built from, and therefore matches reality.

  1. 1

    Test published

    The test case gets its key in Xray, is linked to the story and set to “Test ready”. The pipeline filter picks it up.

  2. 2

    Repository pushed

    The automation code lives in the repository and is tied to the commit of the test.

  3. 3

    Dashboard updated

    The page is regenerated from the knowledge base and Xray and stored with the publishing commit.

RESULT

What you get

Risk before volume

The effort flows where a defect would be most expensive. You can see why one category comes before another.

Honest coverage

You see what is created and what is really tested, and can secure releases on the stricter figure.

Traceable down to the story

Every figure can be opened up. Questions from the business unit are answered in the dashboard, not in a meeting.

FAQ

Test automation: questions and answers

Why do you not automate everything?

Because not everything carries the same risk. A defect in the chain from order to invoice costs money, a defect on a settings page usually does not. We automate in four categories in a fixed order by risk. Breadth at the end is only added when capacity is free, or stays manual on purpose.

What is the critical path?

The critical path is made up of the flows with the highest priority in the system. If something breaks here, the bill is not paid or is calculated wrongly. In the example on this page it is the chain from price through offer, order and invoice to accounting.

When is an acceptance criterion considered covered?

We distinguish two levels: the criterion has a created test case, or it is checked by a test that actually runs in the pipeline. Only the second level counts as real protection. Both figures are shown side by side.

How does the dashboard stay current?

The dashboard is regenerated from the knowledge base and from Xray as soon as a test case is published. There is no hand-maintained status slide. Every figure can be opened down to the story.

How do customer reports feed in?

Support tickets are linked to Jira issues and stories. This shows which reports sit on the critical path and which of them are already checked by running tests. The order of the next automations follows from that.

Which tools do you use?

Typically Jira and Xray for requirements and test cases, scenario-based tests in BDD style and a CI pipeline that runs the published tests. The approach is tool-independent and can be adapted to your landscape.

Does this work with SAP Cloud ALM?

Yes. The method is tool-neutral. SAP Cloud ALM manages test cases, test plans and defects but has no automation engine of its own. The automated tests therefore keep running in the pipeline, and we clarify how the results are connected in the project.

All test tools compared →

NEXT STEP

Let us talk about your test automation

Briefly describe your situation. We will get back to you with a first assessment.

Discuss your project →