TruClient enables you to record a variety of protocols, each suited to a particular load testing environment and resulting in a specific type of Vuser script.
Instructions for recording a script vary according to the TruClient protocol that you are using.
TruClient - Web protocol
It enables recording a Web script in one of the supported browsers. For details, see Record a script.
It enables the recording of mobile browser based applications using the simulation capabilities of TruClient Browser.
For information on recording a Native Web script, see TruClient Mobile Web scripts and Add, Remove, and Import Mobile Device Settings for TruClient - Mobile Web in the VuGen Help.
Note: TruClient - Mobile Web protocol will be deprecated in a coming version. We recommend using TruClient - Web protocol instead.
TruClient - Native Mobile protocol
TruClient native mobile protocol provides a novel way to record and replay native mobile applications on both Android and iOS devices. It enables developers or DevOps engineers to record user interactions on mobile applications and create TruClient scripts. The protocol is designed for end-user performance testing. Together with the existing mobile protocols, it completes the LoadRunner Professional mobile performance testing suite.
TruClient communicates with the UFT Mobile server, a centralized lab to which the mobile devices are connected. This enables devices to be shared between DevOps engineers and developers.
You do not need to have a mobile device with you physically. You interact with the device using a Virtual Network Computing (VNC) view inside the TruClient browser.
UFT Mobile supports Android and iOS applications. Scripts that are recorded on one operating system can run on any other device from the same OS family.
Recording a TruClient – Native Mobile script requires installation of UFT Mobile.
Select the application and device on which you want to operate. The applications are uploaded to the UFT Mobile server (in .apk or .ipa format). After you select an application and device, the VNC view is opened. The device is uniquely locked by you, so that no other user can interfere with your scripting. When you start recording, the application is installed on the device and launched. As you interact with it, TruClient steps are created.
Using the mobile terminology such as “Tap” and “Swipe”, the steps created by using the native mobile protocol are like the following.
Using the web terminology such as “Click” and “Link”, the steps created by using the standard web TruClient are like the following.
You can monitor device performance measurements during the test run. These measurements include:
- CPU consumed on the device
- Free memory on the device
- Memory consumed by the application
By correlating the transaction response time and the performance measurements in the Analysis module, you will gain insight into why the application suffers from performance degradation under certain situations.
In most environments, the backend system is identical for all front-end systems. For example, the database and application server is serving both the web site and the mobile application. The best practice is to generate load on the backend using a LoadRunner Professional protocol such as Web – HTTP/HTML or TruClient - Web, and at the same time, run a single user on each device you want to test, using the TruClient – Native Mobile protocol.