0
votes

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!

2

2 Answers

0
votes

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

0
votes

I think you mean the Include Controller. That way you can combine different jmx files to be run from one 'master' file. There are some things to keep in mind, but check the manual for that.

enter image description here