LoadRunner Correlation with web_reg_save_param_regexp

Posted by : Lionel Lim [2 comments]

Do you have a correlation which you can’t solve because the values of the left and right boundary are dynamic? Correlation is an essential part of performance test scripting and there are plenty of different challenges with correlation. Imagine having a value of “GraphA123567EndGraphA” and the goal is to correlate …

Read More

Problems recording HTTPS with VuGen

Posted by : David Batty [5 comments]

Recently a client had an urgent request to monitor a HTTPS URL due to poor availability and performance. No problem, give me the URL and I’ll have the monitor set up and running in 10 minutes. However, a simple task turned into an investigation of Vugen certificates and Windows security …

Read More

Asynchronous Communication: Scripting For Cognos

Posted by : Adam Reincke [One comment]

A recent client engagement presented me with an interesting challenge when scripting for a performance test of Cognos (version 10.1). Cognos uses asynchronous communication between the client and Cognos server; which is essentially polling by the client to the server, to determine the progress of a report being generated. Rather …

Read More

How to fix common VuGen recording problems

Posted by : Nick Wilton [38 comments]

One of the problems that occurs on occasion when using VuGen, are problems with Internet Explorer when starting a recording of a Web HTTP/HTML protocol script. These problems can manifest in different ways; for example, a hanging or unresponsive IE window; a windows error message; or a VuGen crash.

Read More

Monitoring Active Directory accounts with HP BAC

Posted by : Ryan Castles [No comments]

Lately we’ve had an annoying problem of an Active Directory (AD) account that is used for our HP Business Process Monitor (BPM) scripts getting locked at random times. Because it’s an intermittent problem, it’s hard to track down where the request is coming form. I wasn’t getting alerted straight away …

Read More

Changing LoadRunner/VuGen log options at runtime

Posted by : Stuart Moncrieff [2 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 changing your logging options with a C function call, so I have written some functions that will be helpful.

Read More

LoadRunner in Windows 7

Posted by : Nick Wilton [13 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, and Internet Explorer 8 support. The below article refers to earlier Loadrunner releases. Windows 7 has finally been released, and …

Read More

VuGen Scripting for YouTube Video

Posted by : Nick Wilton [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; with a combination of Javascript, Adobe Flash and HTTP partial download support. This article will show you how to play …

Read More

Creating a Web + MMS vuser

Posted by : Stuart Moncrieff [2 comments]

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 a little bit of hacking, you can create a multi-protocol vuser with these two protocols yourself.

Read More

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

Posted by : Paul Richards [5 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 Network layer. This is surprisingly common with web-based apps designed to run on a company’s intranet. To make a BPM …

Read More

VuGen scripting for BMC Remedy Action Request System 7.1

Posted by : Stuart Moncrieff [24 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 of this exercise was proving that the person from BMC who said “we have already tried, and found that it …

Read More

Unique usernames for BPM scripts

Posted by : Stuart Moncrieff [3 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 once, so you must find a way to have each location use a different login account for the application. Unfortunately …

Read More

VuGen Feature Requests

Posted by : Stuart Moncrieff [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 even better tool. Read on for my list of VuGen feature requests…

Read More

LoadRunner Script Completion Checklist

Posted by : Stuart Moncrieff [5 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 not finished the script. So I sat down and wrote a checklist for him, and told him that he should …

Read More

VuGen Code Snippets

Posted by : Stuart Moncrieff [9 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 could learn by looking at the example code in the LoadRunner Online Function Reference – accessed by pressing F1 …

Read More

Querying a MySQL database with LoadRunner

Posted by : Stuart Moncrieff [20 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 libraries from a Java-based script, but most people aren’t licensed for any of the Java-based vuser types. It is much …

Read More

DNS-based load balancing for virtual users

Posted by : Stuart Moncrieff [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 return the IP address of one of several web servers; possibly in a round-robin fashion to distribute the load across …

Read More

What’s New in LoadRunner 9.50?

Posted by : Stuart Moncrieff [10 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 meant to be an exhaustive list (or a replication of the readme file), but it covers the features that I …

Read More

The “is it done yet” loop

Posted by : Stuart Moncrieff [4 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 were:

Read More

Think time that cannot be ignored

Posted by : Stuart Moncrieff [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 situations I can think of where this would be a good idea, but it is certainly possible to force …

Read More

Load balancing vusers without a load balancer

Posted by : Stuart Moncrieff [4 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 web servers, I made a simple modification to my script.

Read More

Harvesting file names with VuGen

Posted by : Stuart Moncrieff [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 expert had found that a page on a content-managed website allowed anyone to request any file in the database …

Read More

VuGen String Comparison Behaviour

Posted by : Stuart Moncrieff [6 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 string variables that each contain “hello world”. Comparing the strings using strcmp() shows that all the strings are the …

Read More

Persistent Data in VuGen with MySQL

Posted by : Nick Wilton [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 recent assignment, the problem was that the business process involved a batch process that needed to run before the rest …

Read More

WDiff Replacement for VuGen

Posted by : Reinhardt Moller [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 VuGen is the tool WDiff, a basic file comparison tool. However, I have found that it is rather limiting in …

Read More

Testing Web Services With a Standard Web Vuser

Posted by : Stuart Moncrieff [13 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 cannot generate your SOAP body from the WSDL file using the VuGen wizard. But if you know what your XML …

Read More

Why your BPM scripts should use Download Filters

Posted by : Stuart Moncrieff [One 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 JDS website. Suddenly our website traffic looked like this on Google Analytics…

Read More

VuGen correlation for SAP Web Dynpro

Posted by : Stuart Moncrieff [26 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 Tip is for you…

Read More

Solving VuGen Script Generation Errors

Posted by : Stuart Moncrieff [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 solvable without having to talk to HP Software Support. Read on for my tips…

Read More