Monday, May 2, 2016

JMeter Commands

Running the JMeter from Command Prompt by parameterizing the No of threads, Ramp up, duration and passing through the command prompt in windows.

jmeter -n -t "Record_Firefox.jmx" -Jno.threads=10 -Jno.rampup=10 -Jno.duration=700

Below syntax used to parameterize in the script
${__P(no.threads)}
${__P(no.rampup)}
${__P(no.duration)}


Running the JMeter from Command Prompt by parameterizing the No of threads, Ramp up, duration and passing through the command prompt in Linux.

./jmeter -n -t Record_Firefox.jmx -Jno.threads=10 -Jno.rampup=10 -Jno.duration=700 –j jmeter.log

Below syntax used to parameterize in the script
${__P(no.threads)}
${__P(no.rampup)}
${__P(no.duration)}

Recording or executing Internet URL using JMeter in an environment which uses proxy to connect to Internet.

jmeter.bat -H (ProxyIP) -P (ProxyPort) -N localhost -u domainname\username -a password


HTML Report Generation after completion of execution
jmeter.bat -n -t TEST.jmx -l  test1.log -e -o Report

HTML Report generation for already existing log  file

jmeter -g test.log -o Report