How to clear the text field in Type Step TruClient Protocol Loadrunner.

If at all a text field in a web page is having sample values and when we are trying to type in some text in the filed using Type Step in Truclient, we need to clear the sample input first and then enter only our actual text input. Otherwise our actual text input will get appended to the existing sample input. Thus entering a wrong input value.

Follow the below steps to over come this.

1. Expand the Type Step.
2. Goto Arguments.
3. Set the Clear Argument value to True. This will clear the existing vales in the text filed and enter our script input.



Note - The default value for the Clear Argument is True.

Steps to view run time replay in load mode - TruClient Protocol - Loadrunner

In the Load mode of Truclient Protocol we will not be able to see the replay snapshots. So if at all we need to check if the flow is working properly in load mode, then we can enable the run time replay using the below steps.

1. Create the script in Development or Interactive mode, save it and close the Truclient browser.
2. Open the script folder.
3. Open 'default.cfg' file in notepad.
4. Search for 'PaintWindowsInLoad' and change its value from 0 to 1.
5. Save the 'default.cfg' file.
6. Now replay the script in load mode and you can see the Truclient browser launching and steps getting replayed.


How to find the RAM memory footprint of TruClient Vusers?


  • TruClient is a GUI based Loadrunner protocol. 
  • One of the major setbacks of this protocol is its 1 vusers consumes a lot of physical RAM memory. Thus limiting the Vuser allocation to Load Generators.


In this post we will discuss about How to find the RAM memory footprint of TruClient Vusers?


  • First create a TruClient Script for your desired flow.
  • Then add the script to controller and assign 10 Vusers to it and start the run
  • Go to --> Task Manager --> Performance Tab --> Open Resource Monitor --> Memory Tab. Here you can see the list process that are running and their memory usage.
  • TruClient Vusers use browsers to execute the script and you can find a bunch of browser exe processes opened up. In our case it is firefox.exe.
  • Check the working set column which shows RAM memory usage for each exe process i.e each Vuser. In our case each Vusers needs around 200 MB of memory.
  • Based on this you can calculate the amount of RAM needed for other OS based activities and the amount of RAM needed for our execution and distribute the Vusers accordingly.



Why & How to use Wait for Object in TruClient Protocol - Loadrunner

Why to use Wait for Object?

I would suggest using Wait for Object function over normal Wait. TruClient protocol is asynchronous in nature which means that steps do not depend on each other during execution. In this case if we use a normal Wait function defined in seconds and if the step takes more time to complete than the time defined in the Wait function then the next step will fail since it will be unable to find the object.
To overcome this we must use Wait for Object function which will wait till a particular object loads in the page and this avoids the failing of subsequent steps.

How to use Wait for Object?

Step 1: Goto Toolbox --> Functions --> Wait for Object and place it below the desired step.


Step 2: Click Click to Choose and Object and select an object from the page. Following which the Highlighted Object details popup open showing the object match in Green.




Step 3: Goto Step --> End Event and change the end event from Automatic: Action Completed to Object Exists


Step 4: Click the search icon and select the same object chosen in Step 2. Following which Highlighted Object details popup open showing the object match in Green similar to that of Step 2.



Thats it !! Your Wait for Object Step is completed.