USSD Command

Send a USSD code on a real SIM and verify the network's response. Chain several steps to navigate a full menu, entry code then each choice.

Send a USSD code (#100#, *123*1#) on a real SIM and wait for the network's response. Chain several USSD Command actions to navigate a full menu: send the entry code, verify the menu, send a selection, verify the next screen.

Parameters

ParameterRequiredDescription
Access technologyNoNetwork technology to use (2G, 3G, 4G...). Default: automatic.
CommandYesThe USSD code to send, for example #100#. Supports variables.
Expected MessageNoThe response you expect. The result records how closely the actual response matches.
Enable strict text comparisonNoExact comparison instead of fuzzy matching. Default: off.
Execute multiple timesNoRepeat the command 1 to 30 times.

Like every SIM action, it also supports assertions, stored variables, and artifacts.

Results and metrics

In the action report (result):

FieldDescription
responseThe text returned by the USSD gateway.
shortcodeThe code that was sent.
sessionSession state: alive, close, or network errors like Network Timeout (+CUSD 5).
ratioMatch ratio (0 to 100) between the response and the expected message.
durationTotal execution time in seconds.
access_technology_reportThe technology actually used, with its setup time.
dynamic_variablesValues extracted from the response into variables.

In Analytics, each run feeds the USSD measurement with duration_seconds, tagged by status, antenna (MCC, MNC, LAC, cell ID), and access technology.

Assertions can target message, session_status, duration, access_technology, or extract a variable from the response.

What's next?

Wait USSD Push

Verify network-initiated USSD messages

SIM steps overview

Assertions, stored variables, and shared options

Last updated on