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.
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
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 running41 % - 2
Customer hot spots
Outside the chain: the places where customers report problems most often in support.
Example · scenarios running5 % - 3
Daily workflows
What is used most every day, for example requests, appointments, documents, planning and login.
Example · scenarios running9 % - 4
Breadth
Everything else. Added when capacity is free, or stays manual on purpose.
Example · scenarios running0 %
- SizedAcceptance criteria are classified
- CreatedScenarios are in the knowledge base
- AutomatingTests are being built in the pipeline
- 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 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.
- Story
Requirement
The business requirement in Jira, with area and priority
- Acceptance criterion
Verifiable statement
Given, when, then: every criterion can be counted individually
- Scenario
Test description
Scenarios in BDD style, kept in the knowledge base
- Xray test
Published
Test case with key, linked to the story, status “Test ready”
- Pipeline job
Runs in the test run
The job selects tests by filter and executes them
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.
Almost every criterion has a created test case. This shows how far planning has come, but not yet what is actually checked.
Only these criteria are really verified in every test run. This is the figure that secures a release, and the one we raise.
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”.
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.
| Set | Covers | Progress | Running | Status |
|---|---|---|---|---|
| REG-01 | Access and shared interface | 15 of 15 | Done | |
| REG-02 | Customer and invoice identity | 33 of 36 | In progress | |
| REG-03 | Offer calculation and line items | 72 of 124 | In progress | |
| REG-04 | Offer dispatch, confirmation, order | 31 of 56 | In progress | |
| REG-05 | Invoice creation and numbering | 44 of 110 | In progress | |
| REG-06 | Payment, dunning and export | 22 of 68 | In progress | |
| REG-07 | Price master data | 0 of 70 | Not started |
A1 · Price master data resolves
Critical path · step 1 of 8 · 7 stories
| Story | Criteria | With test case | Checked by running tests | Running | Status |
|---|---|---|---|---|---|
| A1-01 General price settings | 28 | 20 of 2871 % | 0 of 280 % | 0 | Created |
| A1-02 Price lists and tiers | 20 | 15 of 2075 % | 0 of 200 % | 0 | Created |
| A1-03 Prices for additional services | 9 | 7 of 978 % | 0 of 90 % | 0 | Created |
| A1-04 Discounts and surcharges | 14 | 7 of 1450 % | 0 of 140 % | 0 | Created |
| A1-05 Tax rates and currencies | 11 | 8 of 1173 % | 0 of 110 % | 0 | Created |
| A1-06 Customer-specific prices | 8 | 5 of 862 % | 0 of 80 % | 0 | Created |
| A1-07 International price calculation | 6 | 5 of 683 % | 0 of 60 % | 0 | Created |
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.
- 500
Support tickets
reported in the observation period
- 40
Jira issues
derived from them, each assigned to a story
- 16
On the critical path
40 % of support issues
- 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.
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.
| Job | Workers | Tests per run |
|---|---|---|
| Sequential (tenant settings) | 1 | 36 |
| Area: customers | 2 | 52 |
| Area: requests | 2 | 14 |
| Area: offers | 2 | 70 |
| Area: orders | 2 | 28 |
| Area: invoices | 2 | 30 |
| Area: accounting | 2 | 10 |
| Total | 13 | 240 |
After the automated tests comes the acceptance test with the business unit. More on UAT with exploratory testing →
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
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
Repository pushed
The automation code lives in the repository and is tied to the commit of the test.
- 3
Dashboard updated
The page is regenerated from the knowledge base and Xray and stored with the publishing commit.
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.
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.
Let us talk about your test automation
Briefly describe your situation. We will get back to you with a first assessment.
