Record a TruClient script
This task describes how to record a TruClient Web or Mobile Web script.
Note: For information on recording a TruClient Native Mobile script, see the UFT Mobile Help Center.
Create a TruClient script.
If you are working in:
TruClient in VuGen - Create a new script as with other VuGen protocols and select one of the TruClient script types. When you close the Create a New Script dialog, the browser selection box and Develop Script button are added to the tool bar.
Select the browser type to use, then click Develop Script to launch the TruClient Development window.
TruClient Standalone - Use the TruClient Standalone Launcher to select the script type and browser.
If you created a TruClient Mobile Web script, add or import devices.
Select VuGen > Tools > Mobile TruClient Device Manager > Add Mobile Device or Import Mobile Device.
In the Mobile Settings dialog box, select a device. If you need to modify a setting for this recording, do so before continuing. For details, see Add, Remove, and Import Mobile Device Settings for TruClient - Mobile Web in the VuGen Help.
For details on Mobile Web scripts, see TruClient Mobile Web scripts.
Configure the General Browser Settings.
The Browser Configuration settings allow you to configure settings that apply to all TruClient scripts. The settings are imported to new scripts as they are created.
To edit these settings, click the Configure TruClient general settings button.
Record a script.
Navigate to the desired starting website and click the Record button. All of your actions are recorded and displayed in the TruClient Development window as you perform your business process. You can stop recording by clicking the Stop button.
You can continue recording from any point in the script. You can set a location in the script to record into in the following ways:
- To record into a different section of the script, right-click a step and select Record > Record after or Record > Record before to record new steps into that location of the script. If you are recording into a group step, select Record > Record into. For more information on group steps, see <Group Actions>.
- To record into a different Action, select the action from the Action dropdown list.
- To create a new action while recording, click Manage Actions to the right of the Action list. In the Actions List toolbar, click to add an action, name the action and save it. You are returned to recording and your actions on the browser are recorded in the new action.
Replay the script.
Click the Replay button to replay the script. You can use the arrow to specify whether to play the selected step only, or to run the script step by step (which pauses the replay after each step).
It is recommended that you replay the script at least twice, correcting any errors that occur during the process. After two successful consecutive replays, you can move on to the next step. If you continue to experience errors, see Debug scripts.
Script action details can be seen in the Development window Status area.
Save the script from the File menu.