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.
Get started video
New to TruClient? Watch the Getting to know TruClient video.
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:
|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.
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 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.
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:
Application Performance Management (formerly Business Service Management)
Note: For details about which performance measures are available in the product you use for load testing, see the product documentation.