简体   繁体   中英

Rest API parameterization using Jmeter

我有一个Rest API,其格式为“ https://服务器名称/不安全/ client_name / product_id / normalized”如何使用jmeter和应该使用什么Sampler参数化client_name和product_id。

you can use an external file to parameterize the url

make the parameter a variable: /insecure/${client_name}/product_id/normalized

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

i see older post which might be helpful as well or following blog post JMeter Parameterization

Cheers!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM