Watir Powered LoadRunner Scripts

Here’s an idea… Ever been in a LoadRunner contract where you’ve got a ton of scripts to write for business transactions that have many many design steps?

Even worse, have you had to write those scripts against a development environment with an unstable code base and shocking performance? Sound familiar? Ever felt the frustration of re-recording [...]

Regex Search and Replace in LoadRunner

Previously I identified how to setup pattern matching with Regex in LoadRunner.

Here’s how you implement search and replace functionality with the same POSIX libraries used in the previous example.

Create a replace function in your favourite headers file or wherever you keep your framework’y stuff… You also need the pcre3.dll and pcreposix.h header added as files [...]

Improved SPNEGO or Kerberos support with LoadRunner

Previously I identified a way in which to test SPNEGO or Kerberos authentication with LoadRunner. However this implementation was buggy in the sense that if you ran your load tests under reasonable load with the WinInet replay engine (instead of sockets) you were likely to encounter the following error:

Error -27492: “HttpSendRequest” failed, Windows error code=12057 [...]

Sharing Data Between LoadRunner VUser Groups

When running multiple vuser groups with the same script i.e.

If that script references a data file (for parameters) then that data file is shared by *all* vuser groups.
e.g. my parameter called {values} has

When running, vuser group_b will error with these settings e.g.

i.e.

So 2 separate vuser groups still equals one shared parameter file (and settings).
Watch out [...]

An Alternative to LoadRunner Licenses

No this is not a post on how to get free licenses…

There should be no doubt that purchasing LoadRunner licenses is expensive. How Mercury/HP has achieved this stranglehold on the market is strange to behold but it is the way it is.

Needless to say, in another purchasing license cycle I jokingly said to a colleague [...]

Performance Testing SPNEGO or Kerberos with LoadRunner

Alas, it can’t be done in JMeter. So this is how it works in LoadRunner …
This challenge came up recently and we were able to figure out how to test SPNEGO or Kerberos using Integrated Windows Authentication with LoadRunner.

Performance Testing MQ with LoadRunner

The wheel has turned full circle and I’m back in MQ land… So here is a a simple Java vuser harness which you can use in LoadRunner to put or get messages from Websphere MQ. This version doesn’t require any JNDI bindings (or access to JMS). Instead it just uses a standard server connection channel [...]

How to Generate Random Alphas in LoadRunner

Just a quick post for myself so I don’t forget… I needed to generate a random alpha for use in a LoadRunner web vuser script. The native LoadRunner parameters can do random numerics and date/times but I couldn’t find a way to generate only characters, as one might need to generate a random password for [...]

Using SFTP with LoadRunner Java Vusers

Recently had a requirement to construct a LoadRunner harness that could sftp files (over ssh) to and from remote servers. As some of the harnesses were already written in Java (for loading of JMS queues) it made sense to use a Java Vuser to achieve the result required.

A work colleague found a knowledge base reference [...]

Using JDBC with LoadRunner Java Vusers

This is a short post on how to establish JDBC connectivity to a MySQL database when using the Java Vuser type within LoadRunner. Stuart describes a situation in which you might want to do this here. I’m not sure why but the example code is missing from his site, so I’ve supplemented with an example [...]