Share this page

# Step structure

This topic describes the components and behavior of the steps in your TruClient 2.0 - Web script.

In this topic:

## Step editor

Steps contain a user action to perform, object identification, and the point where the next step can start. They can be recorded steps, or other steps you manually add to the script.

You can manage some aspects of the steps within the editing area of the Actions view in the Development window. Other step components are edited in the Step editor.

The sections and data you can edit depend on the specific type of step.

Back to top

## Step options

The steps area can include the following options and functionality. The specify contents vary, depending on the step type:

UI Elements | Description
--- | ---
<Status icons> | The icons to the left of the step number indicate replay status or other information about the step: Breakpoint. Click to the left of a step number to add a breakpoint. Click on the icon to remove it. Playing. Step is currently being replayed. Success. The step was replayed successfully. Paused. The replay was paused at this step. Stopped. Replay was stopped at this step. Failure. Step replay failed. Place the cursor on the icon to view the error message.
| Unfold/Fold step. Click on the arrows to expand or minimize the step display. When expanded, the step displays the step toolbar, and the most important property fields for the step. For recorded steps, these are most often the End event, and key arguments for the step. For details on the properties, see Step properties.
| Grab handle. Use to change the step order of your script, by grabbing and dragging the step to a different location.
| Step level. Each step is assigned a level number between 1-3 at recording time (indicated by bars). Lower numbers represent higher level. For example, a level 1 step is necessary to the business process; a level 3 step has no apparent effect on the application. Click the down arrow to the right of the Step level icon to modify the level for the step. Note: For replay, you can filter the displayed steps by their level, using the Script level selector in the toolbar. For more information, see Step levels.
| Play this step. Click to play just that step (or group of steps).
| Disable/enable during replay. Click to deactivate the step. Deactivated steps are ignored during script replay. Click the button again to activate the step.
| Highlight the object. Click to check if the object is visible in the browser window at that time. The object is highlighted in the browser with a red outline. For details, see About object identification.
| Replace the test object. Use to replace the current object with a different object, without replacing the step. For details, see Replace an object.
| Set step as optional. (Available from version 25.3.) Click to make the step optional. When set, the step will be skipped during replay if the target object cannot be found. The script will continue without returning an error. Click the button again to clear the setting.
| Alternative steps. Opens the Alternative steps dialog box, where you can redefine the step in alternative ways. Alternative steps allow you to view multiple ways to perform the same user action in a step. Select the relevant step definition, and click OK. For more information, see Use alternative steps.
| Edit transaction. Opens the Transactions dialog box, where you can define new transactions and modify existing ones. For details, see Insert transactions in scripts.
| More. Opens the Step editor, where you can modify the properties and arguments for the step. For details, see Step properties.
| Set the default value. Click to reset the value to the default value.
| Argument method. Defines how the value of the argument is evaluated during replay. Click the right arrow to open a dropdown list where you can select a different argument method. Available methods: Plain value. The plain value entered in the field is used during replay. These are primitive types, such as text, number, Boolean. Click the icon to open the Text editor, where you can insert or edit multi-line text. Use the plain value, without quotation marks. JavaScript. Accepts JavaScript expressions, which are evaluated during replay. Click the icon to open the JavaScript editor, where you can insert or edit multi-line code in JavaScript. Do not use a return statement. The last line evaluated is the return value. The JavaScript editor uses standard JavaScript functionality, including automatic word completion, and provides access to the TruClient functions. Use the right-click menu to access JavaScript actions. For details, see Work with JavaScript. Parameter name. The key for the parameter. The current value of the parameter is used during replay. To add a parameter, right-click in the field and select Create New Parameter From Selection or Replace Selection With Parameter. For details, see Use parameters in scripts.
| Displayed for the JavaScript or Parameter type password field. Determines if the password value is encrypted or not. Text is encrypted. The value is encrypted. Text is not encrypted. The value is not encrypted.

Back to top

See also:

- Step properties
- Development window

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 25.1-25.3 All View Local Help Center View Online Help Center Version: