-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support sending test report to a gRPC server #92
Comments
Hello, I would like to have a try🙋🏻♀️ on this issue! |
I'm looking forward it. |
我的思路: |
您好,思路是没问题的。测试的时候,不一定要找 etcd,这个可能会稍微复杂点。理论上,随便实现一个(或找个现成的)gRPC 服务就可以完成测试。 |
您好,请问编写的protobuf文件和生成的代码部分应该存放在哪个文件夹下呢? |
我的理解是 protobuf 是来自第三方系统(例如:etcd),可以调用 invokeRequest(或者需要重构)来实现调用,而不需要生成代码,反射的方式会比较好一些。因为,我们无法预知会调用哪些 gRPC 服务,可能会有各种不同的,无法把哪些 proto 以及代码都保存下来。 |
好的,我大概了解了,这样的话核心任务应该是根据grpc.go中的一些方法进行重构,完成grpc通信里建立连接,获取文件描述符以及protobuf和json转换相关的操作。 |
嗯嗯,其实就是一个通用型的 |
Sometimes, we might want to send the test report to a gRPC server.
How to
It's easy to do this. Please implement the following interface first:
api-testing/pkg/runner/simple.go
Line 161 in 2520e80
then, add the corresponding CLI flag.
api-testing/cmd/run.go
Line 74 in 2520e80
Similar issues
How to test
We could try to send the test report to etcd.
The text was updated successfully, but these errors were encountered: