Introducing TruClient

TruClient is a tool for creating scripts that can then be used in load testing or monitoring Web applications. TruClient is available in several editions: TruClient in VuGen, TruClient Lite, and TruClient Standalone.

What is a Vuser script?

A Vuser script is an automated performance testing or monitoring script, containing the information required to emulate a human user of an application. A script contains:


Steps are structures that contain a user action to perform, object identification, the point where the next step can start, and more. There are several types of step. Step type examples:

  • one user action and the application response.
  • a function call.
  • a flow statement that may contain other steps. For example, a for loop.
Actions An action contains a series of steps you want to test as a sequential set. An action generally corresponds to a business process of your application, that is, a task users might perform. A business process can be very short and specific, like logging in , or larger, like a sequence that starts with a search and ends with a purchase.
Run Logic The flow of your script, meaning the order actions run in and the number of times they run.

You can think of steps as program statements, actions as sub-routines, and the run logic as the main routine.

Back to top

Developing a script in Interactive mode

You create a script by recording, replaying, and enhancing the script. These activities are not separate. For example, to solve a problem found in debugging you might enhance the script by makings some steps conditional, or by recording additional steps in an existing script.


TruClient records your actions while you perform a business process on the browser that TruClient displays. When you stop recording, TruClient converts your actions into steps, and saves snapshots of the system states.


You must replay your script at least once so TruClient can perform some background tasks. You will probably replay more than once, while you debug the script.


TruClient records exactly the actions you take. 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.

Back to top

Running TruClient scripts in Load mode

When the interactive script development is completed, you can use the script with the following HPE products:

  • AppPulse
  • Application Performance Management (formerly Business Service Management)
  • LoadRunner
  • Performance Center
  • StormRunner Load

Note: For details about which performance measures are available in the product you use for load testing, see the product documentation.

Back to top

Want to learn more about using TruClient?

Watch the short Getting to know TruClient video to help you get up and running with TruClient and learn how to create scripts.

Back to top

See also: