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.
![]()
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
![]()
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
Categories: Labs, Scripting, Tools
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
April 13th, 2011 at 08:50
Is it support for linux only. as i am tried to do with windows XP machine but not able to do. Please how to do with the windows machine. I dont have perl installed in my machine and I am sure it is not required.
Many Thanks,
Bikram Sahu
April 13th, 2011 at 10:57
Hi Bikram,
Perl is indeed required and it should run on Windows as well. This should work for you: http://www.activestate.com/activeperl/downloads
Please let us know how it goes!
Cheers,
Mark
September 5th, 2011 at 13:43
Running the script on a few load runner scripts results in:
Unknown commands detected in input files:
web_element
web_image_link
web_text_link
web_set_certificate_ex
web_browser
loadrunner2jmeter ran OK – JMX output is in:
Is there a list of supported/not supported load runner commands?
September 23rd, 2011 at 05:17
Attempting to convert a 2kb script created in vugen gave me unknown commands too:
Unknown commands detected in input files:
web_add_cookie
web_add_header
web_concurrent_start
web_concurrent_end
loadrunner2jmeter ran OK – JMX output is in:
July 13th, 2012 at 06:08
is it possible to convert loadrunner scripts into jmeter scripts for flex ,webservice.rdp.citrix protocol.