blpapi.test.appendMessage
- blpapi.test.appendMessage(event, elementDef, properties=None)
Create a new message and append it to the specified
event. Return aMessageFormatterto format the last appended message.- Parameters:
event (
Event) – Theeventto which the new message will be appended. Theeventmust be a testblpapi.Eventcreated bycreateEvent().elementDef (
SchemaElementDefinition) – Used to verify and encode the contents of the message.properties (
Optional[MessageProperties]) – Used to set the metadata properties for the message.
- Return type:
- Returns:
The
MessageFormatterused to format the last appended message.- Raises:
Exception – If the method fails to append the message.