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

  Рет қаралды 19,314

Quality Assurance Lab

Quality Assurance Lab

5 жыл бұрын

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

Пікірлер: 26
@Shwetank0512
@Shwetank0512 4 жыл бұрын
Very good explanation in series of Jmeter.
@MrNeeleshp
@MrNeeleshp 4 жыл бұрын
Wonderful explanation. Keep posting the session's.
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Thanks, sure I will post more sessions! Keep learning and share the videos as well!
@surajsurya1414
@surajsurya1414 3 жыл бұрын
Best explanation.
@spadeyyed
@spadeyyed 2 ай бұрын
so helpful
@jitendrajadhav327
@jitendrajadhav327 Жыл бұрын
Very helpful thanks a lot
@nitinyadav2122
@nitinyadav2122 2 жыл бұрын
Tysm maam for explained controller 👍
@saurabhsrivastav902
@saurabhsrivastav902 2 жыл бұрын
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?
@DevikaKrishnaKumar
@DevikaKrishnaKumar 2 жыл бұрын
What should I do if I have to run login once and the other three requests multiple times
@shaarviupasanadivineworship
@shaarviupasanadivineworship 5 ай бұрын
I have scenario to register 100 users first and then login with those users. How to do that?
@nileshthummar20
@nileshthummar20 4 жыл бұрын
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.
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
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.
@gopalgour9781
@gopalgour9781 4 жыл бұрын
@@qualityassurancelab7764 selenium tutorials
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Hi @@gopalgour9781 , I have not shared selenium tutorial videos.
@abhijeetsingh089
@abhijeetsingh089 4 жыл бұрын
Thanks mam
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
You are welcome, keep learning!
@Mranil191
@Mranil191 4 жыл бұрын
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
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
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.
@nileshthummar20
@nileshthummar20 4 жыл бұрын
@@qualityassurancelab7764 this is working fine
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
@@nileshthummar20 Thanks for confirming. Keep learning and please share these videos with your friends!
@itindranil
@itindranil 4 жыл бұрын
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
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Hi, could you please move to Thread Group_2 -> ModuleController and check whether TestFragment is selected under Module To Run?
@alkasingh5009
@alkasingh5009 3 жыл бұрын
I am also getting same error for all thread group1,2 and 3
@sonipandey9627
@sonipandey9627 4 жыл бұрын
Give a session on IF Controller
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
sure, I will share the session on If Controller.
@deepak17612
@deepak17612 Жыл бұрын
@@qualityassurancelab7764 Waiting
JMeter tutorial 14 - How to test SOAP/REST APIs in JMeter
16:02
Quality Assurance Lab
Рет қаралды 30 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 186 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
JMeter tutorial 18 - How to monitor server health using Perfmon Plugin | GUI Mode
20:03
JMeter tutorial 27 - JMeter Real Time Project | Learn JMeter in 50 Minutes!
50:52
Quality Assurance Lab
Рет қаралды 200 М.
22-Module and Include Controllers
13:15
Phani Nagula
Рет қаралды 974
JMeter tutorial 07 - How to read data from CSV File | Parameterization in JMeter
16:12