Changing LoadRunner/VuGen log options at runtime

Monday, January 4th, 2010 Posted in Tech Tips | 3 Comments »

LoadRunner has a whole bunch of logging options. These can be specified in your script's runtime settings, or specified in your script's code with lr_set_debug_message(). There are some gotchas when ... Read more..

How to get the host’s IP address from within VuGen

Wednesday, September 9th, 2009 Posted in Tech Tips | 3 Comments »

Sometimes an application running on a client (even a web broswer) will send the IP address of the client machine to the server at the Application layer, rather than the ... Read more..

Global variables aren’t really global in LoadRunner

Friday, May 29th, 2009 Posted in Tech Tips | 1 Comment »

If you studied programming, you probably know a few little factoids like "global variables are bad", and "goto is considered harmful". Some people can even explain why (and in what ... Read more..

VuGen Code Snippets

Friday, May 8th, 2009 Posted in Tech Tips | 2 Comments »

This is a repository of code snippets. Please send me any useful sections of code that you have written. Note that this repository does not contain trivial examples (i.e. something you ... Read more..

Querying a MySQL database with LoadRunner

Sunday, March 29th, 2009 Posted in Tech Tips | 8 Comments »

Let's imagine that you want to execute arbitary SELECT, INSERT, UPDATE and DELETE queries against a MySQL database from a VuGen script. Obviously it is easiest to use the JDBC ... Read more..

Changing Pacing time while a test is running

Monday, February 23rd, 2009 Posted in Tech Tips | No Comments »

You might have noticed that once you have started your load test, it is possible to increase the number of transactions per hour by adding virtual users, but not by ... Read more..

Calculating the difference between two dates or timestamps

Tuesday, February 10th, 2009 Posted in Tech Tips | 7 Comments »

Let's say that you have to determine the difference between two dates (represented as strings) and express the result in seconds (which could be positive or negative). How would you ... Read more..

The “is it done yet” loop

Monday, February 9th, 2009 Posted in Tech Tips | 2 Comments »

Occasionally you will find that you must write some code in VuGen to continuously check that the system has completed something, before you continue. Two examples that I have found recently ... Read more..

Think time that cannot be ignored

Friday, January 23rd, 2009 Posted in Tech Tips | 2 Comments »

Someone asked me once if there was a way of putting think time into a VuGen script that could not be ignored by changing the runtime settings. There are very few ... Read more..

Harvesting file names with VuGen

Tuesday, January 13th, 2009 Posted in Tech Tips | 2 Comments »

VuGen isn't just a tool for load testing and application monitoring, it can be used to automate any repetitive task on a web application. In this example, a JDS web security ... Read more..

Parameterising Unix/Posix timestamps in VuGen

Tuesday, January 13th, 2009 Posted in Tech Tips | 4 Comments »

A common question from people creating web-based VuGen scripts is how to handle timestamp values that are sent as part of a name/value pair in an HTTP request. Read more..

How to handle HTTP POSTs with a changing number of name-value pairs

Monday, December 22nd, 2008 Posted in Tech Tips | 12 Comments »

Occasionally you will find that you need to create a VuGen script for a web application which changes the number of name-value pairs which are sent with a POST request. ... Read more..

VuGen String Comparison Behaviour

Tuesday, December 16th, 2008 Posted in Tech Tips | 5 Comments »

Anyone who works with VuGen should know that they should compare strings using the standard C function strcmp(), rather than the equality operator (==). In the example below, there are three ... Read more..

Persistent Data in VuGen with MySQL

Tuesday, December 16th, 2008 Posted in Tech Tips | 3 Comments »

One of the main drawbacks with VuGen is the inability to easily store data for later retrieval, and the lack of interscript communication. I had this exact problem on a ... Read more..