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 there any approach to share a file among hatched users? #1022

Closed
stevenli1217 opened this issue May 31, 2019 · 2 comments
Closed

Is there any approach to share a file among hatched users? #1022

stevenli1217 opened this issue May 31, 2019 · 2 comments

Comments

@stevenli1217
Copy link

I have a series of data set which I use to do performance test. I hope all the hatched user can share this file and read the file one by one. For example, I have users from 1 to n. If thread #1 read the first line of the file, next thread should read the second line of the file.

For Jmeter, we can set "Sharing mode" to "All threads" in "CSV Data Set Config".

@aldenpeterson-wf
Copy link
Contributor

Just write a global function in the locust file itself and have your locusts access it.

Python makes this pretty easy comparatively.

@cgoldberg
Copy link
Member

Please ask general questions in the Slack channel.

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