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 Record Native Mobile scripts.

To record a script:

  1. Create a TruClient script: In VuGen, create a new script as with other VuGen protocols. In the Create a New Script dialog, select one of the TruClient script types. For details on creating a script in VuGen, see the VuGen Help Center.

    When you close the Create a New Script dialog, the browser selection dropdown and Develop Script button are added to the VuGen toolbar.

  2. In the browser selection dropdown, select the browser to use. For details on the available browsers, see Browsers in TruClient.

  3. Click Develop Script to launch the TruClient Development window.

  4. 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.

  5. Configure the browser settings for TruClient.

    The Browser Settings tab allows 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.

  6. Record a script.

    Navigate to the required 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.
  7. 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.

  8. Click Save to save the script.

Back to top

Next steps: