Wait SMS

Wait for an SMS to arrive on a real SIM and verify it: sender, message text, and number of parts for long messages. For OTP and alerts.

Wait for an SMS to arrive on the SIM and verify it: OTP delivery, notifications, alerts. The action checks the sender, the message text, and the number of parts for long messages.

Parameters

ParameterRequiredDescription
Expected MessageNoThe SMS content you expect. The result records the match ratio.
Check SMS reception from a previous stepNoStart watching from a previous action's position, for SMS triggered earlier in the flow (a Send SMS or USSD action, for example).
SMS reception is optionalNoThe test passes even if no SMS arrives; variables get their default values. Default: off.

Results and metrics

In the action report (result), for each SMS received:

FieldDescription
senderPhone number that sent the SMS.
messageThe SMS body.
countNumber of parts, for multi-part (concatenated) messages.
ratioMatch ratio (0 to 100) against the expected message.
relative_durationHow long after the watch started the SMS arrived, in seconds.
dynamic_variablesValues extracted from the SMS (an OTP code, for example) into variables.

In Analytics, each run feeds the SMS reception measurement with reception_duration_seconds and duration_seconds, tagged by status, antenna, and access technology.

Assertions can target sms_sender, message, concatenated_sms (part count), or extract a variable.

What's next?

Send SMS

Send the SMS from another SIM and verify both ends

SIM steps overview

Assertions, stored variables, and shared options

Last updated on