Reputation: 327
I have 2 test plans for 2 different processes that I want to test using Jmeter; both scripts are implemented and can be run individually via the Jmeter GUI.
However, is it possible to run one test plan using the command line, and then once the first test plan finishes, the second test plan gets kicked off. Basically, I want to run one test plan after another: NOT at the same time...
Eventually we want to put these 2 test plans on a server and have them run one after the other using some maven script, but for now is there any way to accomplish this using Jmeter's command line?
Upvotes: 0
Views: 2263
Reputation: 168217
For the command-line non-GUI mode just run your files using shell script like:
jmeter -n -t test1.jmx -l result1.jtl
jmeter -n -t test2.jmx -l result2.jtl
You can also pass the same file via -l
command-line option, results of test2.jmx
will be appended to the results of test1.jmx
.
For Maven execution just copy both .jmx
scripts to src/test/jmeter
folder of your project - Maven will execute the tests sequentially.
After test execution you will be able to find results files under target/jmeter/results
folder, one file per .jmx script. The results can be merged together via i.e. Merge Results tool
More information:
Upvotes: 1