1

I have a JMeter test I would like to run in JMeter that have some parameters. I installed the performance-plugin for Jenkins to enable JMeter testing as described here:

http://jenkinsci.github.io/performance-plugin/RunTests.html

However, the instruction is not clear on how to enter command-line parameters which is essential for my test. Here is what I got so far:

enter image description here

Is it possible at all to enter parameters to run my test? Or does it have to be completely parameter free. IE, I need to hardcode all parameters into the test itself?

2 Answers 2

1

Yes, you can easily trigger your JMeter jmx suite via jenkins coupled with performance plugin. For triggering the build:

  • If you're using windows execute the build as windows batch command, giving the same commands that you would give if you were running your JMeter script from your command line.
  • To give parameters you can conveniently select the option in jenkins configuration 'This project is parameterised' and pass the parameters ensuring the same reference is used in your JMeter jmx file.
  • You can use the __P() function to make ramup, hostname or number of threads configurable and refer them using J command.
0

You can use this following command to run your performance test

jmeter -n -t GenericPerformanceScript.jmx > output.log &

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.