JMeter tutorial 13 - How to use Logic Controllers in JMeter | Module Controller | Include Controller

preview_player
Показать описание
This video covers how to use Logic Controllers in JMeter
Learning:
Simple controller - 2:45
Once Only Controller - 3:46
Module controller - 7:31
Include Controller - 17:40

Simple controller- used to group requests

Once Only Controller - place those request inside this controller which needs execution only one time

Module controller -
It is used to make the script modular.
It has mechanism to substitute test plan fragments into the current test plan at run time

Test Scenario for module controller:
• login and search a product
• login and order a product
• login and cancel order

Include Controller:
The Include controller is designed to use an external JMX file

Test Scenario for include controller
• login
• search a product
• order a product
• cancel order

Test Fragment:
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

==================================================================

JMeter Tutorial Playlist:

Git and GitHub Tutorial Playlist:

Automation Anywhere Tutorial Playlist:

Рекомендации по теме
Комментарии
Автор

Wonderful explanation.


Keep posting the session's.

MrNeeleshp
Автор

Very good explanation in series of Jmeter.

Shwetank
Автор

Awesome explanation thank you ma'am,
is it possible to select specific requests to form the "Test fragment"?
in the Test Fregmment add more than one request it is ok, but I want to select any specific request one or two in thread group 1, and another thread group has another request from the same Test Fragment.

nileshthummar
Автор

How i can run multiple http request in sequence, for example second request should be called after first request. If directly second request get called it fail

Mranil
Автор

I have followed all the steps described by you, but for module controller, while I am executing an error msg is coming ...
Error occurred starting thread group :Thread Group_2, error Controller has no selected Controller (did you rename some element in the path to target controller?), test was shutdown as a consequence,
see log file for more details

itindranil
Автор

I have scenario to register 100 users first and then login with those users. How to do that?

shaarviupasanadivineworship
Автор

What should I do if I have to run login once and the other three requests multiple times

DevikaKrishnaKumar
Автор

Hi I am having multiple thread groups. ThreadGroup1 is for login and extracting bearer token. ThreadGroup2, TG3.. for executing the requests in the test plan as Run thread groups consecutively. After 1 hr the bearer token expires and somewhere in TG2 or TG3 the test stop as token is expired. At this point before the token expires, I want to login(ThreadGroup1) and regenerate the token and then continue the test from where it has stopped. Could you help me which controller can be used to achieve this?

saurabhsrivastav
visit shbcf.ru