TestGrpcClient

GRPC client used for automated testing.

Extends: GrpcClient

Description

The TestGrpcClient class allows you to create a REST client that can be used for automated testing.

Constructors

Creates a new instance of the TestGrpcClient class.

TestGrpcClient(client_name: str = None)

  • client_name: str - TODO: add description

Instance methods

_call

Calls a remote method via the HTTP/REST protocol.

call(method: str, correlation_id: str, request: dict = {}): Any

  • method: str - HTTP method: “get”, “head”, “post”, “put”, “delete”
  • correlationId: str - (optional) transaction id used to trace execution through the call chain.
  • request: Any - (optional) request object.
  • returns: Any - the received result.