0

I have one Rest API with the format as "https://server name/insecure/client_name/product_id/normalized" How can I parameterise only client_name and product_id using jmeter and What Sampler should I use.

1 Answer 1

0

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!

Sign up to request clarification or add additional context in comments.

1 Comment

I tried using $(client_name) and $(product_id) but it gets added at last like below "server name/insecure/similar/${Client_Name}/${product_id}/normalized?Client_Name=allen_solly&product_id=240337". I want to run the load test for 1000 different product_ids by storing them in an excel. But when I try to parameterise, the parameterised fields are getting added at last.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.