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

КОМЕНТАРІ • 26

  • @Shwetank0512
    @Shwetank0512 4 роки тому

    Very good explanation in series of Jmeter.

  • @surajsurya1414
    @surajsurya1414 3 роки тому +1

    Best explanation.

  • @MrNeeleshp
    @MrNeeleshp 4 роки тому +2

    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!

  • @jitendrajadhav327
    @jitendrajadhav327 Рік тому

    Very helpful thanks a lot

  • @spadeyyed
    @spadeyyed Місяць тому

    so helpful

  • @nitinyadav2122
    @nitinyadav2122 2 роки тому +1

    Tysm maam for explained controller 👍

  • @abhijeetsingh089
    @abhijeetsingh089 4 роки тому +1

    Thanks mam

  • @nileshthummar20
    @nileshthummar20 4 роки тому +2

    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.

  • @DevikaKrishnaKumar
    @DevikaKrishnaKumar 2 роки тому

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

  • @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?

  • @Mranil191
    @Mranil191 4 роки тому +2

    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 роки тому +2

      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 роки тому +1

      @@qualityassurancelab7764 this is working fine

    • @qualityassurancelab7764
      @qualityassurancelab7764  4 роки тому +1

      @@nileshthummar20 Thanks for confirming. Keep learning and please share these videos with your friends!

  • @itindranil
    @itindranil 4 роки тому +1

    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

  • @shaarviupasanadivineworship
    @shaarviupasanadivineworship 4 місяці тому

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

  • @sonipandey9627
    @sonipandey9627 4 роки тому +1

    Give a session on IF Controller