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:
- Recorded a test script. See Recording a script.
- Read and been familiar with creating verification points. See Verification points.
- Read and been familiar with using script services. See Script support functions.
Procedure
- Open the test script and place the cursor in the script where you want to begin a recording.
-
Click
.The Recording toolbar is displayed, and then the recording begins.
-
Click Start Application
on the Recording toolbar.
The Start Application dialog is displayed.
- Select the AUT, and then click OK.
- Perform any action in the application so that the actions are recorded.
- Optional: Click Insert Verification Point or Action Command on the Recording toolbar to insert verification points on the required objects in the AUT.
-
Close the application.
Note: You can close the application to record the close action.
- Optional: Click Insert Script Support Commands 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.
-
Click Stop Recording
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.