Get Knowledge from Video instead of Content:

Saturday, 1 October 2016

Update Parameter Value at Each Occurrence



The content has been moved to PerfMatrix Site.

Link: https://www.perfmatrix.com/update-parameter-value-at-each-occurrence-in-jmeter/

10 comments :

  1. Hi,

    Is it possible to do this using ${__CSVRead(,next())} function?

    ReplyDelete
    Replies
    1. Hi Prasanaa,

      I tried but did not get effective use of this function. If you used this function practically, kindly let me know, so that I can include the same in my post.

      Delete
  2. Nice explanation, can we achieve all the parameter possible setting in JMeter? Is there any link where I can found same explanation for rest of the settings of Parameter?
    Thanks in advance.

    ReplyDelete
    Replies
    1. Since JMeter does not have one point parameter setting, so can not explain at one place. But I have written the some posts which covers all the parameter element of JMeter. You can refer to below links. The 4th URL is very important and interesting:

      1. User Parameters - http://perfmatrix.blogspot.com/2017/01/apache-jmeter-user-parameters-preprocessor.html
      2. User Defined Variable - http://perfmatrix.blogspot.com/2017/01/apache-jmeter-user-defined-variable.html
      3. CSV Data Set Config - http://perfmatrix.blogspot.com/2017/02/apache-jmeter-csv-data-set-config.html
      4. Sharing mode of CSV Data Set Config - http://perfmatrix.blogspot.com/2017/04/understand-practically-sharing-mode-of-CSV-data-set-config.html

      Delete
  3. Is it possible, to use "Each Occurance" within the same request body instead of different sampler within the same iteration as explained here

    ReplyDelete
    Replies
    1. Hi Sumit,

      The CSV Data set value can not be updated within the same sampler. The solution is best suited for advancing the parameter value the same iteration in different sampler.

      Delete
    2. Hi ,
      I have the same doubt.But i have 48 occurance in one iteration and i need to update in each occurance. Could you please suggest any way to overcome this situation.

      Delete
    3. Hi,

      If you have 48 occurrences in one iteration but in each occurrence is in different sampler then the suggested solution in the post will work.

      Delete
  4. how about unique once or unique each iteration

    ReplyDelete
  5. Hi Prabhat,

    Either you need to write some beanshell script or the best way is to have sufficient number of data in CSV.

    For example 1:
    Number of thread: 10
    Number of loop: 5
    Number of occurrence in each iteration: 1
    Then data required in CSV will be 50 (=10*5*1)

    For example 2:
    Number of thread: 10
    Number of loop: 5
    Number of occurrence in each iteration: 3
    Then data required in CSV will be 150 (=10*5*3)

    ReplyDelete