Posts

Showing posts from September, 2018

Control Jmeter test properties with Simplified Property Function ( __P ) in command line

Image
Hi .. how's it going? I thought of sharing something which I found out recently while I was generating a performance script in Jmeter with Continuous Integration using Jenkins. As you know we use the JMeter GUI mode to PLAN and Non-GUI mode to RUN JMeter scripts. As we design different tests with different thread groups, to execute our performance test plans we need to assign different values to Threads, Ramp-Up Time, Loops mainly. My main problem was the need to change this value from time to time. If we use the GUI mode to change it and run, It'll work. But It takes some additional amount of time to do that. So the solution I found is with __P which is the simplified property function of JMeter. What you have to do is really simple. With __P you can assign a variable in your JMeter script and pass it in your command line with -J argument. For example, if your defined variable was ' Threads ' and if you add -JThreads=5 in you JMeter command. The variable Thr