Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

TruWeb – Lightweight innovative scripting for load tests

Micro Focus Expert
Micro Focus Expert
1 0 730
With TruWeb you can code in JavaScript and use your favorite IDE like Eclipse, IntelliJ, or the atom.io editor. 
TruWeb is a very small installation package. Instead of installing the 1 GB VuGen you can simply record with Chrome or Firefox and create your script. 
You can simply open up the developer options (F12 in Chrome), go to "Network" and make sure you have checked "Preserve Logs" option so that you are recording all requests. Then enter a URL and record some steps:
TruWeb - Recoring in Chrome Browser - network - preserve log.PNG
After that you can simply save the recorded steps as a HAR file. Right click on the requests and select "Sava as HAR with content" from the context menu. 
TruWeb - Recoring in Chrome Browser - network - preserve log - save har with content.PNG
This har file is going to be used as in input for the TruWeb OfflineGenerator. There is also a proxy recorder available. 
The OfflineGenerator is a command line tool that runs under Linux, Mac, and Windows. Simply specify your har file (t6.har in my case) and provide an output directory (such as ~/scripts/ in the example below): 
OfflineGenerator - SUSE - Command Line.PNG
The OfflineGenerator is reading the har file and will generate your TruWeb script in the folder.
TrueWeb - OfflineGenerator - SUSE.PNG
You can then use your favorite IDE to open and edit the script. 
TruWeb - Generated script - Atom.io.PNG
You can even specify a simple scenario and let it run directly from your IDE. If you have installed e.g. the atom.io Plugin then you are going to have these extra menus available: 
TruWeb - Run Scenario - Atom.io.PNG
For a real load test you can upload your TruWeb script to LoadRunner, Performance Center or StormRunner Load. Here I was uploading my TruWeb script "aos2" to StormRunner Load for example. You can do the same things as monitoring and all the reporting as you do with other VuGen or TruClient scripts. 
TruWeb - StormRunner Load scenario.PNG
You can also watch this video where I am explaining how this works and you will also see TruWeb life in action: 

[sound: http://www.bensound.com]

You can download TruWeb for free:


For documentation go to:


You will also find more detailed videos there, see the „Video Gallery“ on the right hand side.

If you like it, feel free to like & re-share e.g. on Linkedin: https://www.linkedin.com/feed/update/urn:li:activity:6494613531311247360


About the Author
I am a Senior Technical Consultant and work with: Application Lifecycle Management (ALM Octane + ALM/QC), Automated Testing (StormRunner Functional, Unified Functional Testing, Lean Functional Testing), Load Testing (StormRunner Load, LoadRunner, Performance Center), Mobile Testing (Mobile Center, StormRunner Functional), Network Virtualization, Service Virtualization, AppPulse Mobile / Active, / Web and Trace.
Filter by Labels
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.