-Test Fragment Jmeter assembly of (test sequences) - how to put the thread group following Test Fragment

1, Test Fragment introduction

Test Fragment is a special controller, and thread group is the same level. Without the use of the controller module ( Module1 the Controller ) or Include_Controller call, Test Fragment is not performed.

Test Fragment is mainly used for script reuse .

2, the controller module call Test Fragment

When the module controller calls Test Fragment, Test Fragment if the thread should be disabled to avoid execution Test Fragments itself. If the Test Fragment thread on outside the group, can be enabled or disabled, it will not be executed. The default new Test Fragment, is disabled.

3, How to Test Fragment into thread groups below

After the new test well fragment inserted into the upper right-click, select a common controller, then the controller may be dragged below the thread group.

4, the new test fragments and calls

After Jmeter open, default generate a test plan and table, right-click the test plan, choose TestFragment, New TestFragment, add the relevant script.

After creating a thread group, right-click to add thread group - logic controller - the module controller or Include Controller

4.1 module controller

Mouse to select the relevant TestFragment module controller also can call other modules.

4.2 Include Controller

It includes a controller, into the test plan to the relevant .jmx.

发布了31 篇原创文章 · 获赞 16 · 访问量 7万+

Guess you like

Origin blog.csdn.net/SwTesting/article/details/84647999