How to send dynamic URL parameter with JMeter

早过忘川 提交于 2020-01-03 07:18:18

问题


I want to send URL (PATH) as /controller_1/1/ /controller_2/2/start

But the parameter #2 of controller_2 is dynamic.

How to send that parameter?


回答1:


make the parameter a variable: /controller_2/${controller2_parameter}/start

Then you define the value of ${controller2_parameter} wherever and however appropriate: a CSV dataset config, using a regular expression extractor to scrape from a webpage, etc.



来源:https://stackoverflow.com/questions/5152838/how-to-send-dynamic-url-parameter-with-jmeter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!