GRPC client for automated testing.
Extends: CommandableGrpcClient
Description
The TestCommandableGrpcClient class allows you to create a commandable GRPC client for automated testing.
Constructors
Creates a new instance of the TestCommandableGrpcClient class.
public
TestCommandableGrpcClient(String name)
- name: String - a controller name.
Instance methods
callCommand
Calls a remote method via GRPC commadable protocol. The call is made via Invoke method and all parameters are sent in args object. The complete route to remote method is defined as serviceName + “.” + name.
public
T callCommand(Class returnType, String name, IContext context, Object params)
- name: String - a name of the command to call.
- context: IContext - (optional) a context to trace execution through a call chain.
- params: Object - command parameters.
- returns:
T - the received result.