刚开始学JMeter的时候iu,在这篇文章里看到模块复用的例子,但是作者并没有给出是如何做到的,后来自己查资料看文档解决了,然后就忘了JMeter里的 Module Controller 和 Test Fragment - 乌鸦不会飞 - 乌鸦不会飞,得记下来。
涉及到JMeter提供的两个元素:
Module Controller【右键 Thread Group - Add - Logic Controller - Module Controller】
Test Fragment 【右键 Test Plan - Add - Test Fragment - Test Fragment】

一般,将Test Fragment放在线程组的外面,然后在线程组中新建Module Controller,在Module To Run下面选择需要的Test Fragment 即可。这样,在执行线程组中的Module Controller即相当于执行了Test Fragment。

参考:
http://blog.csdn.net/ultrani/article/details/8309932
http://jmeter.apache.org/usermanual/component_reference.html#Module_Controller