Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reuse SOAP/XML-RPC requests in a single JMX file

I have a Login SOAP request on Jmeter as a "Set UP" and a set of SOAP requests after that with in "do Test" simple controller and then the "Tear down".

Would wish to again use the Login SOAP request, to start another set of tests on the same Jmx file. How do I do that, is there any way out to call the Login action, rather than copy/paste of the existing Login request?

In general is there any way out to reuse the requests/samplers within the same Jmx file?

like image 890
Pallavi Avatar asked Dec 14 '25 09:12

Pallavi


2 Answers

To re-use code, you want to use the MODULE controller, as detailed in the manual.

like image 84
BlackGaff Avatar answered Dec 17 '25 05:12

BlackGaff


There are several options to reuse logic in JMeter:

  • "Module controller" (see BlackGaff's answer)
  • "Include controller", which allows you to read in an external.jmx file
  • "Parametrized Controller" from the jmeter-plugins project (not part of the JMeter core), which builds on the Module controller and allows to parametrize it
like image 40
sleske Avatar answered Dec 17 '25 06:12

sleske



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!