JMeter tutorial 13 - How to use Logic Controllers in JMeter | Module Controller | Include Controller
Вставка
- Опубліковано 21 тра 2019
- 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:
• JMeter Tutorial
Git and GitHub Tutorial Playlist:
• Git and GitHub Tutorial
Automation Anywhere Tutorial Playlist:
• Automation Anywhere A1...
Subscribe for more tutorials - / @qualityassurancelab7764
Very good explanation in series of Jmeter.
Best explanation.
Wonderful explanation.
Keep posting the session's.
Thanks, sure I will post more sessions! Keep learning and share the videos as well!
Very helpful thanks a lot
so helpful
Tysm maam for explained controller 👍
Thanks mam
You are welcome, keep learning!
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.
If you want to select specific Request from Test fragment using Module Controller, there is no option to do so. You can select any of the below options to if you don't want to select complete Test fragment:
Option 1: Make several test fragments and call the required one from Module Controller
Option 2: Save the Requests under Test Fragmnet as .jmx file and Add Include controller to to call specific .jmx file(shown in the video at 17:40)
Hope this helps, let me know for further query.
@@qualityassurancelab7764 selenium tutorials
Hi @@gopalgour9781 , I have not shared selenium tutorial videos.
What should I do if I have to run login once and the other three requests multiple times
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?
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
Under Test Plan, check the box - run thread groups consecutively. This allows HTTP requests under the Thread Group to run in sequence.
Hope this helps, let me know for further query.
@@qualityassurancelab7764 this is working fine
@@nileshthummar20 Thanks for confirming. Keep learning and please share these videos with your friends!
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 message:ModuleController:Module 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
Hi, could you please move to Thread Group_2 -> ModuleController and check whether TestFragment is selected under Module To Run?
I am also getting same error for all thread group1,2 and 3
I have scenario to register 100 users first and then login with those users. How to do that?
Give a session on IF Controller
sure, I will share the session on If Controller.
@@qualityassurancelab7764 Waiting