Category: Performance

Using JMeter Properties from the Command Line

It says it right there when you start JMeter: Don’t use GUI mode for load testing !, only for Test creation and Test debugging.”

Don't use GUI mode for load testing !
JMeter Startup Message

The JMeter developers were even kind enough to include an example of how to call JMeter on the command line:

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

This is a good start, but the real power in running JMeter from the terminal comes when you can set your test parameters at run time by passing them as properties. For example, you might want to run the same scenario with various thread counts or for a different number of iterations. You can even use command-line properties to toggle multiple test scenarios. Continue reading “Using JMeter Properties from the Command Line”

Creating Weighted Flows in JMeter

It is pretty common for applications to have multiple flow paths. For example, it is common in mobile games to have one call flow for players that have authenticated with Facebook and a very different one for anonymous players. When trying to replicate a realistic server load in JMeter, it is important to be able to handle these different paths that users take through the client application.

JMeter actually has this capability right out of the box, no Groovy scripting or secondary plugins needed. With a Random Variable and a few If Controllers, you can enable any number of different flow paths in your load testing script. Continue reading “Creating Weighted Flows in JMeter”