ghz
ghz copied to clipboard
Add option to pass response to end user
We have a use case to check what is in the response. However, ghz does not support this functionality atm (correct me if I am wrong). Hope we can add this. Thanks!
Hello, thanks for the PR!
I think I get the idea, but can you elaborate some more on the context and usage and how this solves some of the issues you're having.
Also I think perhaps the response and stop channels should be different options.
Finally it would be helpful to add tests for these options and usage.
Sorry for the late reply. So the context is we are doing some performance testing while also considering the accuracy of our services. So we would like to verify if the received response matches certain criteria (like how many data were responded). By adding this option, we can store the responses to some place and check the result at some point of time. I know we can use the --debug
option to store the response as well, but then we will have to take care of the other unrelated logs as well, which is not ideal.
I think this can also address the https://github.com/bojand/ghz/issues/247 .
For the other two points, I will work on them later.
Thanks!