Skip to main content
Buse Kaya
Software Test Enginner
Asked a question 8 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. I set testurl = test.com in basic terminal and i want to get this url by using testurl. The parameter that I've sent via Command Line : ./jmeter -n -t your_script.jmx -l -Jurl=$testurl in homebrew terminal. The parameter that I've used in httpsRequest --> Server name or IP; ${__P(url)}. But when I run my automation in the homebrew terminal, my test scripts are not going to URL that's been defined. Please help me!! Thanks.

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

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