Share this page

# Enhance scripts

You can enhance your TruClient 2.0 - Web script, so that it can more accurately represent the production environment.

In this topic:

## Overview

TruClient records the actions exactly as you performed them. However, when testing you may want the test to run differently than you recorded it. For example, you may want to run some steps only if a condition is true, or to vary the data you enter in the application.

In addition, the data collected may not be what you need. You may need to collect performance data separately on different steps or different groups of steps, rather than on the entire business process.

Use the optional enhancement options below to make load test scripting faster, easier, and more accurate.

Back to top

## Enhancement tools

The following tools are included to help you enhance your script.

Option | Description
--- | ---
Enhancement steps | There are a number of optional enhancement steps that can be added to scripts beyond the basic workflow. For details, see Enhance script with Steps box functions.
Parameterization | To enable the script to more accurately represent the production environment, you can enhance it with parameters, replacing static data values with variables. For details, see Use parameters in scripts and VTS parameterization.
Transactions | To enable acceptable performance levels, you can add a transaction that measures the amount of time it takes to perform a certain function. For details, see Insert transactions in scripts.
Event handlers | Use event handlers to help your test recover from unexpected or unpredicted events that can occur during script replay. For details, see Event handlers.
Examples | This section provides examples on how to enhance TruClient scripts with variables and transactions, and how to use the non-automatic object identification methods to enhance and generalize your scripts. For details, see Examples.

Back to top

See also:

- Replay scripts

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: