-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
status code option #519
Comments
How this would be different from |
In fact, there is no difference, except that a basic report on the status code I need will be enough for me, and not a table with all the statuses. |
Thanks for the clarification! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
Of course, I'll try. And tests, 100% |
I'm sorry, but I couldn't do anything. Most likely, I just lack experience and that's why I couldn't. The biggest problem is the non2xx calculation that is very difficult for me to change with dynamic codeIndex (it is in the printResult.js file) non2xx: statusCodes[0] + statusCodes[2] + statusCodes[3] + statusCodes[4], I really tried but failed. |
Hey @vanodevium, I want to make sure I understood your request. You want each specific statusCode to be shown at the second-to-last line of the output, right? Do you want to know the exact statusCode that has been captured, or the statusCodes per group? Example all status codes:Example grouped status codes:I think the best one is the grouped status codes. Anyone that wants to know more about that can use the |
A little bit wrong. Lets me clarify: I don't need grouping by status so much.
Thanx! |
Hey @vanodevium, Can you provide a test scenario with which I can replicate it myself? Code and/or usage would be super helpful. I'm asking because if you use autocannon programmatically in a test-suite, there is already a way to achieve what you want. |
unfortunately, the is written in very old version of php (also code are only on remote server) also 1000% there is no tests programmatically, just cli mode Scenario: I'm requesting a remote server that should return a 302 code to me. |
Hey @vanodevium Does that look okay to you?
Note: |
@xt-riot Looks awesome! This is enough for all needs. |
Thanks for a great tool!
It would be very useful to be able to specify which status code I want to check.
For example, I check an endpoint that always returns 302, I specify it in the option and the tool isn't "afraid" that it is not 20x.
Something like:
The text was updated successfully, but these errors were encountered: