artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
8.02k stars 510 forks source link

Is it possible to determine which virtual user is running? #297

Closed anders-brolien closed 7 years ago

anders-brolien commented 7 years ago

I'm trying to simulate a mass-user scenario. I would like each virtual user to give unique calls to the system (HTTP REST). What are the options for achieving this?

hassy commented 7 years ago

You can write a custom function to generate a UUID (using the uuid module for example) and send that along with the request, using the mechanism described here: https://artillery.io/blog/using-fakerjs-with-artillery

anders-brolien commented 7 years ago

Thanks! Will try it out. Looks promising.