Creating OData Tests

This section describes how to generate the test itself once you have analyzed the service and created the ABAP access class, as part of an OData service test in eCATT.

Prerequisites

The access classes for the OData service have been created. See Creating Access Classes for OData Services.

Procedure

  1. You can change the test class name, the test class description, the test data container (TDC), or the TDC description simply by clicking them or by using the relevant option in the context menu.
  2. You can skip the generation and later use of test data containers by deselecting this option in the the Generate TDC column.
  3. Choose Generate to generate the test classes and, if required, the TDCs.

Results

The tests have been generated. You can navigate from the context menu for the generated class to the ABAP Development Workbench (SE80), where you can change the test code and execute the tests.

If you have generated test data containers, these are used in the generated tests. The test data is used as check values in retrieve scenarios and as templates in create scenarios. The generated test data containers each contain a parameter for the assigned entity set. This parameter is typed according to the assigned ABAP structure. This enables you to maintain the test data in the data structure of the entity set. All the data records of the entity set that the service provider provided at the time of generation are saved in the variants of the TDC.

Note the status messages for the generation in the application log.