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: 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. Some examples of step types are:

    • 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

Creating a script

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.

  • 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.

Click an image to learn more.

Back to top

Running TruClient scripts

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

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

Back to top

See also: