RadioSettings

Differences between revisions 3 and 10 (spanning 7 versions)
Revision 3 as of 2014-05-06 16:57:41
Size: 4463
Editor: 209-6-88-107
Comment:
Revision 10 as of 2014-11-21 20:09:23
Size: 4071
Editor: 209-6-88-107
Comment: revise for dual-sim support
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
'''Note''' - Supported radio settings are modem dependant. Response to setting attempt of unsupported technology preference varies between different modems. Modem can either respond with error code or subtly change the setting to value it considers to be close of the requested setting. Also storing responsability of preference may vary between modems. This means that value might be different than what was set with certain modems after bootup. These tests assume that test setup supports edge, hspa, umts and gsm.
Line 13: Line 15:
Ensure the presence of the Radio``Setting interface and that Technology``Preference is set to a sensical value. This test case ensures the presence of the org.ofono.RadioSettings interface.
Line 18: Line 20:
# list-modems
}}}

=== Verification: ===

 * verify the presence of Radio``Settings in the top-level modem properties:
{{{
    Features includes 'rat'
    Interfaces includes ''org.ofono.VoiceCallManager''
}}}
 * verify that Radio``Settings exposes the property ''Technology``Preference'' and that it's set to one of tge following values: ''umts'', ''lte'', or ''gsm'' ( '''TODO''': confirm whether ''any'' is a valid option ).

=== Automation Status ===

Automation of the Radio``Settings tests is currently blocked on improvements to the emulator's telephony support.

== 2. Set Tech Preference: GSM ==

=== Purpose ===
Ensure that tech preference can be set to GSM and that this causes the device to re-register voice and data using GSM.

=== Steps: ===

{{{
# set-tech-preference gsm
}}}

=== Verification: ===

Changing the technology preference may result in the device re-registering to the network so it may be necessary to re-run ''list-modems'' a few times until you see it properly registered ( ie. the Network``Registration ''Status'' property is set to ''registered'' ).

{{{
# list-modems
}}}

 * verify that the Radio``Settings preference took effect:
{{{
    TechnologyPreference = gsm
}}}

 * verify the new Network``Registration technology:
{{{
    Technology = gsm
}}}

 * if the Connection``Manager is ''Attached'', verify that the ''Bearer'' property is correct:
{{{
    Bearer = edge | gprs
1. Run script list-modems.
2. Check that listed interfaces include org.ofono.RadioSettings with properties
   TechnologyPreference, ModemTechnologies and FastDormancy. Exact values of properties depend about the
   previous usage of the tested card, used operator, contract and modem.
Line 72: Line 30:

== 3. Set Tech Preference: UMTS ==
== 2. Change technology preference ==
Line 76: Line 33:
Ensure that tech preference can be set to UMTS and that this causes the device to re-register voice and data using UMTS or GSM ( depending upon network availability ). This test case verifies that we can change the radio technology preference.
Line 81: Line 38:
# set-tech-preference umts 1. Run script set-tech-preference [modem] gsm
2. Run script get-tech-preference [modem]
3. Check that the current technology is “gsm”
4. Run test script list-modems
5. The output of the Technology/Bearer properties must be one of the following values:
       [ org.ofono.NetworkRegistration ]
         Technology = [gsm|edge]
       [ org.ofono.ConnectionManager ]
         Bearer = [gsm|edge]
    Also here note that technology change is not immediate. It takes some time to drop out
    of old network and connect to another.
6. Run script set-tech-preference [modem] umts
7. Run script get-tech-preference [modem]
8. Check that the current technology is “umts”.
9. Run script list-modems
10. The output of the Technology/Bearer properties must eventually have one of the following values:
       [ org.ofono.NetworkRegistration ]
         Technology = [umts|hspa]
       [ org.ofono.ConnectionManager ]
         Bearer = [umts|hsdpa|hsupa|hspa]
   Note that technology change is not immediate. It takes some time to drop out of old
   network and connect to another.
11. Run test script set-tech-preference [modem] any
12. Run test script get-tech-preference [modem]
13. Check that the current technology is “any”. Note that with "any" preference values given by
    NetworkRegistration and ConnectionManager interfaces depend about modem and available network support.
Line 84: Line 66:
=== Verification: ===

Changing the technology preference may result in the device re-registering to the network so it may be necessary to re-run ''list-modems'' a few times until you see it properly registered ( ie. the Network``Registration ''Status'' property is set to ''registered'' ).

{{{
# list-modems
}}}

 * verify that the Radio``Settings preference took effect:
{{{
    TechnologyPreference = umts
}}}

 * verify the new Network``Registration technology:
{{{
    Technology = umts | gsm
}}}

 * if the Connection``Manager is ''Attached'', verify that the ''Bearer'' property is correct:
{{{
    Bearer = umts | hsupa | hsdap | hspa | edge | gsm
}}}
'''Note''' - if the modem supports data-only LTE running the list-modems makes it to drop to umts or gsm. In
    that case only way to verify the result with existing scripts is to run monitor-ofono on the background.
Line 111: Line 73:

== 4. Set Tech Preference: LTE ==
== 3. Check storage of technology preference ==
Line 115: Line 76:
Ensure that tech preference can be set to GSM and that this causes the device to re-register voice and data using LTE, UMTS, or GSM. This test case verifies that the modem stores the radio technology preference between restarts.
Line 117: Line 78:
'''Note''' - this test should only be run on devices supporting LTE.

=== Steps: ===
Steps:
Line 122: Line 80:
# set-tech-preference lte - set-tech-preference gsm
- get-tech-preference
# Check that the current technology is “gsm”
- Power off and then on the phone
- get-tech-preference
# Check that the current technology is “gsm”
- set-tech-preference any
- get-tech-preference
# Check that the current technology is “any”
- Power off and then on the phone
- get-tech-preference
# Check that the current technology is “any”
Line 124: Line 93:

=== Verification: ===

Changing the technology preference may result in the device re-registering to the network so it may be necessary to re-run ''list-modems'' a few times until you see it properly registered ( ie. the Network``Registration ''Status'' property is set to ''registered'' ).

{{{
# list-modems
}}}

 * verify that the Radio``Settings preference took effect:
{{{
    TechnologyPreference = lte
}}}

 * verify the new Network``Registration technology:
{{{
    Technology = lte | umts | gsm
}}}

 * if the Connection``Manager is ''Attached'', verify that the ''Bearer'' property is correct:
{{{
    Bearer = lte | umts | hsupa | hsdap | hspa | edge | gsm
}}}

=== Automation Status ===

Automation of the Radio``Settings tests is currently blocked on improvements to the emulator's telephony support.


Radio Settings Tests

Note - Supported radio settings are modem dependant. Response to setting attempt of unsupported technology preference varies between different modems. Modem can either respond with error code or subtly change the setting to value it considers to be close of the requested setting. Also storing responsability of preference may vary between modems. This means that value might be different than what was set with certain modems after bootup. These tests assume that test setup supports edge, hspa, umts and gsm.

1. Verify Interface Availablility / Tech Preference

Purpose

This test case ensures the presence of the org.ofono.RadioSettings interface.

Steps:

1. Run script list-modems. 
2. Check that listed interfaces include org.ofono.RadioSettings with properties 
   TechnologyPreference, ModemTechnologies and FastDormancy. Exact values of properties depend about the 
   previous usage of the tested card, used operator, contract and modem.  

Automation Status

Automation of the RadioSettings tests is currently blocked on improvements to the emulator's telephony support.

2. Change technology preference

Purpose

This test case verifies that we can change the radio technology preference.

Steps:

1. Run script set-tech-preference [modem] gsm
2. Run script get-tech-preference [modem]
3. Check that the current technology is “gsm”
4. Run test script list-modems
5. The output of the Technology/Bearer properties must be one of the following values:
       [ org.ofono.NetworkRegistration ]
         Technology = [gsm|edge]
       [ org.ofono.ConnectionManager ]
         Bearer = [gsm|edge]
    Also here note that technology change is not immediate. It takes some time to drop out 
    of old network and connect to another. 
6. Run script set-tech-preference [modem] umts
7. Run script get-tech-preference [modem]
8. Check that the current technology is “umts”. 
9. Run script list-modems
10. The output of the Technology/Bearer properties must eventually have one of the following values:
       [ org.ofono.NetworkRegistration ]
         Technology = [umts|hspa]
       [ org.ofono.ConnectionManager ]
         Bearer = [umts|hsdpa|hsupa|hspa]
   Note that technology change is not immediate. It takes some time to drop out of old
   network and connect to another. 
11. Run test script set-tech-preference [modem] any
12. Run test script get-tech-preference [modem]
13. Check that the current technology is “any”. Note that with "any" preference values given by  
    NetworkRegistration and ConnectionManager interfaces depend about modem and available network support. 

Note - if the modem supports data-only LTE running the list-modems makes it to drop to umts or gsm. In

  • that case only way to verify the result with existing scripts is to run monitor-ofono on the background.

Automation Status

Automation of the RadioSettings tests is currently blocked on improvements to the emulator's telephony support.

3. Check storage of technology preference

Purpose

This test case verifies that the modem stores the radio technology preference between restarts.

Steps:

- set-tech-preference gsm
- get-tech-preference
# Check that the current technology is “gsm”
- Power off and then on the phone
- get-tech-preference
# Check that the current technology is “gsm”
- set-tech-preference any
- get-tech-preference
# Check that the current technology is “any”
- Power off and then on the phone
- get-tech-preference
# Check that the current technology is “any”

Process/Merges/TestPlans/ofono/RadioSettings (last edited 2016-07-07 06:07:29 by alfonsosanchezbeato)