How to do parameterization for csv dataset configuration file name in jmeter

I am passing the value for the text of the filename registered in the csv dataset config as $ {filename}, this variable contains the whole path and retrieves it from yet another csv dataset config which is present directly in the thread group and a variable that I pass to the config of the csv dataset which is inside the if controller here, I was unable to pass that value to the text file name, getting the problem.

+3


source to share


1 answer


CSV dataset config cannot use JMeter variable as "Filename". However, you can use __property .

So, your test plan should look like this:



  • Read some value in JMeter variable i.e. foo

    via 1 CSV dataset configuration
  • Converts a variable foo

    to a property foo

    via the __setProperty function
  • Use ${__property(foo,,)}

    as "filename" in the second configuration of the CSV dataset.

For more information on the different JMeter features see How to Use JMeter Features After Series

+4


source







All Articles