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

Lesson 3 of 5

Linking to features and tests

10 min

Listen to this lesson

0:00 / 6:14

A requirement and its user stories describe the change. Two more links make it provable. The feature ties the change to the transports that carry it through CMD, CMQ and CMP. The test cases tie it to the evidence that it works. When both links exist, Priya can answer the release manager's question ("which tested changes are in this deployment?") and the process owner's question ("is my requirement tested?") from the same data.

Features: the unit of deployment

SAP describes the feature as the mechanism for deploying changes across the landscape. It is a change record and orchestrator, and the container for transportable objects. SAP's guide adds the rule that matters for traceability: a feature can encompass several user stories but can be assigned to only one requirement. In the leading practice for private edition projects, the relationship is one-to-one: one requirement, one feature. The incremental variant allows several features per requirement for staged delivery, at the cost of more complex testing.

RequirementPO approval over $25,000 via flexible workflow
User storiesConfigure the workflow scenario; adapt the approver determination; update the PO output
FeatureOne feature assigned to the requirement, with the three stories assigned to it
TransportsCustomizing and workbench requests created or assigned in the feature
LandscapeDeployed CMD → CMQ for testing, then CMP at go-live
How a requirement reaches production through a feature.
The Sign-Off Table · thesignofftable.com/academy/sap-alm-202

Features follow their own status flow. SAP's learning content lists Not Planned, In Specification, In Implementation, In Testing, Successfully Tested, Ready for Production and Deployed, and limits which transport actions are allowed in each status. SAP's best practice deck labels one step Ready for Deployment; the wording varies between releases, so check your tenant. The principle does not change: the feature reaches "successfully tested" only after the tests linked to its requirement have passed in the quality system.

The feature reaches Successfully Tested only after its linked tests pass in CMQ, and only Ready for Production opens the way to CMP.
The Sign-Off Table · thesignofftable.com/academy/sap-alm-202

Assigning test cases

SAP's guidance says test cases can be assigned to the requirement, to user stories, or to both. That flexibility is useful, but a project must choose a pattern, because coverage reports count what is linked. Contoso's rule is simple:

  • Requirement level: the end-to-end acceptance test the process owner signs, written from the acceptance criteria captured in the workshop.
  • User story level: narrower functional tests for a story, such as the approver determination for a single purchasing group.
  • Process level: standard process test cases generated from solution processes, which cover what the requirement did not change.
Contoso’s linking rule on one requirement: acceptance tests with boundary values on the requirement, narrow tests on stories, standard tests on the process.
The Sign-Off Table · thesignofftable.com/academy/sap-alm-202
  1. Acceptance criteriaCaptured on the requirement in the workshop
  2. Test casePrepared in Test Preparation from those criteria
  3. AssignLinked to the requirement and, where useful, to stories
  4. Test planIncluded in the SIT or UAT plan for the right cycle
  5. ExecutionRun in CMQ; results and defects recorded
  6. StatusRequirement and feature move to successfully tested
From acceptance criteria to test evidence on the requirement.
The Sign-Off Table · thesignofftable.com/academy/sap-alm-202

Defects and features

Defects raised during execution link back to the test case and so to the requirement. A Cloud ALM defect has a fixed, deliberately simple status set: New, In Progress, Retest Required, Postponed and Closed. When the fix is in CMQ, the processor sets Retest Required and hands the defect back to the tester who raised it. SAP has also been adding relations between defects and features, so the correction for a defect can travel in a feature and a release manager can see open defects on the feature before approving deployment. Check what your tenant offers; where the relation is missing, the same answer comes through the requirement.

Common linking mistakes

  • Creating the feature before approval: transports start moving for scope nobody has agreed. Create features once the requirement is approved.
  • One feature for a whole workstream: convenient for the developer, but every requirement in it is then deployed and tested together, and one failure blocks them all.
  • Tests linked only to stories: the process owner's acceptance test never exists, so UAT has nothing to sign against.
  • Custom code with no requirement: adapted ECC objects that Kenji's team fixes for the conversion still need a requirement or a story under one, or they are deployed untraced.

What would you do?

Contoso's flexible workflow requirement has one feature with all transports, and it shows Successfully Tested. Priya notices the only linked test case is a unit test for one user story. What should she do before the SIT exit gate?

Key points
  • A feature can include several user stories but belongs to one requirement; it carries the transports.
  • SAP's leading practice for private edition uses one feature per requirement.
  • Test cases can be assigned to the requirement, user stories or both; pick a project rule and stick to it.
  • Write requirement-level acceptance tests from the workshop's acceptance criteria, with boundary cases.

Check your understanding · not graded

Lesson check

  1. 1. How many requirements can one feature be assigned to?

  2. 2. What does a feature carry that a user story does not?

  3. 3. To which objects can test cases be assigned for requirement traceability?

  4. 4. Which test best proves Contoso's $25,000 PO approval requirement?