Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to start all tests in locust immediately? #1070

Closed
shlliu opened this issue Aug 22, 2019 · 3 comments
Closed

Is it possible to start all tests in locust immediately? #1070

shlliu opened this issue Aug 22, 2019 · 3 comments

Comments

@shlliu
Copy link

shlliu commented Aug 22, 2019

Description of issue

For example, I want to simulate 100 clients posting requests to an interface at same time, but I don't want to specify hatch rate, I just want the 100 requests sent out immediately, is it doable in locust?

Expected behavior

TBD

Actual behavior

TBD

Environment settings

  • OS:
  • Python version:
  • Locust version:

Steps to reproduce (for bug reports)

TBD - please provide example code

@cgoldberg
Copy link
Member

please use the Slack channel for general questions.

@max-rocket-internet
Copy link
Contributor

@shlliu you can just set the hatch rate and the number of clients to the same value. That way all clients will be started immediately.

For example:

$ locust --no-web --run-time=1200s --clients=200 --hatch-rate=200 --host='https://xxxxxx.com' --locustfile=main.py

@shlliu
Copy link
Author

shlliu commented Aug 26, 2019

@max-rocket-internet works for me, thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants