0% found this document useful (0 votes)
1 views

Include Controller Tutorial

Uploaded by

LA3T
Copyright
© © All Rights Reserved
Available Formats
Download as SXW, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Include Controller Tutorial

Uploaded by

LA3T
Copyright
© © All Rights Reserved
Available Formats
Download as SXW, PDF, TXT or read online on Scribd
You are on page 1/ 2

Include Controller Tutorial

This is a short tutorial explaining the basics of the include controller.


The include controller provides an easy way to include modules in a
test plan. It is different than the module controller in a couple of ways.

1. the include controller loads a simple controller with all it's samples,
where as the module controller can use any controller
2. the include controller doesn't use the workbench
3. the module controller doesn't load from a file
4. the include controller loads the module at runtime and doesn't
display the contents of the simple controller

There are a couple of reasons why one might want to use the include
controller.

1. break a test plan into resusable modules


2. reduce the cost of maintaining test plans
3. reduce duplication of common process

For example, say you need to test an application that requires login. If
each test plan had the login requests, a change in the login process
would require updating all test plans. By making the login a module,
all other test plans can reuse it. When the login process changes, the
change is made to the module and all other test plans get the change.
One limitation of the current implementation is the contents of the
module are only loaded at runtime, so users can't view or edit the
contents of an included module.

The include controller has 2 properties. The name and the filename.
The name is the descriptive name for the controller in the test plan.
The filename is the name of the .jmx file.

Step-by-step

1. start jmeter
2. select the workbench
3. add -> logic controller -> simple controller
4. enter “module1” in the name
5. now add one or more samples to the controller
6. once the samples are added, right click on “module1”
7. select “save as” and save it as module1.jmx

Module1.jmx can now be used with any test plan. The include
controller hasn't been tested with other controllers as the root
element. If you need to use other controllers, use simple controller as
the root and add other controllers to it.

You might also like