Share this page

# Development window

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

In this topic:

## Development window UI

The Development window provides the interface you use to record, replay, enhance, and debug your script.

When you are developing and replaying a script within the Development window, this is referred to as working in interactive mode.

See the following sections for more information on the components.

Note: Many of the Development window options and functionality are not available while your script is in record or replay mode.

Back to top

## Masthead

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

UI Elements | Description
--- | ---
| Search. Use to search script steps and transactions, and to scan results without needing to navigate through long scripts. For details, see Search area.
| General settings. Opens the General settings dialog box. For details, see Configure 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.
| The dropdown menu enables you to switch between the listed views: Run logic view. Use to set the order in which your action segments run. For details, see Run logic. Actions view. Use to create and run actions during record and replay. In this view, you can track the steps that comprise each segment of your script, and manage step content. For details, see Script actions. Function libraries view. Use to create and manage functions in libraries. For details, see Work with function libraries.
| Available when working in the Actions view. Use the dropdown menu to select a script section. Each script section displays the steps contained in that section. 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 Script actions.
| Manage actions. Opens the Manage actions dialog box, where you can add new actions, and delete and rename them. For details, see Script actions.

## Toolbar

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

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 scripts.
| 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 scripts.
| Pause. Use to pause script replay.
| Stop. Stops recording or replaying the script.
| Add step. Opens the Steps box, enabling you to add steps to the script. For details, see Steps box.
| 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 scripts.
| Event handler editor. Opens the Event handler editor. For details, see Event handlers.
| 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 scripts.

Back to top

## Editing area

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

User interface elements are described below (unlabeled elements are shown in angle brackets):

UI Elements | Description
--- | ---
<Script steps> | Displays the recorded steps, or other steps added to the script. For details, see Step structure. 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 Inspector panel.
Status bar | Displays status details about various actions in the 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.

User interface elements are described below (unlabeled elements are shown in angle brackets):

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. For details, see Replay scripts.
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. For details, see Record scripts.
Toggle breakpoint | Insert/remove a breakpoint for the selected step. For details, see Inspector panel.
Surround with transaction | Inserts a Start transaction and End transaction steps around the selected step. If more than one step is selected (the selected steps do not need to be consecutive), then the transaction is from the first selected step to the last selected step. For details, see Insert transactions in scripts.
<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. Ungroup steps. Removes the grouping from the steps in the selected group. Group into. Create a group for a logical action: For loop clause. Creates a For loop step for the group, a logical structure that repeats the steps contained in the loop a specified number of times. If clause.Creates an If block step for the group, 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. For details, see Create functions from script steps. Try catch clause. Creates a Catch error step for the group. For details, see Steps box Flow control tab.
<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. For details, see End events.

Back to top

## Search area

The search area enables you to search for text in steps and transactions in your scripts. It also provides the option to jump to a specified step in the current view.

The search area functionality can be used across all views and script sections, and is not case-sensitive.

Click the Search button in the masthead to expand the search area.

To jump to a step:

1. Expand the search area.

2. Click Go to. The Step no. area is displayed.

3. Enter the number of the required step, block, or function (depending on the current view). The highest number available is shown after the Step no. box, for example, /28.

4. Click Go. The script jumps to the selected step and highlights it.

To search in scripts:

1. Expand the search area.

2. Configure the search filter settings using the dropdown menus below the search bar:

   Filter type | Description
   --- | ---
   Search scope | Select an option to set the scope of your search: Current View. Searches for text in the currently visible view, including in folded step containers such as Group steps. Whole Script. Searches for text in all available views and script sections in the Development window (Actions, Run logic, Function libraries).
   Entity type | All. Searches in steps (the displayed levels only) and transactions. Steps. Searches in steps (the displayed levels only). Transactions. Searches in the transaction names.

3. Type the text to search in the search bar. As you type, TruClient searches and displays the following:

   - If Current View is selected, all occurrences are highlighted, and the total number of matching results is listed.

     Use ˅ or ˄ (or press the Enter key) to navigate through the results. The step currently in focus is outlined.

   - If Whole Script is selected, the search area displays a table of results grouped by entity type, and the number of matches for each entity type. Click a search result to view it in the relevant tab.

Back to top

See also:

- Step structure

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1 All View Local Help Center View Online Help Center Version: