JMeter tutorial 17 - How to use Functions and Variables in JMeter

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

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

  • @abridgetool
    @abridgetool 4 года назад +1

    How should I declare global variable which can be used between multiple thread groups? Thanks.

  • @MrVijayvideo
    @MrVijayvideo 4 года назад +1

    Good explanation

  • @TheBharat234
    @TheBharat234 4 года назад +1

    How to use functions in the text file.I am using a csv to read test data and want to update some values in the text file using the functiins

  • @Imdeeparajan
    @Imdeeparajan 4 года назад +2

    Can you explain the random function and how to create Random values from csv file ....like when we need different values for sign up - userid and password. Can you please create a video on this

    • @qualityassurancelab7764
      @qualityassurancelab7764  4 года назад +2

      Jmeter Random function has the format - ${__Random(minValue,MaxVal)}. The random function returns a random number that lies between the given min and max values.
      To create Random numbers from CSV file, add multiple random numbers in CSV file and call them in JMeter script using CSV dataset config

  • @tulasiraochintala4046
    @tulasiraochintala4046 3 года назад

    Hi. How to send content-Length in jmeter headers. its dynamically changing the value for each request

  • @shirsN
    @shirsN 4 года назад +1

    Hi, I'm using having http request under which i have one jdbc preprocessor. This preprocessor would run a query and will fetch a field which can either be a integer or a null value. Under jdbc preprocessor I have variable name as abc. Now i want to pass value of this ${abc} variable to http request json field say "pqr" : ${abc} . So when ${abc} holds intger value it works fine but if it has null value it returns ${abc} instead of null . How to make this work, would you please assist. As my requirement is also to pass null

    • @qualityassurancelab7764
      @qualityassurancelab7764  4 года назад +1

      Hi, in this case add the HTTP sampler under if controller as explained below:
      Add If controller and provide the condition ${abc} ==null. Inside this If Controller, add HTTP sampler and provide json field as "pqr" : null
      Add one more if controller and provide the condition ${abc} !=null. Inside this If Controller, add HTTP sampler and provide json field as "pqr" : ${abc}

    • @shirsN
      @shirsN 4 года назад

      @@qualityassurancelab7764 thanks so much for your response. I will definitely check this.

  • @Belalakhtar
    @Belalakhtar 10 месяцев назад

    It increments value by 2 as like 2,4, 6, 8... not as 1,2,3,4. I am using the same as is ${__counter(,)} function. What could be the possible cause that it increment by 2 in place of 1? Support please.

  • @kranthikumar2367
    @kranthikumar2367 4 года назад +1

    Can you tell me how to use utc date and time zone in jmeter

    • @qualityassurancelab7764
      @qualityassurancelab7764  4 года назад +1

      You can use __groovy() function in JMeter to get the UTC time zone.
      ${__groovy(new Date().format("yyyy-MM-dd'T'hh:mm:ss"\, TimeZone.getTimeZone('UTC')),)}

    • @kranthikumar2367
      @kranthikumar2367 4 года назад

      Thanks for the reply ..can you please help me how to get this format 2020-04-18T02:00:00Z

  • @vikasviky8759
    @vikasviky8759 4 года назад

    I need a help!
    How can I extract JSON value from the encrypted value (eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.==) This is in Base64 encrypted format.
    After Decode.
    is there any function or Javascript library?

  • @kirankumaralam
    @kirankumaralam 4 года назад

    How can we pass the form parameters Jmeter...I have viewed all your videos.. did not find

  • @MultiDpz
    @MultiDpz 3 года назад

    How to pass value from one thread to another ? ( how to set global variable ) ?