Check Cyclic Message Repetition

DEPRECATED It will be removed in a future version. This keyword will be supported until version TechnicaKeywordsV0.6.0.

Checks, for a specified repetition number, whether a message within a message path is cyclic,

with a period equal to a specific cycle and with a tolerance equal to a cycle deviation value in milliseconds.

Arguments Description

message_path (str): The message path should be in the format: BusName::MsgId::SignalName.

cycle (int): The cycle of the message in milliseconds.

cycle_deviation (int): The tolerance in milliseconds.

repetition_number (int): The number of message occurrences to check.

operation (LogicalOperation, optional): Argument to be removed.

Returns

bool: True if the cycle was respected; otherwise, False .

Example

# In this example, the keyword will verify the cyclic message repetition of the last 3 received messages based on the following criteria:
# The time interval between the 1st and 2nd message occurrences is 200 milliseconds.
# The time interval between the 2nd and 3rd message occurrences is also 200 milliseconds.
# N.B. : Please note that the time interval it took for the first message to arrive is not considered in this keyword’s evaluation.
# Only the time intervals between subsequent messages are taken into account.
Check Cyclic Message repetition ${BusName}::${MsgId}::${SignalName} ${200} ${20} ${3}

Note

  • A listener shhould be started on the target message beforehand.

  • The behavior of this keyword is influenced by the presence of any buffer clearing between message receptions. If the buffer is cleared during the reception process, it may impact the expected cyclic repetition behavior, potentially leading to error messages or unexpected results. Therefore, it’s crucial to consider the effect of buffer clearing while interpreting the keyword’s output.