Skip to content
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

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

Open
shreyakishore opened this issue Dec 3, 2020 · 6 comments
Labels
question Further information is requested

Comments

@shreyakishore
Copy link

shreyakishore commented Dec 3, 2020

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
Copy link

vrugore commented Jul 30, 2021

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

@bojand
Copy link
Owner

bojand commented Aug 4, 2021

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
Copy link

vrugore commented Aug 4, 2021

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.

@bojand bojand added the question Further information is requested label Aug 13, 2021
@GautamSinghania
Copy link

Any updates on this front?

@raakasf
Copy link
Contributor

raakasf commented Oct 18, 2023

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
Copy link
Contributor

raakasf commented Oct 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants