Show TOC

Testing ESF Business Objects Using GCPLocate this document in the navigation structure

Use

Use the ESF command either directly or use the Insert Statement function and the ESF (Record GCP) command. Using the ESF command directly results in a single ESF command, for which you need to maintain the command interface.

ESF (Record GCP) starts the Test Environment for Business Objects. The entries you make here are recorded in the command interface of the generated ESF commands. It is also possible to start and stop a recording from within the Test Environment for Business Objects itself. If you start the recording there, a new test script will be generated automatically.

Each step in the test environment results in a single eCATT ESF command. The following steps can be recorded:

  • Generation of a business object through QUERY or CREATE

  • Business object actions: INSERT_ROW, MODIFY, DELETE, ACTION, NAVIGATION

  • Session actions: SAVE, CHECK, CLEANUP

The command interface holds details of the executed step. References to business object instances are held in eCATT parameters that are generated during recording. Messages that occur during recording are also recorded in the command interface.

Messages are handled using MESSAGE…END MESSAGE blocks.

Data

By default, the records of business objects are not transferred to eCATT. This is to reduce load. However, you can collect and log the records at runtime if you parameterize the EXPORT_DATA field in the command interface. Create the parameter by entering a new name directly in the EXPORT_DATA field. This will ensure the correct type. In the Parameter Reference field of the parameter list, you will see something like ESI_AIRLINE_CARRIER_ELEMENTS~[]. The square brackets are the usual eCATT designation for a structure; the tilde ( ~) indicates that the structure has an extra field ( _NODE_ID_) as the first field.

You can restrict the data returned to the EXPORT_DATA field further by parameterizing the GET_CHECK node. The get and check functions of the GET_CHECK node are sufficient for many purposes; EXPORT_DATA may not be required.

Procedure

Using ESF (Record GCP)

  1. Choose Pattern.

  2. In the Group field, choose Enterprise Services.

  3. In the Command dropdown list box, select ESF (Record GCP).

  4. In the relevant fields, enter the business object and target system.

  5. Choose Enter.

  6. The Test Environment for Business Objects starts.

  7. When you have finished, choose Back to return to eCATT.

Using ESF

  1. Choose Pattern.

  2. In the Group field, choose Enterprise Services.

  3. In the Command field, choose ESF.

  4. In the Business Object field, enter the name of the business object.

  5. In the Business Object Node, Service, and Query fields, select the required entries.

  6. Accept or edit the command interface name and select the target system.

  7. Choose Enter.

Example

MESSAGE ( MSG_1 ).

ESF ( ESF_CLEANUP_1 ).

ESF ( ESF_QUERY_ESI_FLIGHT_QUERY_1 ).

ESF ( ESF_ACTION_INCREASE_PRICE_1 ).

ESF ( ESF_NAVIGATION_CONNECTION_1 ).

ESF ( ESF_MODIFY_1 ).

ENDMESSAGE ( E_MSG_1 ).