Skip to content
Discussion options

You must be logged in to vote

Here's an example of how to maintain a second client in the same User instance: https://github.com/locustio/locust/blob/f3f2985f4b8783448eba3e8e85078b873aab30ea/examples/multiple_hosts.py

Probably you wouldnt need it, but if you must have actual concurrency within the same User, here's an example: https://docs.locust.io/en/latest/increase-performance.html#concurrency (these are using the same session, but you might be able to combine the two approaches)

I think actually creating a full User inside another one is not a good idea :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aukevanleeuwen
Comment options

@cyberw
Comment options

Answer selected by aukevanleeuwen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants