Open
Description
Hi!
To use autocannon, I commonly follow the steps:
- invokes the endpoint with a cURL, adjusting the input parameters and checking the response
- convert every cURL parameters into autocannon ones
- invokes the endpoint with autocannon with
-a 1 -c 1
and see if the status code is 200 (hoping the response body is the same) - invokes the endpoint with autocannon with parameters for load test
Unfortunately, the parameter conversion is not easy, and step 3 requires more retries.
My desiderata would be to replace the cURL
command with autocannon
without parameter conversion.
In this way, we can remove some pains during the tests.
Other considerations:
- Another path I commonly take is to copy the cURL directly from the browser network tab.
- We can start from the common cURL parameters like header and request body.
I can take this by providing a PR if you are interested in this enhancement, but please give me some input on where to start.
What do you think?
Metadata
Metadata
Assignees
Labels
No labels