1
votes

I'm new to JMeter and I want to test performance of api and recording test case with JMeter proxy.

I've first followed instruction here http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf and all worked fine.

I am calling this api using curl commands. Question is how to set up proxy for that requests are recorded in the JMeter when running curl commands

1

1 Answers

1
votes

It should be pretty easy to just rewrite the same requests in Jmeter, if you have a script ready.
Anyway, cUrl has a proxy option.

 -x, --proxy <[protocol://][user:password@]proxyhost[:port]>

      Use the specified HTTP proxy. 
      If the port number is not specified, it is assumed at port 1080.

You can set it to the Jmeter proxy.

Hope it helps :)