Show TOC

Using TCD (Record) to Record TransactionsLocate this document in the navigation structure

Context

You use TCD (Record) to record all the entries and functions in transactions.

To help decide between using TCD (Record) or SAPGUI (Record), see Testing Applications.

Procedure


  1. In the test script editor, choose the Editor tab.

  2. Choose Pattern.

    The Insert Statement dialog box appears.

  3. From the Command dropdown list, choose TCD (record).

  4. In the Transaction field, enter the transaction code of the transaction that you want to record, and choose Continue.

    In the Interface field, a system-generated name appears.

  5. Accept the system-generated name or edit it.

  6. If there is a system data container, you can enter the target system in the Target System field.

  7. Choose Continue.

    The transaction starts.

  8. Work through the transaction as normal.

    When you leave the transaction, the system returns you to the script editor with the Recording ended dialog box.

  9. Choose Yes to transfer the data.

Results

A TCD command and its associated command interface is inserted in the test script. You can also parameterize the script or enhance it with other eCATT functions.

Script Execution

The test script can be started either in the foreground or in the background. You can switch between these two modes in the start options on the UI Control tab page. The selection list is under Start Mode for Command TCD.

Note

Note that you can only cancel the execution of TCD commands if the test script is executed in the foreground. In foreground mode, each screen processed by the TCD is output separately on the GUI and you are prompted to confirm the OK code to start the next step. If you enter the code /BN in the OK code field, this ends the transaction processing and the execution of the test script, with a corresponding error message in the eCATT log.