jmeterproxy

JMeter dynamic proxy port


I need to run test of proxy service. The scenario is:

How can I use port and password (username is constant) to define proxy parameters to create next request? Password and port are dynamically created by service.

I know, I can use Proxy-Authorization: header (don't know yet how to change user:pass to header value), but really don't know where and how set dynamically proxy port.


Solution

  • It's possible to specify proxy details under "Advanced" tab of the HTTP Request sampler:

    enter image description here

    If you're asking about how to extract port and password it can be easily done with JSON Extractor:

    enter image description here