0

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 Answer 1

2
  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

Sign up to request clarification or add additional context in comments.

1 Comment

This Perfactly Worked. Thanks :)

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.