bojand / ghz

Simple gRPC benchmarking and load testing tool
https://ghz.sh
Apache License 2.0
3.02k stars 269 forks source link

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

Open shreyakishore opened 3 years ago

shreyakishore commented 3 years ago

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?

vrugore commented 3 years ago

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

bojand commented 3 years ago

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.

vrugore commented 3 years ago

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.

GautamSinghania commented 2 years ago

Any updates on this front?

raakasf commented 1 year ago

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 commented 1 year ago

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