Archive for the ‘Tips & Tricks’ Category

Extract Transaction Data From LoadRunner Analysis

Sunday, June 15th, 2008

I had a need to extract transaction response time data from a bunch of LoadRunner Analysis files, and I really didn't want to do endless cut and paste operations from within the LoadRunner Analysis tool. I created this Python script to extract transaction response time data from the LoadRunner ...

Customize size of images in LoadRunner HTML reports

Thursday, May 29th, 2008

Quick tip: With prevalence of larger monitors these days, it is nice to have charts and graphs that take advantage of the extra space. If you want to customize the size of the charts in the LoadRunner HTML reports, change these settings in C:\Program Files\Mercury\LoadRunner\bin\dat\GeneralSettings.txt: [HTML report] ChartWidth=1024 ChartHeight=576

Adding dates to vmstat logs

Wednesday, April 23rd, 2008

One of the problems I have with vmstat is that it doesn't have the option to output timestamps (the way iostat does). As a result, if you have vmstat logs and you don't know exactly when it was run or at what interval it was collecting data, then it makes the ...

Java Memory Leaks

Thursday, April 17th, 2008

Finding (and fixing) memory leaks in java can sometimes be a tricky process. I recently had to do some analysis on a leaking application and hit a snag. My game plan was to do the following: Capture heap dumps with jmap Analyze dump with jhat Along the way, I ran into ...

Regular Expressions in LoadRunner

Tuesday, April 15th, 2008

Dmitry Motevich posted a challenge for getting regular expressions working in LoadRunner. Regular expressions in C isn't pretty, but here it is:

Edit LoadRunner scripts in Eclipse

Thursday, July 5th, 2007

LoadRunner Vugen can hardly be described as a true IDE, since it is missing a lot of features you would expect, such as: outline of functions, search for references and declarations, code formatting, etc. It is possible to edit scripts using a real IDE (e.g. Eclipse) with some significant advantages and ...

LoadRunner: Anatomy of a Script

Tuesday, March 27th, 2007

When you record and save a LoadRunner script in Vugen, there are a number of files that are created. Here's what they are, and what they do and identification of the files you can safely delete.. Files Required for Playback During the course of recording and playback of scripts, the Vugen ...

LoadRunner: Creating a custom dll

Sunday, March 18th, 2007

Using LoadRunner's lr_load_dll() function, it is possible to roll your own dll's and use custom functions in your LoadRunner scripts. Here's how. Mercury's support site gives an example, but it doesn't go far enough to tell you how to actually create the dll. Using Eclipse, here is how to ...