Question

I have a webservice implemeneted by REST.

Is it possible to insert a script into JMeter to run some commands sequentially? If yes, how to do?

Was it helpful?

Solution

JMeter supports several scripting languages, from performance perspective it's recommended to use JSR223 Sampler and Groovy as a language.

If your script is "light" and doesn't assume running in multiple threads you can consider Beanshell. How to use BeanShell guide is a good place to start for JMeter scripting.

If you could describe your use case in more details perhaps we might find the way to do it without scripting, JMeter is powerful and flexible enough.

OTHER TIPS

Sure, just use scripting in sampler or in PreProcessor in PostProcessor or Assertion. What kind of script and for what purpose do you want to run script?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top