TestFragment 顾名思义,碎片化的处理方式 。 它通常和module 一起使用。
官方介绍:http://jmeter.apache.org/usermanual/test_plan.html#logic_controller
The Test Fragment element is a special type of controller that exists on the Test Plan tree at the same level as the Thread Group element. It is distinguished from a Thread Group in that it is not executed unless it is referenced by either a Module Controller or an Include_Controller.
This element is purely for code re-use within Test Plans.
So , 因为登陆获取token的操作 , 以及后期 获取处理task的操作 比较频繁,所以我们使用了TestFragment , moduleController ,Include_Controller 组合使用。
以在登陆操作中的使用为例ÿ