telephonyserverplugins/common_tsy/test/component/scripts/te_ctsycomponent_networkcontrol_individual.script
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 //
     1 //
     2 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    11 //
    11 //
    12 // Contributors:
    12 // Contributors:
    13 //
    13 //
    14 // Description:
    14 // Description:
    15 //
    15 //
    16 //
       
    17 
       
    18 RUN_SCRIPT z:\TestData\Scripts\mockltsy_copy_ini_file.script
       
    19 
    16 
    20 LOAD_SUITE te_ctsy_component
    17 LOAD_SUITE te_ctsy_component
    21 
    18 
    22 START_TESTCASE BA-CTSY-NTWC-RMPDNS-0001
    19 START_TESTCASE BA-CTSY-NTWC-RMPDNS-0001
    23 //!@SYMTestCaseID BA-CTSY-NTWC-RMPDNS-0001
    20 //!@SYMTestCaseID BA-CTSY-NTWC-RMPDNS-0001
   713 //!@SYMTestType CT
   710 //!@SYMTestType CT
   714 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestGetLastUsedAccessTechnology0001L
   711 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestGetLastUsedAccessTechnology0001L
   715 END_TESTCASE BA-CTSY-NTWC-MGLUAT-0001
   712 END_TESTCASE BA-CTSY-NTWC-MGLUAT-0001
   716 
   713 
   717 START_TESTCASE BA-CTSY-NTWC-MSPNL-0001
   714 START_TESTCASE BA-CTSY-NTWC-MSPNL-0001
   718 //!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0001
   715 //!@SYMTestCaseID          BA-CTSY-NTWC-MSPNL-0001
   719 //!@SYMPREQ 1551
   716 //!@SYMPREQ                417-71654
   720 //!@SYMComponent telephony_ctsy
   717 //!@SYMComponent           telephony_ctsy
   721 //!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::StorePreferredNetworksListL
   718 //!@SYMTestCaseDesc        Test support in CTSY for RMobilePhone::StorePreferredNetworksListL
   722 //!@SYMTestPriority High
   719 //!@SYMTestPriority        High
   723 //!@SYMTestActions Invokes RMobilePhone::StorePreferredNetworksListL
   720 //!@SYMTestActions         1. Invoke RMobilePhone::StorePreferredNetworksListL with a list of Preferred Networks.
   724 //!@SYMTestExpectedResults Pass
   721 //!@SYMTestExpectedResults LTSY receives the same list of Preferred Networks. 
   725 //!@SYMTestType CT
   722 //!@SYMTestType            CT
   726 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001L
   723 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001L
   727 END_TESTCASE BA-CTSY-NTWC-MSPNL-0001
   724 END_TESTCASE BA-CTSY-NTWC-MSPNL-0001
   728 
   725 
       
   726 START_TESTCASE BA-CTSY-NTWC-MSPNL-0001a
       
   727 //!@SYMTestCaseID          BA-CTSY-NTWC-MSPNL-0001a
       
   728 //!@SYMPREQ                417-71654
       
   729 //!@SYMComponent           telephony_ctsy
       
   730 //!@SYMTestCaseDesc        Test support in CTSY for RMobilePhone::StorePreferredNetworksListL with empty list
       
   731 //!@SYMTestPriority        High
       
   732 //!@SYMTestActions         1. Invoke RMobilePhone::StorePreferredNetworksListL with an empty list of Preferred Networks.
       
   733 //!@SYMTestExpectedResults LTSY receives an empty list of Preferred Networks.
       
   734 //!@SYMTestType            CT
       
   735 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001aL
       
   736 END_TESTCASE BA-CTSY-NTWC-MSPNL-0001a
       
   737 
       
   738 START_TESTCASE BA-CTSY-NTWC-MSPNL-0001b
       
   739 //!@SYMTestCaseID          BA-CTSY-NTWC-MSPNL-0001b
       
   740 //!@SYMPREQ                417-71654
       
   741 //!@SYMComponent           telephony_ctsy
       
   742 //!@SYMTestCaseDesc        Test support in CTSY for RMobilePhone::StorePreferredNetworksListL
       
   743 //!@   			   with error and with duplicate LTSY complete message
       
   744 //!@SYMTestPriority        High
       
   745 //!@SYMTestActions         1. Invoke RMobilePhone::StorePreferredNetworksListL.
       
   746 //!                        2. LTSY returns error.  
       
   747 //!                        3. Test code receives error.
       
   748 //!                        3. Invoke RMobilePhone:StorePreferredNetworksListL.
       
   749 //!                        4. LTSY returns duplicate complete message with KErrNone
       
   750 //!                        5. Duplicate complete message is ignored and test code receives KErrNone.  
       
   751 //!@SYMTestExpectedResults All tests pass. 
       
   752 //!@SYMTestType            CT
       
   753 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001bL
       
   754 END_TESTCASE BA-CTSY-NTWC-MSPNL-0001b
       
   755 
       
   756 START_TESTCASE BA-CTSY-NTWC-MSPNL-0002
       
   757 //!@SYMTestCaseID          BA-CTSY-NTWC-MSPNL-0002
       
   758 //!@SYMPREQ                417-71654
       
   759 //!@SYMComponent           telephony_ctsy
       
   760 //!@SYMTestCaseDesc        Test support in CTSY for Cancelling RMobilePhone::StorePreferredNetworksListL
       
   761 //!@SYMTestPriority        High
       
   762 //!@SYMTestActions         1. Invoke RMobilePhone::StorePreferredNetworksListL.
       
   763 //!                        2. Cancel the outstanding request.
       
   764 //!                        3. LTSY ignores cancelling the request and stores the preferred networks list.
       
   765 //!@SYMTestExpectedResults Request status of the operation is KErrNone. 
       
   766 //!@SYMTestType            CT
       
   767 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0002L
       
   768 END_TESTCASE BA-CTSY-NTWC-MSPNL-0002
       
   769 
       
   770 START_TESTCASE BA-CTSY-NTWC-MSPNL-0004
       
   771 //!@SYMTestCaseID          BA-CTSY-NTWC-MSPNL-0004
       
   772 //!@SYMPREQ                417-71654
       
   773 //!@SYMComponent           telephony_ctsy
       
   774 //!@SYMTestCaseDesc        Test support in CTSY for multiple client requests to RMobilePhone::StorePreferredNetworksListL
       
   775 //!@SYMTestPriority        High
       
   776 //!@SYMTestActions         1. Invoke RMobilePhone::StorePreferredNetworksListL.
       
   777 //!                        2. Invoke RMobilePhone::StorePreferredNetworksListL from second client.
       
   778 //!@SYMTestExpectedResults Second cleint receives KErrServerBusy. 
       
   779 //!@SYMTestType            CT
       
   780 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0004L
       
   781 END_TESTCASE BA-CTSY-NTWC-MSPNL-0004
       
   782 
       
   783 START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001
       
   784 //!@SYMTestCaseID          BA-CTSY-NTWC-CRMPPN-0001
       
   785 //!@SYMPREQ                417-71654
       
   786 //!@SYMComponent           telephony_ctsy
       
   787 //!@SYMTestCaseDesc        Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start
       
   788 //!@SYMTestPriority        High
       
   789 //!@SYMTestActions         1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
       
   790 //!                        2. Add a new entry to the list.
       
   791 //!                        3. Invoke RMobilePhone::StorePreferredNetworksListL. 
       
   792 //!@SYMTestExpectedResults LTSY receives the modified list and test code receives KErrNone. 
       
   793 //!@SYMTestType            CT
       
   794 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001L
       
   795 END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001
       
   796 
       
   797 START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001a
       
   798 //!@SYMTestCaseID          BA-CTSY-NTWC-CRMPPN-0001a
       
   799 //!@SYMPREQ                417-71654
       
   800 //!@SYMComponent           telephony_ctsy
       
   801 //!@SYMTestCaseDesc        Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start
       
   802 //!@SYMTestPriority        High
       
   803 //!@SYMTestActions         1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
       
   804 //!                        2. Remove an entry from the list.
       
   805 //!                        3. Invoke RMobilePhone::StorePreferredNetworksListL. 
       
   806 //!@SYMTestExpectedResults LTSY receives the modified list and test code receives KErrNone. 
       
   807 //!@SYMTestType            CT
       
   808 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001aL
       
   809 END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001a
       
   810 
       
   811 START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001b
       
   812 //!@SYMTestCaseID          BA-CTSY-NTWC-CRMPPN-0001b
       
   813 //!@SYMPREQ                417-71654
       
   814 //!@SYMComponent           telephony_ctsy
       
   815 //!@SYMTestCaseDesc        Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start with empty list
       
   816 //!@SYMTestPriority        High
       
   817 //!@SYMTestActions         1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
       
   818 //!                        2. LTSY returns an empty list of preferred networks.
       
   819 //!@SYMTestExpectedResults Test code receives an empty list of preferred networks. 
       
   820 //!@SYMTestType            CT
       
   821 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001bL
       
   822 END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001b
       
   823 
       
   824 START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001c
       
   825 //!@SYMTestCaseID          BA-CTSY-NTWC-CRMPPN-0001c
       
   826 //!@SYMPREQ                417-71654
       
   827 //!@SYMComponent           telephony_ctsy
       
   828 //!@SYMTestCaseDesc        Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start with error
       
   829 //!@SYMTestPriority        High
       
   830 //!@SYMTestActions         1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
       
   831 //!                        2. LTSY returns error.
       
   832 //!@SYMTestExpectedResults Test code receives error. 
       
   833 //!@SYMTestType            CT
       
   834 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001cL
       
   835 END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001c
       
   836 
       
   837 START_TESTCASE BA-CTSY-NTWC-CRMPPN-0002
       
   838 //!@SYMTestCaseID          BA-CTSY-NTWC-CRMPPN-0002
       
   839 //!@SYMPREQ                417-71654
       
   840 //!@SYMComponent           telephony_ctsy
       
   841 //!@SYMTestCaseDesc        Test support in CTSY for Cancelling CRetrieveMobilePhonePreferredNetworks::Start
       
   842 //!@SYMTestPriority        High
       
   843 //!@SYMTestActions         1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
       
   844 //!                        2. Cancel outstanding request.
       
   845 //!@SYMTestExpectedResults Request status of the operation is KErrCancel
       
   846 //!@SYMTestType            CT
       
   847 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0002L
       
   848 END_TESTCASE BA-CTSY-NTWC-CRMPPN-0002
       
   849 
       
   850 START_TESTCASE BA-CTSY-NTWC-CRMPPN-0004
       
   851 //!@SYMTestCaseID          BA-CTSY-NTWC-CRMPPN-0004
       
   852 //!@SYMPREQ                417-71654
       
   853 //!@SYMComponent           telephony_ctsy
       
   854 //!@SYMTestCaseDesc        Test support in CTSY for multiple client requests to CRetrieveMobilePhonePreferredNetworks::Start
       
   855 //!@SYMTestPriority        High
       
   856 //!@SYMTestActions         1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
       
   857 //!                        2. Invoke CRetrieveMobilePhonePreferredNetworks::Start from second client.
       
   858 //!@SYMTestExpectedResults Second client receives KErrInUse.
       
   859 //!@SYMTestType            CT
       
   860 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0004L
       
   861 END_TESTCASE BA-CTSY-NTWC-CRMPPN-0004
       
   862 
   729 START_TESTCASE BA-CTSY-NTWC-MGNRS-0001
   863 START_TESTCASE BA-CTSY-NTWC-MGNRS-0001
   730 //!@SYMTestCaseID BA-CTSY-NTWC-MGNRS-0001
   864 //!@SYMTestCaseID BA-CTSY-NTWC-MGNRS-0001
   731 //!@SYMPREQ 1551
   865 //!@SYMPREQ 1551
   732 //!@SYMCR 1595
   866 //!@SYMCR 1595
   733 //!@SYMComponent telephony_ctsy
   867 //!@SYMComponent telephony_ctsy
   762 //!@SYMTestType CT
   896 //!@SYMTestType CT
   763 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestGetNetworkRegistrationStatus0004L
   897 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestGetNetworkRegistrationStatus0004L
   764 END_TESTCASE BA-CTSY-NTWC-MGNRS-0004
   898 END_TESTCASE BA-CTSY-NTWC-MGNRS-0004
   765 
   899 
   766 START_TESTCASE BA-CTSY-NTWC-MNPNLC-0001
   900 START_TESTCASE BA-CTSY-NTWC-MNPNLC-0001
   767 //!@SYMTestCaseID BA-CTSY-NTWC-MNPNLC-0001
   901 //!@SYMPREQ                417-71654
   768 //!@SYMPREQ 1551
   902 //!@SYMComponent           telephony_ctsy
   769 //!@SYMComponent telephony_ctsy
   903 //!@SYMTestCaseDesc        Test support in CTSY for RMobilePhone::NotifyPreferredNetworksListChange
   770 //!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyPreferredNetworksListChange
   904 //!@SYMTestPriority        High
   771 //!@SYMTestPriority High
   905 //!@SYMTestActions         1. Invoke RMobilePhone::NotifyPreferredNetworksListChange.
   772 //!@SYMTestActions Invokes RMobilePhone::NotifyPreferredNetworksListChange
   906 //!                        2. Invoke RMobilePhone::StorePreferredNetworksListL.
   773 //!@SYMTestExpectedResults Pass
   907 //!@SYMTestExpectedResults Test code receives preferred network list notification
   774 //!@SYMTestType CT
   908 //!@SYMTestType            CT
   775 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0001L
   909 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0001L
   776 END_TESTCASE BA-CTSY-NTWC-MNPNLC-0001
   910 END_TESTCASE BA-CTSY-NTWC-MNPNLC-0001
   777 
   911 
       
   912 START_TESTCASE BA-CTSY-NTWC-MNPNLC-0002
       
   913 //!@SYMTestCaseID          BA-CTSY-NTWC-MNPNLC-0002
       
   914 //!@SYMPREQ                417-71654
       
   915 //!@SYMComponent           telephony_ctsy
       
   916 //!@SYMTestCaseDesc        Test support in CTSY for Cancelling RMobilePhone::NotifyPreferredNetworksListChange
       
   917 //!@SYMTestPriority        High
       
   918 //!@SYMTestActions         1. Invoke RMobilePhone::NotifyPreferredNetworksListChange.
       
   919 //!                        2. Cancel subscription to preferred network list change.
       
   920 //!                        3. Invoke RMobilePhone::StorePreferredNetworksListL.
       
   921 //!@SYMTestExpectedResults Test code does not receive preferred network list notification
       
   922 //!@SYMTestType            CT
       
   923 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0002L
       
   924 END_TESTCASE BA-CTSY-NTWC-MNPNLC-0002
       
   925 
       
   926 START_TESTCASE BA-CTSY-NTWC-MNPNLC-0004
       
   927 //!@SYMPREQ                417-71654
       
   928 //!@SYMComponent           telephony_ctsy
       
   929 //!@SYMTestCaseDesc        Test support in CTSY for multiple client requests to RMobilePhone::NotifyPreferredNetworksListChange
       
   930 //!@SYMTestPriority        High
       
   931 //!@SYMTestActions         1. Invoke RMobilePhone::NotifyPreferredNetworksListChange.
       
   932 //!                        1. Invoke RMobilePhone::NotifyPreferredNetworksListChange from second client.
       
   933 //!                        2. Invoke RMobilePhone::StorePreferredNetworksListL.
       
   934 //!@SYMTestExpectedResults Clients receive preferred network list notification
       
   935 //!@SYMTestType            CT
       
   936 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0004L
       
   937 END_TESTCASE BA-CTSY-NTWC-MNPNLC-0004
       
   938 
   778 START_TESTCASE BA-CTSY-NTWC-MNNSSC-0001
   939 START_TESTCASE BA-CTSY-NTWC-MNNSSC-0001
   779 //!@SYMTestCaseID BA-CTSY-NTWC-MNNSSC-0001
   940 //!@SYMTestCaseID BA-CTSY-NTWC-MNNSSC-0001
   780 //!@SYMPREQ 1551
   941 //!@SYMPREQ 1551
   781 //!@SYMComponent telephony_ctsy
   942 //!@SYMComponent telephony_ctsy
   782 //!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyNetworkSelectionSettingChange
   943 //!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyNetworkSelectionSettingChange
   943 //!@SYMTestExpectedResults Pass
  1104 //!@SYMTestExpectedResults Pass
   944 //!@SYMTestType CT
  1105 //!@SYMTestType CT
   945 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyCellInfoChange0004L
  1106 RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyCellInfoChange0004L
   946 END_TESTCASE BA-CTSY-NTWC-PNCIC-0004
  1107 END_TESTCASE BA-CTSY-NTWC-PNCIC-0004
   947 
  1108 
   948 RUN_SCRIPT z:\TestData\Scripts\mockltsy_remove_ini_file.script