opencord / grpc-robot

A grpc library for robot test cases
Other
0 stars 2 forks source link

How to use this library? #1

Open dzvancuks opened 4 months ago

dzvancuks commented 4 months ago

How do you even use this library? Could you provide some examples in Readme?

I.e. I want to listen for gRPC commands as a server. How do I open connection? How to associate with protobuf? Please provide an example like

*** Settings ***
Library    GrpcRobot

*** Keywords ***
Start GRPC Server
    Connection Open    some=parameters    proto=path/to/proto/files

Stop GRPC Server
    Connection Close

Handle Message
    Get HelloWorld Message    response='{message="Hello response"}'

or something like that

vr-n-able commented 2 months ago

Try looking at https://github.com/opencord/grpc-robot/blob/8147751ffad913bdd96ca7e32362b142202838bf/tests/test.robot

dzvancuks commented 2 months ago

Try looking at https://github.com/opencord/grpc-robot/blob/8147751ffad913bdd96ca7e32362b142202838bf/tests/test.robot

And what exactly am I looking at? I'm not gRPC expert. But I assume there should be some kind of .proto file consumption, or generated code import.

Can we have an example with simple Hello World proto as gRPC server and client: https://grpc.io/docs/languages/python/quickstart/