Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test gRPC APIs?

Tags:

testing

go

rpc

grpc

I have been assigned to test a gRPC API (written in Golang) but I don't know how to go about testing it and I couldn't find any tutorials online for this type of testing. The only method that I can think of is to write unit tests to test the methods themselves but I would like to also test it with a client. For example, I have tested REST APIs in the past using JMeter as a client to send requests and verify the response data. Is there a method for testing gRPC APIs with a client or is unit testing the only way?

like image 208
C J Avatar asked Dec 12 '17 02:12

C J


2 Answers

Well, I was in search for a client like Postman, then i found bloomrpc, which helps in calling grpc services. But i am not sure if it serves your purpose, if you are looking for a tool like jmeter.

like image 141
Pram Avatar answered Sep 18 '22 10:09

Pram


If you are searching for a tool like Postman, there is also https://kreya.app. With it, you can call your gRPC services and view the responses.

Disclaimer: I'm one of the authors of Kreya.

like image 43
Manuel Allenspach Avatar answered Sep 20 '22 10:09

Manuel Allenspach