locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
24.84k stars 2.97k forks source link

locust no-web mode #933

Closed ruchikaChawla closed 5 years ago

ruchikaChawla commented 5 years ago

I were using jmeter till now but i saw it is taking lots of resources and memory to run, so now i started reading locust. i am new to locust. i want to use locust in no-web mode e.g $ locust -f locust_files/my_locust_file.py --no-web -c 1000 -r 100 but same as question asked by someone to pass ${url} and ${host} from command line , i dont want to hard code the URL or you can say header parameter like unique request id and all, i want to pass it from command line, like we can pass in jmeter and we can get it in configuration file using __P() function. how we can get the same thing in locust, i know the way of using environment variables but i do not want to use this.

Originally posted by @ruchikaChawla in https://github.com/locustio/locust/issues/244#issuecomment-447792922

ruchikaChawla commented 5 years ago

Why closed?

cgoldberg commented 5 years ago

it's a question, not an issue (this is is the tracker for bugs/issues).

aldenpeterson-wf commented 5 years ago

From the template you edited out:

For general questions about how to use Locust, use either the Slack link provided in the Readme or ask a question on Stack Overflow tagged Locust.

ruchikaChawla commented 5 years ago

Hello,

Sorry to say that but nobody reply correctly there, and I don’t know how to get the answer.

Thanks

On Mon, 17 Dec 2018 at 21:13, aldenpeterson-wf notifications@github.com wrote:

From the template you edited out:

For general questions about how to use Locust, use either the Slack link provided in the Readme or ask a question on Stack Overflow https://stackoverflow.com/questions/ask tagged Locust.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/locustio/locust/issues/933#issuecomment-447890458, or mute the thread https://github.com/notifications/unsubscribe-auth/ApQ-KUpyV8wUJtaxN34w-R3igLREVecXks5u57u-gaJpZM4ZWDud .

-- Ruchika Student, MCA Final Year National Institute of Technology, Kurukshetra Email- ruchika94chawla@gmail.com