Record a TruClient Script
This task describes how to record a TruClient script.
Note: Close all Chrome development tools before recording a script in TruClient Lite.
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, two items 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.
TruClient Lite - Select File > New.
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 Record a TruClient Mobile Web Script.
Note: For information on type Native Mobile, see the Mobile Center Help.
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 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 Development Window on the left 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 list.
- To create a new action while recording, click to the left 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 Pane.
Save the script from the File menu.