PlatformPlatformtypeDelivered with a runtime rather than published. Nothing versions it independently and there is nothing to adopt or avoid — it is simply what the platform gives you.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →

ABAP Test Double Framework

The test double framework delivered with the ABAP platform: CL_ABAP_TESTDOUBLE creates a double of a global interface or class, configures what each call answers, and verifies the calls made on it.

A unit test needs the depended-on components of the code under test replaced by something the test controls. CL_ABAP_TESTDOUBLE creates the double and takes over its calls: create makes it, configure_call sets the returning, exporting and changing parameters, the exceptions and the events for a method call, and verify_expectations checks the interactions, such as how often a method was called with given input parameters. Doubles are supported for global interfaces since SAP NetWeaver 7.4 SP9 and for global classes since AS ABAP 7.53. Nothing versions it independently and there is nothing to install: it is what the ABAP platform gives a test class.

Where it sits

Lives in
Provides
Unit testingABAPUnit testingcapabilityTesting application logic without a running business process — and the test doubles that make dependencies on the database and on framework services tractable.

Before choosing this

Conditions

PracticalFunctional boundary

The documentation lists what it does not support: local interfaces and local classes, classic exceptions, classes marked FINAL or FOR TESTING, classes with CREATE PRIVATE, classes whose constructor has mandatory parameters or logic that terminates, and configuration of methods marked FINAL, STATIC or PRIVATE.

What it declares

Every artifact

Type
Platform
Origin
By SAP

Parts and add-ons1

Add-ons 1

Packages1
ABAP Test KitFluent test doubles for ABAP Unit around CL_ABAP_TESTDOUBLE
ConsiderationFunctional boundaryClasses cannot be doubled: `ZCL_ATK` takes the name of a global interface, and a class is rejected with a message that says to extract an interface or to double the class with `CL_ABAP_TESTDOUBLE` directly; local interfaces of a test include cannot be named either. Static methods and events of the doubled interface are not doubled, and `with( )` compares for equality, with matchers listed as planned. Below SAP S/4HANA 2023, or outside the ABAP for Cloud Development language version, the prerequisites the README names are not met.

Connections2

Unit testing
  1. abap2UI5 headless frontendDrives abap2UI5 app classes from ABAP Unit testsfrom ABAP
  2. @abap2ui5/mcp-serverMCP server for the abap2UI5 check, deploy and run loopfrom ABAP
  3. assertFluent assertion helper for ABAP Unit testsfrom ABAP
  4. @abaplint/transpilerTranspiles ABAP to JavaScript to run on Node.jsfrom ABAP
  5. Modernization Agents for SAP on AWSAWS agents for ABAP, PI/PO and BW modernisation workfrom ABAP
  6. abap_db_preparatorReplays stored database snapshots in ABAP unit testsfrom ABAP
  7. cacamber-BDD-for-ABAPBDD framework turning Given/When/Then into ABAP Unit stepsfrom ABAP
  8. abap-utesthelpHelper classes for ABAP Unit tests and test doublesfrom ABAP
  9. ABAP Debugger Data View ExtensionDebugger menu entry rendering a table or structure as VALUE codefrom ABAP
  10. regression_testSnapshot testing library for ABAP, from debugger or unit testfrom ABAP
  11. ABAP Test KitFluent test doubles for ABAP Unit around CL_ABAP_TESTDOUBLEfrom ABAP
  12. abapCovUploads ABAP Unit code coverage to codecov.iofrom ABAP
  13. ABAP remote filesystemVS Code extension editing ABAP systems over ADT as a filesystemfrom ABAP
  14. open-steamgateLocal ABAP server serving /IWBEP/ OData v2 without an SAP systemfrom ABAP
  15. express-icf-shimShim running an ABAP ICF handler behind an Express 4.x serverfrom ABAP
  16. open-abap-coreCore ABAP artifacts for code transpiled by @abaplint/transpilerfrom ABAP
  17. ABAP Development Tools for VS CodeSAP's ABAP tools in VS Code, over RFC to on-premise or HTTP to cloudfrom ABAP
  18. mockup_loaderLoader of Excel-prepared ABAP unit test data, with stub generationfrom ABAP
  19. mockAA free mocking framework for ABAP, published under the Apache License 2.0.from ABAP
  20. Vise_for_ABAPA characterisation-test helper: `ZCL_VISE=>GRIP` records a field's value once and fails a later run if it has changed.from ABAP
  21. abap-senchaBDD/TDD assertion library for ABAP Unit, styled after Chai.jsfrom ABAP
  22. abap-test-containerGitHub-hosted test data container for ABAP Cloudfrom ABAP
  23. abap-unit-runnerApplication job that runs and schedules ABAP Unit tests in the cloudfrom ABAP
  24. adash-servicesBackend exposing ABAP Unit runs and coverage over REST and ODatafrom ABAP

Details

Sources1
GitHub APIdiscovered herechecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaGitHub API
first seen in the atlas
ecosystem and domainabap, developer-experience
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:abap-test-double-framework
JSON
/artifacts/abap-test-double-framework.json
MCP
Connecting an agent