codesenberg / bombardier

Fast cross-platform HTTP benchmarking tool written in Go
MIT License
6k stars 313 forks source link

Can the stress test using different parameters within on testflow #84

Open mulei2023 opened 2 years ago

mulei2023 commented 2 years ago

What version of bombardier are you using?

bombardier version v1.2.5 linux/amd64

What operating system and processor architecture are you using (if relevant)?

linux/amd64 ubuntu

What you expected to happen?

eg: for GET method, target api is https://ip:port/some-route/some-method?id= can i put a collection of id in some place(like somefile), and the request use random id in my id-collection

for POST method, can i put a collection of body in somefile, and the request use randomly or for loop

heonieb commented 2 years ago

I also need this. I hope somebody could answer here.

codesenberg commented 1 year ago

I'd be interested in seeing how other tools provide such functionality. Will look into this, but no promises.

codesenberg commented 1 year ago

@ericsouza provided an example of how this feature is implemented in drill tool - benchmarks (described) as (YAML) config. The approach vegeta tool uses is also quite neat - pass the targets to the tool via standard input. Although, it might require a bit more effort to generate custom targets (either by hand or by writing some tool).