Performance Testing @ the Frontline

A hidden world where small things make a big difference

Archive for the ‘LoadRunner’ Category

LoadRunner Random Function with Normal (Gaussian) Distribution

Posted by Kim on Friday, July 10, 2015

Many times when performance tests are designed, the think-time between actions of the actual users is simulated with an approximation of the actual time it takes for a user to do their task. Unfortunately LoadRunner only offers a linear random distribution to an average wait time via the Runtime settings. Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 2 Comments »

Loadrunner v11.51 and Internet Explorer 10 – Not working?

Posted by Kim on Thursday, March 21, 2013

I upgraded my Win7 machine a little, and in the process also installed IE10, and to my great (or not so great I suppose) surprise I discovered that LoadRunner v11.51 with all current patches installed does not work when recording anymore. Read the rest of this entry »

Posted in LoadRunner | Leave a Comment »

Syntax Highlighting for custom functions in LoadRunner VuGen

Posted by Kim on Thursday, November 3, 2011

Sometimes when you have a function that you use alot, it might be nice to have it color coded in code like the other lr_* commands.

I looked for a solution to this for awhile but didn’t find anything relating to VuGen and Syntax Highlight things, so I started digging a little deeper into VuGen’s configs and came up with a half-way solution to this.

Read the rest of this entry »

Posted in LoadRunner | Tagged: , , | Leave a Comment »

Installing & Patching LoadRunner v11 (ALM) from scratch on Win7 64bit

Posted by Kim on Thursday, September 29, 2011

Today I did this exercise with the Official HP LoadRunner v11 package.

And as was to be expected it wasn’t a simple click-click-go thing 🙂

Read the rest of this entry »

Posted in LoadRunner, Tips and Q&A | Tagged: , , | 2 Comments »

LoadRunner VuGen v9.52 on Win7 x64 – 100% Working (Updated)

Posted by Kim on Monday, April 18, 2011

I recently got Windows 7 x64 installed on my laptop, and as per information from HP LoadRunner v9.52 does NOT work with Windows 7, let alone x64 – So I got myself a Virtual Machine installed, where I have Win XP x86 for LoadRunner work.

Beeing a person who believes software should work in diverse environments, I also tried installing LoadRunner on the Win 7 machine, specifically Analysis and VuGen Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 9 Comments »

Overriding LR functions with custom code

Posted by Kim on Tuesday, June 22, 2010

Most people do not know that LR supports overriding existing functions with custom ones in a very easy way.

I had a situation where I had a pre-made script that had fixed think-time values for the lr_think_time() calls, and they of course were completely wrong. So my problem was that I had a lot of lr_think_time() places and I didn’t want to go through them all myself. Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 13 Comments »

Creating a DLL with Delphi for LoadRunner

Posted by Kim on Tuesday, April 13, 2010

This article extends my previous post on Using a Custom DLL in LoadRunner and now shows by example how a DLL is actually created in Delphi and used from LoadRunner.

The DLL I’ll create here is a simple stub with a few basic functions and can serve as a template for any type of DLL that you want to create.

I’ll show how to avoid the most common problems of sending/retrieving strings to/from the DLL as well as how to handle the Unicode situation with D2009 and D2010 (LR is not Unicode enabled). Read the rest of this entry »

Posted in Delphi, LoadRunner | Tagged: , , | 5 Comments »

Handle HTTP Re-Directions in LoadRunner Scripts yourself

Posted by Kim on Sunday, April 11, 2010

Sometimes you want to grab a Session-Cookie or something else from the HTTP Header’s during a redirection, but normally LoadRunner does not allow you to web_reg_save() those if there are multiple re-directions, and the same “variable” appears multiple times. Read the rest of this entry »

Posted in LoadRunner | Tagged: | 7 Comments »

SHA-1 hash for LoadRunner

Posted by Kim on Tuesday, March 2, 2010

One of my colleagues at work was testing a solution that obfuscated passwords using the SHA1 algorithm, and was looking for a suitable solution to replicate this with LoadRunner. As I’ve used SHA1 before for other things, I promised to look around and see if I could help out.

As it turns out a suitable source was found and I made the necessary changes to the code to make it work in LoadRunner. A big thank you to Paul E. Jones for providing a free SHA1 implementation. Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 22 Comments »

lr_save_float() function for LoadRunner

Posted by Kim on Wednesday, January 27, 2010

Just a quick post of a potentially useful function for LoadRunner. Read the rest of this entry »

Posted in LoadRunner | Tagged: | 1 Comment »

LoadRunner and its non-standard SMTP implementation

Posted by Kim on Sunday, January 10, 2010

In one of my recent assignments I was asked to investigate how the SMTP vuser type behaves in LoadRunner. The need was to send alot of EMail messages to a SMTP server, and specifically the CC and BCC fields where important.

As it turns out the SMTP implementation in LoadRunner (v8.1 and v9.5x) does not quite follow the standard when it comes to the CC and BCC headers. Read the rest of this entry »

Posted in LoadRunner | Tagged: , , | 2 Comments »

LoadRunner & HTTP 401 Authentication (Updated)

Posted by Kim on Wednesday, December 23, 2009

In one of my recent projects I stumbled upon an interesting problem situation with the HTTP Authentication mechanism.

I had a Machine to Machine (M2M) interface, where clients used HTTP authentication to identify themselves to the server while sending data. In this scenario there was no HTTP 401 response from the server, because the client included the authentication info in the initial request. Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 9 Comments »

Base64 Encode/Decode for LoadRunner

Posted by Kim on Wednesday, September 30, 2009

Recently I had the need to decode a Base64 string received from a server and in the process I created an include file that contains both Encode and Decode functions for base64. Use & Abuse as you see fit! Enjoy! Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 40 Comments »

Search & Replace function for LoadRunner

Posted by Kim on Friday, March 13, 2009

Sometimes it is necessary to process parameters in LoadRunner after they have been “captured” using web_reg_save() or similar methods. There is no built-in function to do this, and I’ve seen multiple horrific attempts at different kinds of Search & Replace methods over the years.

In light of this I decided to post the source for my working solution that does not eat memory, is fast and is LoadRunner parameter friendly. It can be used by anyone who has worked with LoadRunner before! Read the rest of this entry »

Posted in LoadRunner | Tagged: | 43 Comments »

Using a custom DLL in LoadRunner

Posted by Kim on Tuesday, February 24, 2009

Sometimes LoadRunner does not provide all the needed features that one needs when doing performance testing. One option is to write DLL’s to handle the needed stuff and writing your own custom DLL’s is really easy once you get the hang of it!

I needed to do a few HTTP calls “under the radar” from a script so using Delphi 2009 I wrote my own HTTPClient DLL that allows me to do a HTTP GET to a specific URL without adding to the statistics (Pages and Hits/Sec stats). Read the rest of this entry »

Posted in Delphi, LoadRunner | Tagged: , | 17 Comments »

In-Script simulation of a load-balancer with LoadRunner

Posted by Kim on Thursday, September 18, 2008

When testing enterprise grade web-based solutions there is often a company-wide LoadBalancer present that is a black-box from the testers point of view. Bypassing the LoadBalancer during testing is usually very important to be able to determine one servers limits or capacity.

There are however situations where the LB’s need to be simulated in a controlled way, and having the load share known and controlled during testing. To achieve this there is a simple trick that can be used in LoadRunner scripts. Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 10 Comments »

LoadRunner as a WebCrawler

Posted by Kim on Monday, April 7, 2008

Today I had the opportunity to use LoadRunner for a completely different task than it has been designed for.

The project I’m working with wanted to have a system that “warms up the caches” before it goes live, so we needed to have a system the crawls the production site at a specific time and speed, excludes a set of links and only goes 3 levels deep.

The resulting script was very easy to make, once the initial think-through was done. The code was very simple put into three sub functions: Process_Level_1(), Process_Level_2() and Process_Level_3(). In each function we call a set of recorded URL’s from the previous processing level.
Read the rest of this entry »

Posted in LoadRunner | Tagged: , | 3 Comments »