I have a task where I need to run one .jmx file with different arguments. I have completed that script but the problem is while setting it into batch file. I need to run multiple commands into one batch file. This is how I have written my batch file but it seems to run only first command.
:begin
cd C:\abc\apache-jmeter-2.11\bin
jmeter -n -t API_Monitoring.jmx -Jport=91 -Jhost=xxx -JserviceName=aaa
jmeter -n -t API_Monitoring.jmx -Jport=91 -Jhost=yyy -JserviceName=bbb
jmeter -n -t API_Monitoring.jmx -Jport=90 -Jhost=zzz -JserviceName=ccc
jmeter -n -t API_Monitoring.jmx -Jport=91 -Jhost=ppp -JserviceName=ddd
goto begin
I tried with start and wait too. But nothing works. Can anyone please help how to write such batch?