TruClient 2.0 Development window

This topic describes the components of the TruClient Development window when working with a TruClient 2.0 - Web protocol script.

TruClient Development window

The figure below shows the components of the TruClient Development window for TruClient 2.0.

See the following sections for more information on the components.

Note: Many of the Development window options are not available while in record or replay mode.

Back to top

Masthead

The masthead displays the name of your script, and includes the following user interface elements:

UI Elements Description

General settings. Opens the General settings dialog box. For details, see Configure TruClient 2.0 General settings.
About. Opens the About window, providing copyright and version information.

Help. Opens the TruClient documentation within the VuGen Help Center.

Save. Saves changes made to the script.

View list. Use the options in the dropdown menu to switch between the following views:

Script sections list. (Available in the Actions view.)

Use the dropdown list to select a script section and display the steps it contains.

There are three default sections: Init, Action, and End. These default sections cannot be deleted. In addition, the list includes all action sections that you have added to the script.

You can record your entire script into the Action section (default), or you can create and record into new action sections, to represent different parts of your business process.

For details, see Actions for TruClient 2.0 scripts.

Manage actions. Opens the Manage actions dialog box, where you can add new actions, and delete and rename them.

For details, see Actions for TruClient 2.0 scripts.

Toolbar

The toolbar contains the menus and buttons most commonly used for recording, developing and interactively replaying scripts.

User interface elements are described below:

UI Elements Description

Record. Starts recording the script. Additionally, you can use the arrow to specify whether to record before, into, or after the selected step. For details, see Record a TruClient 2.0 script.

Replay/Resume. Replays (or resumes replay of) the script. Additionally, you can use the arrow to specify whether to play the selected step only, or to run the script step by step. Running the script step by step pauses the replay after each step. For details, see Replay TruClient 2.0 scripts.
Pause. Use to pause script replay.

Stop. Stops recording or replaying the script.

Add step. Opens the TruClient Steps box, enabling you to add steps to the script. For details, see Enhancement steps for TruClient 2.0 scripts.

Script level display. Filters the steps that are visible and replayed in the script.

  • Displays and replays level 1 steps only. Level 1 steps are necessary to the business process.

  • Displays and replays level 1 and 2 steps. Level 2 steps affect the application in a way that is probably not important to the business process.

  • Displays and replays level 1, 2 and 3 steps. Level 3 steps have no apparent effect on the application.

For details, see Step levels.

Undo/Redo. Reverses your last action, or restores your original change.

Transactions editor. Opens the Transactions dialog box, where you can define new transactions and modify existing ones. For details, see Insert transactions in TruClient 2.0 scripts.
Event handler editor. Opens the Event handler editor. For details, see Event handlers for TruClient 2.0 scripts.

Snapshot view. Opens the Snapshot viewer in the right pane.

Select a step to view the corresponding snapshot, or browse through the snapshots using the navigation at the bottom of the Snapshot viewer.

For details, see Snapshots for TruClient 2.0 scripts.

Back to top

Editing area

The editing area of the Development window is where you can view the steps in your script, and edit step details and flow.

The editing area components are described below:

UI Elements Description

<Script steps>

Displays the recorded steps, or other steps added to the script. For details, see Manage step data in TruClient 2.0.

Right-click a step to view a menu of options. For details, see Context menu.

Inspector panel When breakpoints are used during replay, the Inspector panel displays all parameters and user-defined variables. For details, see Breakpoints.

Status bar

Displays status details about various actions in the TruClient Development window, such as record or replay status.

Back to top

Context menu

Right-click a step in your script to display the context menu.

The menu options are described below:

UI Element
Description

<Replay actions>

Play this step. Replay the selected step only.

Play until this step. Replay from the beginning. Stop before the selected step.

Play from this step. Replay the script from the selected step.

Note: You cannot use Play from this step if the target step:

  • Is located in an action that is not part of the run logic.

  • Is inside a For loop or If block.
  • Is a Catch error step.
  • Acts on a web object that is not available on the current web page.

Record

Starts recording, and inserts the next recorded steps into the script at the selected location:

  • Before step. Insert before the selected step.
  • Into step. Available when a steps group is selected. Insert into the group.
  • After step. Insert after the selected step.
Toggle breakpoint

Insert/remove a breakpoint for the selected step. For details, see Breakpoints.

Surround with transaction

Insert Start transaction and End transaction steps around the selected step or steps. The selected steps do not need to be consecutive.

<Groups>

Create groups for one or more selected steps. Multiple steps must be consecutive.

Group steps. Create a new group. The selected steps are grouped together as a single step.

Group into. Create a group for a logical action:

  • For loop clause. A logical structure that repeats the steps contained in the loop a specified number of times.
  • If clause.A logical structure that controls the flow of your script.
  • New function. A group of steps, such as a login, that you define as a function.
  • Try catch clause. Creates a Catch error step for the group.

Ungroup steps. Removes the grouping from the steps in the selected group.

<Edit actions>
  • Cut. Cut select step from the script.
  • Copy. Copy selected step in the script.
  • Paste. Paste selected step into the script.
Delete Delete a step from the script.
Enable/disable Toggle between disabling or enabling a step, so that it is included or ignored during replay.
Fold all steps

Minimize the display of all steps and groups.

Unfold all steps

Expand the display for all steps and groups.

Reset auto end event Enables you to reset the selected step or steps to Not yet set.

Back to top

See also: