0
votes

can we parameterize the HTTP Sampler method in Jmeter ? I am using Jmeter 2.13.

I tried the solution remomended here but no luck.

How to parameterize http methods in Jmeter using CSV data config?

Thanks in advance.

Regards, Hari

1

1 Answers

1
votes
  1. Create a file, i.e. test.csv with the following contents:

    GET
    POST
    
    1. Add CSV Data Set Config and configure it like:

      • Filename: test.csv
      • Variable Names: METHOD

        JMeter CSV Data Set

    2. Add HTTP Request sampler and set "Method" to ${METHOD}

      JMeter HTTP REquest method parameterization

    3. That's it, when you run your test each iteration it will use the next line from the test.csv file

      JMeter parameterize method demo


Also be aware that according to JMeter Best Practices you should always be using the most recent JMeter version so consider upgrading to JMeter 4.0 (or whatever version is available at JMeter downloads page) as soon as possible