-
Notifications
You must be signed in to change notification settings - Fork 3k
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
How to run test programatically #222
Comments
I've built a Jenkins pipeline to do a multi-step process of starting locust instances in AWS, run tests, shut down. Seems like the best approach, as you can add this to your Continuous Integration :) |
Here's a short script. Hope this helps you. I agree it would have been nice to have this in the documentation, compared to having to read the source.
|
I wanted to do the same thing but also run load tests from AWS Lambda so I made a small wrapper for locust to make running it programatically easier: |
@FutureSharks , nice work! you should consider integrating something similar into the locust codebase... I think a general wrapper would be useful for many (with optional AWS Lambda support added to docs). |
Thanks @cgoldberg. OK I'll have a look and see how it could be put into the locust code base. |
Would love to see this feature in Locust natively (although @FutureSharks work seems great in the meantime). |
@hukka 's response here uses However, the locust file I'm trying to run is not a module that's part of the current path, it's just a file sitting somewhere.. Is it possible to add a similar runner (say |
PR #805 is a proposed fix for this but it is unlikely to be merged atm. |
I would like to run these load testing through clicking a button, or something else. How to do this ? and also how to grab those result.
The text was updated successfully, but these errors were encountered: