一共两个方式
- 纯python,把python代码对grpc的处理用字符串进行拼接,然后转为可执行代码
- python+go,使用python做为testcase层,go项目grpcox作为grpc请求的解释层
- 到server目录下启动待测rpc服务
python3 greeter_server.py
- 本地先启动一个grpcox服务,
go run grpcox.go web`
- 到testcase目录下运行测试用例,
pytest test_base_demo.py
- 到testcase目录下运行测试用例,
pytest test_grpcox_demo.py