Вопрос

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?

Это было полезно?

Решение

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.

Другие советы

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?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top