Jun. 19th, 2017

Convert LoadRunner to Open-Source JMeter in Minutes

As agile software development, continuous integration and continuous delivery gain traction in many organizations, the democratization of performance testing is being widely adopted. This is leading to more testing and far greater coverage. Development teams are relying less on waiting for scarce external load testing resources. Instead, they are performance testing by using open-source easy-to-use Apache JMeter™, and using it early in the development cycle.
 

For a long time, HP LoadRunner was the only serious contender in the performance testing market and they could charge high annual license & maintenance fees. Besides the cost of the software itself, running large scale performance tests with LoadRunner is no easy feat.

 

LoadRunner’s meticulous test building and a long training process make load testing difficult. Especially compared to JMeter’s simple test building process that is easy to adopt by practitioners and advanced load testing abilities. JMeter users also enjoy extensive open-source community support as well as integration with additional open-source tools, like Jenkins for Continuous Integration, or Taurus, an open-source testing automation framework. Finally, JMeter is free, which removes licensing barriers and makes it unlimited.
 

Many people are looking for an open source alternative for performance testing as a result of the high price of LoadRunner. Look no more, help is here.

 

The free Script Converter can convert LoadRunner HTTP to JMeter and LoadRunner TruClient to Selenium in minimum time. You can also convert to Taurus and BlazeMeter. In this blog post we will explain how to convert your LoadRunner HTTP scripts to JMeter, Taurus and BlazeMeter. To learn how to convert to Selenium, click here.

 

Want to see a demo of this converter tool? Check out the recording of the webinar we held, Moving from LoadRunner to Open Source Testing Tools - Script Conversion & Test Automation.
 

How to Convert Your LoadRunner Scripts to JMeter

 

Please note that as of the current JMeter version 3.2, you will be able to convert the tests assuming only HTTP(S) protocol (and derivatives). In LoadRunner terms they are:

  • Web - HTTP/HTML
  • Web Services


1. Go to https://shiftleft.blazemeter.com

 

switch from loadrunner to jmeter
 

2. Compress your HTTP/TruClient script directory to a zip file. Upload the zip file to the converter.

 

3. Let the script conversion tool take it from there.

 

convert loadrunner to open-source


4. Once the script conversion is complete, click on “Download from BlazeMeter”. If you need to, sign up to BlazeMeter for free.

 

script converter by blazemeter

 

5. Download the compressed converted ZIP file.

 

switch from loadrunner to jmeter for free
 

6. Open the downloaded file and open the folder named “Your JMeter or Selenium Scripts”.

 

switch from loadrunner to selenium

 

7. Copy the JMX files to a folder on your computer.

 

8. Open the JMX file in JMeter (install JMeter if necessary). Adjust the script if you need to and run it.

 

run loadrunner in jmeter

 

That’s it! You just ran your LoadRunner file in JMeter with a few easy steps.
 

How to Convert Your LoadRunner Scripts to Taurus

 

The LoadRunner Script converter also enables you to convert your tests to Taurus, an open-source automation framework. Taurus allows you to easily run and automate open-source tests and view analytics. To learn about Taurus, click here.
 

To convert to Taurus, follow steps 1-5 from the JMeter conversion section.
 

6. Copy the YML and txt files and put them in the same folder on your computer. Adjust the YML file if necessary in your text editor.

 

run loadrunner in taurus

 

7. Install Taurus if necessary.

 

8. Run the command 

bzt <your_filename.yml>

 

9. View and analyze the results:

 

run loadrunner in open-source

 

That’s it! You just ran your LR file in Taurus in a few easy steps.
 

How to Convert Your LoadRunner Scripts to BlazeMeter

 

Your LoadRunner scripts can also be converted to BlazeMeter.
 

Follow steps 1-4 from the JMeter conversion section.
 

5. You can configure your tests by downloading the ZIP file. The “Test History” tab shows details such as which test execution engine is used, number of concurrent users and the GEO location from where the tests are executed.

 

convert loadrunnet to blazemeter
 

6. Launch the test for the default duration of 20 mins.

 

analyze loadrunner in blazemeter
 

That’s it! You can now view the test results on BlazeMeter:

 

loadrunner to jmeter and selenium
 

To learn more about switching from LoadRunner to JMeter check out these three blog posts:

 

How I Learned to Stop Worrying about LoadRunner and Start Loving JMeter

 

Why LoadRunner Users should Give JMeter a Chance

 

7 Reasons JMeter is Easier to Use Than LoadRunner

 

Want to see a live demo of this converter tool? Join us for the upcoming webinar, Moving from LoadRunner to Open Source Testing Tools - Script Conversion & Test Automation, on Wednesday June 28.

 

BlazeMeter also offers free LoadRunner to JMeter and open-source script consultancy services. Click to learn more.

Interested in writing for our Blog? Send us a pitch!