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

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 13

  • @swapnabalakrishnan558
    @swapnabalakrishnan558 7 місяців тому +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  7 місяців тому +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 7 місяців тому +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  7 місяців тому

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

    • @littleslawyoutubechannel
      @littleslawyoutubechannel  7 місяців тому

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

  • @nitishmishra8572
    @nitishmishra8572 8 місяців тому +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  8 місяців тому +1

      Sure let me check and will get back to you

    • @nitishmishra8572
      @nitishmishra8572 8 місяців тому

      @@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 ..

  • @piyushgarde1647
    @piyushgarde1647 Рік тому +1

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