0

I just started using Jmeter and don't know how to make a variable. This is the HTTP body request and I would like to change the project name each time I perform load testing. body data

I tried using CSV config but it didn't work.

1 Answer 1

0

If you have a CSV file which looks like

project x
project y
project z
  1. Add a CSV Data Set Config and:

    • provide full or relative path to the CSV file, i.e. projects.csv
    • desired variable name, i.e. project

    enter image description here

  2. Once done you will be able to refer the value from the CSV as ${project} where required, i.e. in the Body Data tab of the HTTP Request sampler

    enter image description here

  3. When you run your test the ${project} JMeter Variable placeholder will be replaced by the next line from the CSV file on each iteration of each virtual user:

    enter image description here

More information: JMeter Parameterization: The Complete Guide

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.