Skip to main content
Buse Kaya
Software Test Enginner
Asked a question 7 months ago

How to Use Command Line Parameters in JMeter? I'm using Jmeter for testing APIs and I want to parametrize the project's path from the terminal and then I want to use this parameter in JMeter. The parameter that I've sent via Command Line : ./jmeter -n -t your_script.jmx -Jurl=abcdef.com The parameter that I've used in User Defined Variables : ${__P(url)} But when I run my automation in JMeter, my test scripts are not going to URL that's been defined. When I check the request body, I see POST https://1 as URL. Please see the attached photos. https://mylifebox.com/shr/3df5bb35-cf43-4488-b20b-5c2d59656212&language=en

Please sign up to enjoy the full benefits of learning and sharing.

Earn QA Coins by participating in the discussion and asking questions.