Accessing Test Data by API
Use
ABAP programs can read data from eCATT test data containers (for information about API access to other eCATT objects, see API Access to Test Scripts, Test Configurations, and System Data. In particular, this feature is intended for use with ABAP Unit. The class CL_APL_ECATT_TDC_API provides the necessary methods.
To get access to a test data container from a program, the test data container must be loaded and prepared by the static method GET_INSTANCE. For example:
DATA tdc_ref TYPE REF TO cl_apl_ecatt_tdc_api.
CALL METHOD cl_apl_ecatt_tdc_api=>get_instance
EXPORTING
i_testdatacontainer = 'MY_TEST_DATA_CONATINER'
RECEIVING
e_tdc_ref = tdc_ref.
Once the runtime object has been created, the object methods can be called. Below is an overview of the available methods:
Object Methods
The object methods are divided into the categories listed below. For details about the methods and their parameters, see the links to the superordinate method categories:
|
Method Category |
Associated Methods |
|---|---|
|
|
|
|
|
|
|
|
|
There is an exception class: CX_ECATT_TDC_ACCESS.