LR2JM – Convert LoadRunner Scripts to JMeter
August 28, 2007 – 11:09 amUPDATED 4/24/08: Moved script to Google Code
LR2JM
LR2JM (LoadRunner to JMeter) is a perl script (lr2jm.pl) used to convert a LoadRunner script created using VUgen into a format usable by Apache JMeter, an open source performance and load testing tool.
The script is alpha quality at this point. There is support for the following functions:
- web_url
- web_submit_data
- web_custom_request
- web_reg_save_param
The translation of LoadRunner parameters to JMeter variables is currently working only for the basic, default settings.
Please try it out and let me know if it is useful for you.
Download
The script can be downloaded from the LR2JM Project page on Google Code
Limitations
- Currently only web_url() web_submit_data() and web_reg_save_param() functions are supported
- Parameters are copied, but not all parameters settings.
- Only .csv parameters are working
- Run-time settings are not copied
Known Issues
- ??? Let me know!
How to Use
To use the script:
C:\perl lr2jm.pl path\to\LR_Script_Folder
A new file with .jmx extension will be created in the LoadRunner script folder (e.g. LR_Script_Folder.jmx) in addition to new .csv files for your parameter data files. The LoadRunner files are NOT modified.
Questions?
Please post in the LR2JM Forum!
14 Responses to “LR2JM – Convert LoadRunner Scripts to JMeter”
where is the script?
By avinash on Oct 1, 2007
Sorry, about that- it should be accessible now here: http://www.performanceengineer.com/lr2jm
By cw on Oct 1, 2007
Hi Charlie,
I request you to correct me if i am trying the wrong way.
I have placed the lr2jm.pl at ‘C:\Perl”.
I have the script ‘Trade_BSKT.usr’ script at location ‘C:\Srinivas\Trade_BSKT’.
Now i am trying to run the perl utility in the command prompt as:
C:\Perl>lr2jm.pl C:\Srinivas\Trade_BSKT.I am getting the error:
Can't locate XML/DOM.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .)
at C:\Perl\lr2jm.pl line 23.
BEGIN failed--compilation aborted at C:\Perl\lr2jm.pl line 23.
I want to know whether i have tried the right way.
By srijaipur on Jan 30, 2008
The dude before me, you need to install XML::DOM and XML::Tidy modules
ie.
cpan XML::DOM
cpan XML::Tidy
cpan File::Util
I talk about this sort of stuff here: http://90kts.com/blog/2007/automating-your-scripts-with-wwwmechanize/
If you’ve installed ActiveState perl, then just use the PPM
Cheers
Tim Koopmans @ 90kts
PS. Freaking great script Charlie
By ninetyknots on Apr 15, 2008
Hi,
I have placed the lr2jm.pl at ‘C:\Perl”.
i have a LR script in c:\QuickSell\QuickSell.usr.
C:\Perl>perl lr2jm.pl c:\QuickSell
I am getting the following message:
couldn’t open file for write: Invalid argument
The filename, directory name, or volume label syntax is incorrect at lr2jm.pl line 345.
Please help me on this.
ne 345.
By SAS on Jun 18, 2008
SAS-
Try putting the script in C:\ then, at DOS prompt:
Let me know if that works for you, I’ll see what I can do about updating the script to make it more flexible or provide clearer instructions.
Thanks
By charlie on Jun 18, 2008
Thanks Charlie ,Now i am able to get .jmx file in my loadrunner script directory.
By SAS on Jun 23, 2008
Hi,
I am Saravanan.
I am New to JMETER 2.3.2
and in need of help to know how to install JMETER 2.3.2
Is there any exe file there to run or thrh command prompt.
I have downloaded the files from Apache website.
Please help me out
Thanks
By Saravanan on Jul 25, 2008
Saravanan-
Did you read the User Manual?
http://jakarta.apache.org/jmeter/usermanual/index.html
By charlie on Jul 25, 2008
I have placed the lr2jm.pl at ‘C:\”.
i have a LR script in c:\ontime
C:\>perl lr2jm.pl ontime
I am getting the following error:
Can’t locate XML/DOM.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .)
at C:\Perl\lr2jm.pl line 23.
BEGIN failed–compilation aborted at C:\Perl\lr2jm.pl line 23.
I have installed activestate perl in my system. Kindly tell how can I use the PPM method to solve the problem?
By suvendu kumar mohapatra on Dec 18, 2008
Kindly tell how can I able to install the File::util module?
By suvendu kumar mohapatra on Dec 18, 2008
I have installed activestate perl in my system. I have tried PPM command. But the packages which are installed are not helping for the following errors:
Can’t locate XML/DOM.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .)
at C:\Perl\lr2jm.pl line 23.
BEGIN failed–compilation aborted at C:\Perl\lr2jm.pl line 23.
So I searched the packages for xml::dom, xml::tidy and file::util. I found xml::dom and xml::tidy but cannot find File::Util module.
Please help me how to solve this problem.
By suvendu kumar mohapatra on Dec 19, 2008
I had downloaded lr2jm.pl and makefile.pl few months ago and it was then working fine but now when i try to run makefile.pl and lr2jm.pl with the following commands:
C:\>perl makefile.pl
C:\>perl lr2jm.pl metrics
Can’t locate object method “new” via package “XML::XPath” at C:/Perl/lib/XML/Tid
y.pm line 435.
do i need to inatall all the modules once again to get metrics.jmx file? please suggest me whether i am doing it the right way.
By SAS on Jan 7, 2009
I could get the .jmx file for the LR script created using HTTP/HTTPS protocol, but I want to know whether lr2jm.pl script is limitted only to HTTP protocol?
I have a script in LR recorded for winsock protocol, as I am trying to conver that to .jmx file with lr2jm.pl I get a blank .jmx file. I know jmeter does not support winsock protocol, but is there any way to convert this script to .jmx?
By SAS on May 20, 2009