Working with TruClient
TruClient has its own distinctive user interface and script structure.
User interface
TruClient scripts are developed using the Development window. The Development window presents the script steps graphically in a sidebar, next to the browser window for your selected browser.
For details, see Development window.
Developing a script
You create a script by recording, replaying, and enhancing the script in the Development window. These activities are not separate. For example, to solve a problem found while debugging during replay, you might enhance the script by making some steps conditional, or by recording additional steps in the script.
When you are developing a script within the Development window, this is referred to as working in interactive mode.
Record |
Your actions are recorded while you perform a business process on the selected browser. When you stop recording, your actions are converted into steps. For details, see Record scripts. |
Replay |
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. For details, see Replay scripts. |
Enhance |
TruClient records exactly the actions that 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. For details, see Enhance a script. |
Code |
Functionality is provided to implement advanced scripting requirements for your scripts. For details, see Program in TruClient and TruClient API Help. |
Load test |
Your scripts can be used for performance and load tests in multiple OpenText tools, including LoadRunner Professional, LoadRunner Enterprise, and LoadRunner Cloud. They can be run on Windows-based or Linux Ubuntu-based load generators. For load testing tips, see Load tests with TruClient scripts. |
Script structure
All TruClient scripts contain the following elements:
Steps |
Steps are structures that contain a user action to perform, object identification, the point where the next step can start, and other data. There are several types of steps. Step type examples include:
For details, see Manage step data. |
Actions |
An action contains a series of steps you want to test as a sequential set. An action generally corresponds to a business process for 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. For details, see Script actions. |
Run Logic |
The flow of your script, meaning the order actions run in and the number of times they run. For details, see Run logic. |
You can think of steps as program statements, actions as sub-routines, and the run logic as the main routine.
See also: