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
7.92k stars 505 forks source link

How can I make the same effect script that works "--num" option in "quick" command? #858

Open jaeseok-park opened 4 years ago

jaeseok-park commented 4 years ago

Hi.

I would like to a make script file, but I cannot find how the script file works such as quick --num option. According to help in quick command, --num option means number of requests each new arrival will send. config.phases[].arrivalRate seems to be the same with --rate. Then, what is the same with --num?

hassy commented 4 years ago

--num works by creating a loop - https://artillery.io/docs/http-reference/#looping-through-a-number-of-requests