What & How to use While Controller in JMeter | While controller explained with 2 examples JMeter

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • In this video, we will see
    1. What is While controller
    2. How to add While controller
    3. How does While controller works
    4. How does a counter helps in While controller
    5. How to use While controller without counter
  • НаукаНаука

Комментарии • 13

  • @nitishmishra8572
    @nitishmishra8572 4 месяца назад +1

    How to pass 2 condition in while controller.
    Suppose 1 requewt need to execute until we get 200 or 500 response time.
    What is condition for this?
    Please help me in this

    • @littleslawyoutubechannel
      @littleslawyoutubechannel  4 месяца назад +1

      Sure let me check and will get back to you

    • @nitishmishra8572
      @nitishmishra8572 4 месяца назад

      @@littleslawyoutubechannel
      I have total API 13.
      Need to achieve TPH 100PER HOUR for each transaction.
      a user can't use 2 times it means for each iteration need unique user. And
      1 iteration takes 80 sec.
      So, how many users/thread need to give and what should be loop count.
      How to pass unique user each tims?

  • @yerramillivaraprasad9829
    @yerramillivaraprasad9829 Год назад +1

    I am running while loop till I get a desired response. But what happening is, if my desired response is in the 10th iteration. Before 10th iteration if I get an error then that is being counted as a failure.

    • @littleslawyoutubechannel
      @littleslawyoutubechannel  Год назад

      Either you have to fix the error, skip the error using a condition or you can ignore it ..

  • @swapnabalakrishnan558
    @swapnabalakrishnan558 3 месяца назад +1

    Hai sir I need help . In my case I have an API which is a batch process. After that API i will get a key. Since it is batch process, in load testing batch is in process so that I get an empty key in next API. I need to wait till batch complete how can I implement in load testing

    • @littleslawyoutubechannel
      @littleslawyoutubechannel  3 месяца назад +1

      Got it, so in that case add a thinktime so the test will wait until the api key is generated and then you will get the api key for the next request . Hope this helps. Please let me know if you need any information

    • @SwapnaBalakrishnan-cb1es
      @SwapnaBalakrishnan-cb1es 3 месяца назад +1

      @@littleslawyoutubechannel I have tried using a constant timer but it is not working sir, I used while controller but the loop is running infinitely and the following API's not running

    • @littleslawyoutubechannel
      @littleslawyoutubechannel  3 месяца назад

      @@SwapnaBalakrishnan-cb1es add a uniform random timer inside the request which will give you enough thinktime and delay

    • @littleslawyoutubechannel
      @littleslawyoutubechannel  3 месяца назад

      @@SwapnaBalakrishnan-cb1es let me know if you need any help for a quick catchup at vasanthtce@gmail.com

  • @piyushgarde1647
    @piyushgarde1647 Год назад +1

    I am doing same thing but my loop goes in infinite iteration