JMeter dynamic proxy port

  Kiến thức lập trình

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

  • create proxy, sending request to service like POST http://localhost:8801/proxies
  • result is for example: {"port": 20251, "uuid": "6d384bfb-d94f-498c-a56a-7aef9dfeb545", "password": "rdtpUTRlGXSXdj2yy5qFStmrSLI"}
  • after using JSON Extractor I want to use port and password to create next request to test server.

How can I use port and password (username is constant) to define proxy parameters to create next request?

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.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT