Prashanth K
Prashanth K

Reputation: 123

jmeter scripting for application

We had scripted an .exe application in load runner and We would like to try it out with JMeter.

The script is very complex and I'm not sure if JMeter could support it, any possibilities available?

Upvotes: 1

Views: 229

Answers (3)

Ori Marko
Ori Marko

Reputation: 58774

Now you can execute JMeter script inside Load Runner, check How-to run JMeter test in LoadRunner:

Starting with Micro Focus LoadRunner (LR) 12.55 and Performance Center (PC) 12.55, you can execute JMeter tests in addition to other LoadRunner scripts.

Setting for LoadRunner scenario with a JMeter test:

Open LR Controller

Select the JMeter Scripts radio button

Press the Browse… button

Select JMeter Test file (e.g. Test_1.jmx) and click Open

Click OK button on the next window

Upvotes: 0

Imlus
Imlus

Reputation: 57

You have built a test script within Load Runner and you want it to simply run in JMeter — that's not gonna happen. These are two different test tools. Rebuild the script in JMeter and it will run as smoothly as your script with Load Runner.

Upvotes: 0

mongermd
mongermd

Reputation: 227

I have been a devoted user of Apache JMeter for the past decade and it does offer helpful web load testing functionality for free. Here are some pointers that may help determine if JMeter is right for you:

  1. Apache JMeter is a Java application, so it does have upper limits on resources (memory, sockets, threads). These resources can often be increased or consumption optimized (standard JVM args or jmeter.properties file) for better performance under heavy load testing.
  2. When capturing scripts using the "HTTP Proxy Server" node, make sure that you have a "User Defined Variables" node created and populated with your name/value pairs for the test. This will trigger a variable substitution in the proxy server. This is invaluable when you want to parameterize the script.
  3. As with tree based structures, position determines scope. Make sure that you isolate actions under the proper node or else they will execute for everything at the same scope.
  4. For simulated delays, I have had a good run with the "Uniform Random Timer" where you can specify a lower and upper limit.
  5. For validation, the "Response Assertion" is helpful for raw strings and regular expressions.
  6. For variable extraction, the "Regular Expression Extractor" allows you to extract a value from a page and reference it in a variable for the rest of the test. Node scope appears to be treated as global for these extractors.
  7. When watching the test, "Aggregate Graph" is helpful. "View Results Tree" is useful when troubleshooting, but adds extra memory usage to tests and can cause heavy tests to fail. Note that if you save the results on a listener node, you can reload those results in the control at a later time. Also, if you highlight the table in "Aggregate Graph" or "Aggregate Report", you can paste the results into Excel directly. Very helpful for reporting.

Hopefully this gives you an idea of some of the value and gotchas with Apache JMeter.

Upvotes: 1

Related Questions