Quantcast
Channel: WatchMouse Laboratories » Scripting
Viewing all articles
Browse latest Browse all 2

Converting LoadRunner scripts to JMeter JMX

$
0
0

Release of open sourced script loadrunner2jmx

Today we released some free and open source code to convert HP LoadRunner scripts to Apache JMeter scripts.

Both LoadRunner and JMeter are used to record and replay multi-step transactions on web sites, web API’s etc. and can be used for both load testing and transaction monitoring. At WatchMouse we based our scripting monitors on JMeter because of its robustness, its very complete functionality and obviously, its open source license.

Why this conversion tool? Over the last year we have had a couple of requests from our clients to convert their existing LoadRunner scripts to JMeter so they could run the same tests in the WatchMouse monitoring network worldwide, without having to create or record these scripts again. Manual conversion from one format to the other is not straightforward, as the formats are very different, so we created a tool to do just that, and now decided to make that freely available.

Using the converter

The code can be downloaded from our bitbucket: https://bitbucket.org/watchmouse/loadrunner/downloads.

The installation process simply consists of unzipping the archive in a directory of your choice.

Using the script is pretty straightforward. Run it without any arguments and the usage instructions are shown:

$ ./loadrunner2jmeter
Input filename(s) are required
Usage:
     ./loadrunner2jmeter <inputfile1.c>
               -or-
     ./loadrunner2jmeter <inputfile1.c> [ -o <outputfile.jmx> ]
               -or-
     ./loadrunner2jmeter <inputfile1.c> <inputfile2.c> <inputfile3.c> [...] -o <outputfile>

More can be read in the README.

Improving and extending the code

We had a limited set of LoadRunner scripts to test with, which means the script is probably not perfect, and doesn’t support all constructs yet, so your milage may vary. Your feedback is greatly appreciated and as the code has been released under the GPL open source license, anyone who wants to contribute to loadrunner2jmx is more than welcome to do so.

GPL3 logo

The script is written in Perl, so if you are a Perl hacker and you would like to help improving the code, please feel free to submit patches. The source can be found here: https://bitbucket.org/watchmouse/loadrunner/src

Perl Logo. Credit: Perl Foundation

Also, if you have some LoadRunner scripts laying around, please let us know so we can use it to test and, if needed, upgrade loadrunner2jmeter.

Mark Pors
CTO & co-founder

Mark lives is Greece and loves Perl almost as much as he loves Emacs


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images