Search code examples
jmeterjmeter-pluginsjmeter-3.2ruby-jmeter

How to extract/share some common logic/sampler etc from many jmeter jmx files?


If there are many jmeter scripts(jmx files) in a stress project for different cases run, how to maintain the common jmeter code which can be shared by each jmx?

For example, many jmx files have same thread group, http sampler, config elements (header manager, Authorization manager etc) ?

Any way to only edit once and apply for all jmx scripts? I couldn't find the related jmeter doc about this? wonder if jmeter jmx file supports any share code dynamic load/management? Any suggestions are very appreciated!


Solution

  • My expectation is that you're looking for the Module Controller. In conjunction with Test Fragments you will be able to re-use sequences of the Test Elements either in current Test Plan or even in different .jmx scripts.

    See Using JMeter Module Controller article for detailed information if needed