USSD Tests

Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2014-11-17 21:50:36
Size: 2998
Editor: 209-6-88-107
Comment: re-named modem-monitor to monitor-ofono
Revision 5 as of 2015-09-17 14:20:08
Size: 3599
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
- send-ussd <string> - send-ussd [modem] <string>
Line 17: Line 17:
}}}
Example strings:
Line 18: Line 20:
Example strings: '''Note''' - USSD codes are not standardized and each operator has its own ones. Therefore, the following codes only work for the specified operators.
{{{
Line 38: Line 41:
- send-ussd <string> - send-ussd [modem] <string>
Line 47: Line 50:
- send-ussd “2” - send-ussd [modem] “2”
Line 54: Line 57:
}}}
Example strings:
Line 55: Line 60:
Example strings: '''Note''' - USSD codes are not standardized and each operator has its own ones. Therefore, the following codes only work for the specified operators.
{{{
Line 65: Line 71:
=== Requirements ===


'''NOTE''' - There are not many operators that implement this. One known to do is Tesco UK, which sends USSD notifications with the remaining balance after sending a SMS for pays as you go SIMs.
Line 69: Line 80:
- dial-number A
# Get the call in A
- hangup-all
- dial-number [modem] <number>
# Accept call to <number>
- hangup-all [modem]

---

1. Send a USSD command with a text reply

Purpose

This test case verifies that we can send simple USSD commands to the network. The commands that we can use depend on the operator. Many operators use USSD commands to retrieve the current line balance, for instance.

Steps

- send-ussd [modem] <string>
# This command will return a string with the text returned by the network.

Example strings:

Note - USSD codes are not standardized and each operator has its own ones. Therefore, the following codes only work for the specified operators.

<string> = “*118#” - returns the current time and date (Vodafone, Spain).
<string> = “*3282#” - triggers operator to send data usage report SMS ( AT&T, US )

2. Navigate through a USSD-based menu

Purpose

This test case verifies that we can establish a USSD dialogue with a network application. Some operator have menu driven applications that use USSD as bearer. They are invoked with an initial USSD command.

Requirements

This test case requires an operator that provides some feature that leverages USSD-based menuing.

NOTE - the major US operators don't support any features requiring USSD menuing, so this feature must be tested with a non-US SIM ( and possibly outside of the US if this test case doesn't work while roaming ).

Steps

- monitor-ofono
# The output will show the USSD requests coming from the network
# We open another shell window and send commands from there
- send-ussd [modem] <string>
# This command will return a string with the text returned by the network.
# We should see in the monitor-ofono window something like:
{SupplementaryServices} [/ril_0] RequestReceived Choose an option:
1.Top-up
2.Check balance
0.Exit

# We choose one menu option
- send-ussd [modem] “2”

# After this, we can have more menus, or the operator will do an
action like sending an SMS,  the network will set the USSD state
to idle stopping the dialogue, etc. The send-ussd script will wait
for input from the user whenever it receives a new network initiated
USSD request.

Example strings:

Note - USSD codes are not standardized and each operator has its own ones. Therefore, the following codes only work for the specified operators.

<string> = "*255#". Menu for managing gift vouchers (Vodafone, Spain).
<string> = "*123#". Menu for buying credit (pay as you go cards, Vodafone, Spain).

3. Receive a USSD notification

Purpose

This test case verifies that we can receive USSD notification from the network. Some operators use them to send, for instance, a notification with the remaining balance after sending an SMS or finishing a voice call.

Requirements

NOTE - There are not many operators that implement this. One known to do is Tesco UK, which sends USSD notifications with the remaining balance after sending a SMS for pays as you go SIMs.

Steps

- monitor-ofono
# Open another shell
- dial-number [modem] <number>
# Accept call to <number>
- hangup-all [modem]
# Check that we see a message in monitor-ofono of the form
{SupplementaryServices} [/ril_0] NotificationReceived <string>

Process/Merges/TestPlans/ofono/USSD Tests (last edited 2015-09-17 14:20:08 by alfonsosanchezbeato)