Recording scripts in an existing script

You can record new scripts in an existing script to start an application under test (AUT), insert verification points, and add script support functions.

Before you begin

You must have completed the following tasks:

Procedure

  1. Open the test script and place the cursor in the script where you want to begin a recording.
  2. Click Script > Insert Recording.
    The Recording toolbar is displayed, and then the recording begins.
  3. Click Start Application Icon of Start Application on the Recording toolbar.

    The Start Application dialog is displayed.

  4. Select the AUT, and then click OK.
  5. Perform any action in the application so that the actions are recorded.
  6. Optional: Click Insert Verification Point or Action Command Image of the Insert Verification Point or Action Command icon on the Recording toolbar to insert verification points on the required objects in the AUT.
  7. Close the application.
    Note: You can close the application to record the close action.
  8. Optional: Click Insert Script Support Commands Image of the Insert Script Support Commands icon on the Recording toolbar to insert any features such as a call script command, log entry, timer, script delay command, or comment into the script.
  9. Click Stop Recording Image of the Stop Recording icon on the Recording toolbar to stop the recording.
    The HCL OneTest UI window is restored, and then the updated script is displayed.

Results

You have recorded a new test script in an existing script.