LR2JM - Convert LoadRunner Scripts to JMeter

August 28, 2007 – 11:09 am

UPDATED 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!

  1. 9 Responses to “LR2JM - Convert LoadRunner Scripts to JMeter”

  2. where is the script?

    By avinash on Oct 1, 2007

  3. Sorry, about that- it should be accessible now here: http://www.performanceengineer.com/lr2jm

    By cw on Oct 1, 2007

  4. 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

  5. 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

  6. 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

  7. SAS-

    Try putting the script in C:\ then, at DOS prompt:

    C:\>perl lr2jm.pl QuickSell
    

    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

  8. Thanks Charlie ,Now i am able to get .jmx file in my loadrunner script directory.

    By SAS on Jun 23, 2008

  9. 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

  10. Saravanan-

    Did you read the User Manual?
    http://jakarta.apache.org/jmeter/usermanual/index.html

    By charlie on Jul 25, 2008

Post a Comment