SAP TEST RELATIONS



Get Example source ABAP code based on a different SAP table
  


• /attesting ABAP_DOC_COMMENT

Test Relations

ABAP_SYNTAX
'! @testing $[kind:$]name
This special ABAP Doc comment can be used in front of the declaration of a test class or a test method to define a test relation that links the test class or test method with the repository object specified after @testing.
name is used to specify the name of a repository object, which is not case-sensitive.
kind is used to specify the type of the repository object. The following repository objects are possible and kind must be specified as shown:
<(>FUNC<)> for function modules in function pools
<(>FUGR<)> for function pools
XSLT for XSLT programs and Simple Transformations kind cannot and must not be specified for global classes and CDS entities. They are addressed by their names alone.
Defining a test relation between a test class or test method and a repository object has the effect that the test can be displayed and executed for this object in ADT.



Latest notes:

Test relations are used to link repository objects with external unit tests. This is especially useful for repository objects that do not support test classes themselves.
The current program of the test class or test method cannot be specified.
Multiple test relations can be specified for a single test class or test method.
For more information, see Writing ABAP Unit with Test Relations.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Defining test relations between a test class and its test methods and various repository objects.
ABEXA 01719
ABAP_EXAMPLE_END