Test login with multiple users #3069
Replies: 8 comments
-
Hi! In general, the answer is: Use regular Python code. You might also want to check out locust-plugins CSVReader https://github.com/SvenskaSpel/locust-plugins/blob/master/examples/csvreader_ex.py |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. I had done read from txt file. The problem is how to load test 100k users for multiple login. What is the approach? |
Beta Was this translation helpful? Give feedback.
-
I know how to read from txt file, The problem now is how to load test 100k for multiple login. What is the right approach? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Sorry, your question is too broad. What have you tried so far? |
Beta Was this translation helpful? Give feedback.
-
I tried to code the post request using dictionary structure but one thread represents one user. I want an ideal approach to load test multiple users effectively and mimic real world scenario.
|
Beta Was this translation helpful? Give feedback.
-
Please help. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi! Sorry, I don't have time :( If you want paid/commercial support for Locust, I suggest reaching out to locust.cloud |
Beta Was this translation helpful? Give feedback.
-
An example of reading usernames from a CSV file using https://github.com/SvenskaSpel/locust-plugins/blob/master/examples/csvreader_ex.py Here is an example of a different approach... generating usernames programmatically in your Python code: |
Beta Was this translation helpful? Give feedback.
-
I had a SSO login service uses by a bunch of application. This SSO login service had slow performance on search query. I wonder how to test concurrently login 1000000 users using Locust on different users.
Questions:
Below is my code right now:
Please help. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions