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 Standalone, and TruClient Lite (TruClient Lite has been discontinued from version 12.63).

Note: To improve the customer experience and provide more optimized search, the TruClient Help Centers for 12.60-12.63 have been streamlined into a single version. Any version specific changes are indicated where relevant.

Get started video

New to TruClient? Watch the Getting to know TruClient video.

Back to top

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

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 steps. 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 (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 while debugging during replay, you might enhance the script by makings some steps conditional, or by recording additional steps in the script.

Recording

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.

Replaying

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.

Enhancing

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

Using TruClient scripts for performance testing (Load mode)

When the interactive script development is completed, you can run TruClient scripts with the following Micro Focus products:

  • AppPulse

  • Application Performance Management (formerly Business Service Management)

  • LoadRunner

  • Mobile Center

  • Performance Center

  • StormRunner Load

Back to top

See also: