When scaling your JMeter test, preparation is important. Often, very large tests will require significant coordination in terms of resources. The target test environment will need to be scaled up to match production conditions. Likewise, simulating a large number of users will require launching many load generator servers. As part of this preparation, you may want to check JMeter test plans for consistency before running the test. The JMeter Test Plan Check Tool provides this capability.
Download and Setup
This shell script can be downloaded from jmeter-plugins.org. There are two versions of the script – a .sh
script for Linux, and a .bat
file for Windows. You can extract the contents of the downloaded zip file to a local folder on your machine. From there, copy the contents of the /bin
and /lib
folders into the corresponding folders where JMeter is installed on your local machine.
Usage and Parameters
The JMeter Test Plan Check Tool is called directly from the command line. Since it has external dependencies to JMeter classes, it should be invoked from the /bin
folder within your local JMeter installation.
On Linux machines, running the script follows the basic format as follows:
./TestPlanCheck.sh --jmx "path/to/folder/TestPlan.jmx"
For machines running Windows, the .bat variant of the script is invoked:
.\TestPlanCheck.bat --jmx "path\to\folder\MyTestPlan.jmx"
The script accepts several command line options. To specify a target test plan, --jmx
is required, as illustrated above. The resultant output should look similar to as follows:
You may also add the --stats
and --tree-dump
options which will give output for each element in your test plan.
Did you know that RedLine13 offers a full-featured, time-limited free trial? Sign up now, and move your JMeter testing to the cloud today!