Skip to content

Add option to pass response to end user#322

Open
cuichenli wants to merge 3 commits into
bojand:masterfrom
cuichenli:store-responses
Open

Add option to pass response to end user#322
cuichenli wants to merge 3 commits into
bojand:masterfrom
cuichenli:store-responses

Conversation

@cuichenli

Copy link
Copy Markdown

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!

@bojand

bojand commented Nov 14, 2021

Copy link
Copy Markdown
Owner

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.

@cuichenli

Copy link
Copy Markdown
Author

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 #247 .

For the other two points, I will work on them later.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants