I am doing Performance testing for my web App with JMeter.
I tried running multiple (more than 1) .jmx by merging all scripts in one, but it doesn't work on Jmeter non-gui mode. So is that possible to run multiple .jmx recorded scripts from Jmeter non-gui mode without using any plugins like Maven or Ant plugins? Keep in mind that all different scripts have different credentials to login into web App and executing different tasks.
Thank you in advance.
The instructions will differ depending on your operating system:
For Unix based (Linux, MacOSX, FreeBSD, etc): you can use GNU parallel
program:
parallel --gnu << 'EOF'
jmeter -n -t test1.jmx -l result1.jtl
jmeter -n -t test1.jmx -l result2.jtl
etc.
EOF
For MS Windows: you can use a CMD or Powershell script assuming start
command something like:
start jmeter -n -t test1.jmx -l result1.jtl
start jmeter -n -t test2.jmx -l result2.jtl
etc.
The fastest and the easiest way will be going for Taurus tool, you will be able to launch simultaneous different JMeter tests via simple YAML syntax:
---
execution:
- scenario:
script: test1.jmx
- scenario:
script: test2.jmx
- scenario:
script: test3.jmx
#etc
See Taurus - Working with Multiple JMeter Tests for more details.