ghz icon indicating copy to clipboard operation
ghz copied to clipboard

Is there a way to fetch the grpc responses of requested grpcs through ghz?

Open shreyakishore opened this issue 4 years ago • 6 comments

I wanted to load test for dependent grpc services, I need to get the response of previously called rpcs, is there a way through ghz?

shreyakishore avatar Dec 03 '20 07:12 shreyakishore

I am also looking for the same. Is there any way to get response from grpc service please?

vrugore avatar Jul 30 '21 08:07 vrugore

Hello, I am not sure what the context is... You should be able to see responses in the log file using --debug option.

Depending on the logic of the test it may be possible to code up a go app that fetches whatever data, and then runs the test programmatically using ghz package.

bojand avatar Aug 04 '21 01:08 bojand

Hi - Thank you for your response. I was trying to use it for our Automated Integration Testing as well as performance test. In integration testing - I would like to know what response was returned. Would you suggest some way to do this or you think we should use a different tool for the same? Sorry I am new to golang and its tools and GRPC Automation.

vrugore avatar Aug 04 '21 07:08 vrugore

Any updates on this front?

GautamSinghania avatar Sep 05 '22 09:09 GautamSinghania

This can be very useful. For example, if there's some sort of a handshake or authentication response that needs to be used in the later requests, there should be a way to fetch the response and save it. I tried using WithStreamRecvMsgIntercept without any success. Any pointers will be appreciated, this is a great tool, thanks!

raakasf avatar Oct 18 '23 14:10 raakasf

Oh wait, that did work :) thanks! For anyone looking for this, the documentation has an example.

raakasf avatar Oct 18 '23 14:10 raakasf