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..

LoadRunner in Windows 7

Wednesday, October 28th, 2009 Posted in Tech Tips | 7 Comments »

IMPORTANT UPDATE:HP Loadrunner 11 is now available. This new version now natively supports Windows 7 and Windows Server 2008. I recommend upgrading to this version for full Windows 7 integration, ... Read more..

VuGen Scripting for YouTube Video

Wednesday, October 7th, 2009 Posted in Tech Tips | 2 Comments »

Video has seen a massive surgance on the internet with the launch of YouTube and other video sharing web sites. This raises some interesting challenges beyond simple scripting in VuGen; ... Read more..

Creating a Web + MMS vuser

Monday, October 5th, 2009 Posted in Tech Tips | 1 Comment »

LoadRunner/VuGen supports both Web (HTTP/HTML) virtual users and Media Player (MMS) vusers, but it does not allow you to create a multiple protocol script using these two protocols. Fortunately, with ... 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..

VuGen scripting for BMC Remedy Action Request System 7.1

Wednesday, August 19th, 2009 Posted in Tech Tips | 5 Comments »

I recently created some BPM scripts for the BMC Remedy Action Request System 7.1 web client. This Tech Tip contains some of the things that I learnt. My favourite part ... Read more..

Unique usernames for BPM scripts

Wednesday, August 19th, 2009 Posted in Tech Tips | 2 Comments »

Imagine that you have created a BPM script that monitors one of your critical business systems from 10 locations around the world. The application only allows users to log on ... Read more..

VuGen Feature Requests

Friday, August 7th, 2009 Posted in Tech Tips | 15 Comments »

VuGen is a great tool for developing scripts to emulate business processes for performance testing or application monitoring, but there are small number of changes that would make it an ... Read more..

LoadRunner Script Completion Checklist

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

Many years ago I had a team member who would always answer "yes" when I asked if he had finished the LoadRunner script he was working on. Invariably he had ... 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..

Client-side certificates for VuGen

Friday, May 29th, 2009 Posted in Tech Tips | 3 Comments »

Client-side certificates are a way to more securely identify a user of a web application. VuGen supports client-side certificates, but there are one or two gotchas... 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..

DNS-based load balancing for virtual users

Wednesday, March 4th, 2009 Posted in Tech Tips | 5 Comments »

In DNS-based load balancing, a website visitor will request a URL (like www.jds.net.au/tech-tips/). Their web browser will do a DNS lookup of the hostname (www.jds.net.au), and the DNS server will ... Read more..

What’s New in LoadRunner 9.50?

Tuesday, February 17th, 2009 Posted in Tech Tips | 5 Comments »

LoadRunner 9.5 was released today and, as mentioned by the LoadRunner Product Manager, the focus has been on refining current functionality rather than adding completely new features. This is not ... 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..

Load balancing vusers without a load balancer

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

Recently I ran a test at a company which had a performance test environment with multiple web servers, but no load balancer. To spread my virtual users evenly across the ... 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..

Monitoring Tomcat with LoadRunner

Wednesday, December 10th, 2008 Posted in Tech Tips | 3 Comments »

LoadRunner does not come with a monitor for Tomcat. Fortunately, you can easily create one in about 5 minutes... Read more..

WDiff Replacement for VuGen

Friday, October 17th, 2008 Posted in Tech Tips | Comments Off

One of the quick ways to identify those areas in a VuGen script that requires correlation is to record it twice and manually compare the two scripts. Built in to ... Read more..

Testing Web Services With a Standard Web Vuser

Monday, October 6th, 2008 Posted in Tech Tips | 10 Comments »

It is possible to test web services using the standard Web (HTTP/HTML) virtual user type instead of the Web Services vuser type. The main disadvantage of this is that you ... Read more..

Why your BPM scripts should use Download Filters

Friday, September 26th, 2008 Posted in Tech Tips | 1 Comment »

Recently JDS was given a good reminder of why VuGen's Download Filters are an important product feature. Someone created a BPM script to monitor the performance and availability of the ... Read more..

VuGen correlation for SAP Web Dynpro

Sunday, July 27th, 2008 Posted in Tech Tips | 15 Comments »

If you are trying to create a LoadRunner script for a SAP Web Dynpro application, and you are having problems correlating the SAPEVENTQUEUE in your POST request, then this Tech ... Read more..

Solving VuGen Script Generation Errors

Thursday, April 10th, 2008 Posted in Tech Tips | 10 Comments »

On very rare occasions you may encounter a web-based application that causes VuGen to throw an error during code generation. Every time this has happened to me, it has been ... Read more..