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

Lesson 5 of 6

Writing for handover and automation

7 min

Listen to this lesson

0:00 / 9:29

At go-live the test pack changes owners. At Contoso, the system integrator's testers leave after hypercare and Contoso's internal team takes over regression testing for quarterly updates and support packs. Some of the pack will be automated later. Both groups inherit what you wrote, without you there to explain it. This lesson collects the habits that make a test case transferable. None of them is expensive at the time of writing. All of them are expensive to retrofit, because by the time a pack is handed over the people who knew the missing details are busy elsewhere or gone. A handover-ready test case has six properties:

  • Self-contained: everything needed to run it is in the case or in a referenced data set; nothing lives only in the author's head or in a chat thread.
  • Deterministic: the same data and the same system state give the same result. Waits for background jobs, output processing or workflow are stated explicitly.
  • One verdict per check: each expected result can be marked pass or fail on its own, so a partial failure is visible.
  • Parameterized: data comes from the data set and runtime values, never from literal numbers in the steps.
  • Restartable: postconditions and cleanup are stated, so the case can run again in the next cycle.
  • Owned and versioned: an owner, a version, a change note and a review status, so the next person knows whether it is current.
  1. Can it run from the case and its data set alone?Yes → next · No → write down what lives in the author's head
  2. Are waits for jobs, output and workflow stated?Yes → next · No → name the job and the maximum wait
  3. Can each check pass or fail on its own?Yes → next · No → split combined checks
  4. Are all values from the data set or runtime values?Yes → next · No → replace literal numbers
  5. Are cleanup, owner and version recorded?Yes → handover-ready · No → add them before handover
Five questions check whether a test case can change owners without its author there to explain it.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-202

Two of these properties trip up SAP packs more than the others. Determinism suffers from background processing: output, workflow, batch jobs such as billing due list runs and interfaces may not complete the instant the user saves. A step that says "check the invoice output" without saying how long to wait, or which job must run first, gives different results for different testers. Restartability suffers from consumed data, covered in lesson 2. Both are fixed by writing down what the author knows implicitly: which job, how long, and what to reset.

Next, build from reusable blocks. Large SAP scenarios are long chains, and long chains are where handover breaks first. Rather than writing one 60-step monolith for "order to cash with credit check, partial delivery and payment", write reusable building blocks and chain them. Each block is a small test case with its own inputs, outputs and checks. The same blocks then serve other scripts: "create billing document" is reused in the partial-delivery and the returns scenarios, and "post incoming payment" is reused by the finance team's cash application tests. In SAP Cloud ALM, test cases are built from solution process activities and can be reused across several test plans and cycles, which rewards this design. When a block changes, for example because a new mandatory field appears on the sales order, you change it once and every script that uses it is current again. Keep each block's inputs and outputs listed at the top, so whoever chains it can see what it needs and what it hands on.

One 60-step monolithChained reusable blocks
A failure points to"Something in order to cash"One block, with its inputs and outputs
ReuseNone; copied and edited per scenario"Create billing document" serves partial delivery and returns
Change to billingEdit every script that contains itEdit one block
HandoverBreaks first on long chainsEach block is small enough to run cold
Small reusable blocks localize failures and changes that a long monolithic script spreads across every scenario.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-202
  1. Create sales orderIn: customer, product, quantity. Out: ORDER_NO. Check: price and credit status.
  2. Create and pick deliveryIn: ORDER_NO. Out: DELIVERY_NO. Check: picked quantity.
  3. Post goods issueIn: DELIVERY_NO. Out: material document. Check: stock and COGS posting.
  4. Create billing documentIn: DELIVERY_NO. Out: BILLING_NO. Check: revenue and receivable posting.
  5. Post incoming paymentIn: BILLING_NO. Check: receivable cleared.
An order-to-cash script chained from five reusable blocks, each with inputs, outputs and checks.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-202

Ready for automation

Automation does not fix a vague test case; it runs the vagueness faster. An automation engineer converting your script needs every step to be unambiguous and every check to be something a tool can compare. The table shows typical conversions.

Written for a humanReady to automate
Use a typical fleet customerUse CUSTOMER from data set DS-O2C-01, variant A
Check the price looks rightNet value equals QUANTITY × CONTRACT_PRICE from the data set
Wait a bit for the invoice outputWait until the billing document output status shows processed, maximum 5 minutes
Fix any warnings and continueIf the incompletion log is not empty, stop and record a blocked result
Make sure finance is happyJournal entry for BILLING_NO credits the revenue account in the data set by the net value

Turning human-oriented wording into automatable steps.

Which SAP tool does the conversion depends on your landscape. For SAP S/4HANA Cloud Public Edition, SAP provides the Test Automation Tool, which works with SAP Cloud ALM. On-premise and Private Edition landscapes have historically used eCATT and, with SAP Solution Manager, component-based test automation (CBTA); check the current SAP guidance for your release before committing, because tool support changes over time. The writing discipline is the same whichever tool your project picks, and it pays off even if nothing is ever automated: a script an automation engineer could convert is also a script a new tester can run without asking questions. One more habit helps both audiences. Use the same business terms throughout the pack, matching the terms in the process design, and keep a short glossary with the data sheets. If one script says "customer", another "sold-to party" and a third "account" for the same thing, the next owner will wonder whether they are different.

  1. RealizeCases written and reviewedAuthored with data sets, runtime values and evidence lists
  2. SIT and UATCases executed and refinedEvery question a tester asks becomes an edit to the case
  3. CutoverTransferability checkFive random cases run by an outsider before Luis signs the handover item
  4. HypercarePack handed to ContosoIntegrator testers leave; the internal team owns regression
  5. Each quarterRegression and automationPack runs before updates and support packs; stable cases are automated
A test pack outlives the project team, so it is written in Realize for the regression team that will run it every quarter.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-202

What would you do?

During hypercare, Grace asks the support team to run Contoso's regression pack before a support pack import. A tester finds a step that reads "Use the usual Chicago customer and post as normal; Maria knows the trick with the pricing date". Maria is on leave. What should the team do?

Key points
  • Handover-ready cases are self-contained, deterministic, parameterized, restartable, owned and versioned.
  • Build long scenarios from small reusable blocks with clear inputs, outputs and checks.
  • Automation needs unambiguous steps and machine-checkable expected results; it does not fix vague cases.
  • Test transferability by giving a sample of cases to someone outside the team.

Check your understanding · not graded

Lesson check

  1. 1. What does "deterministic" mean for a test case?

  2. 2. Why build long SAP scenarios from small blocks?

  3. 3. Which step is ready for automation?

  4. 4. Which SAP tool is offered for automating tests in SAP S/4HANA Cloud Public Edition?