Search code examples
javascripthttpjmeterbeanshelljsr223

JMeter - Calling HTTP samplers in JSR223/BeanShell samplers


in SoapUI I had the ability to execute test steps and http requests using JavaScript to allow more dynamic tests. After facing some problems I moved to JMETER.

After searching other questions and the Jmeter documentation, I can't find a way to call http samplers using the JSR223/BeanShell samplers in JMeter. None of the built-in objects provided such method as far as I saw.

Thank you very much :)


Solution

  • Can you give more details on your use case ?

    JMeter philosophy is to combine Controller (if, while, loop, foreach):

    JSR223 pre/post processors :

    with groovy and samplers.

    I am sure your use case can be done using those components as we do on a regular basis very complex scenarios with them