telephonyserverplugins/common_tsy/test/component/scripts/te_ctsycomponent_networkcontrol_individual.script
--- a/telephonyserverplugins/common_tsy/test/component/scripts/te_ctsycomponent_networkcontrol_individual.script Tue Aug 31 16:23:08 2010 +0300
+++ b/telephonyserverplugins/common_tsy/test/component/scripts/te_ctsycomponent_networkcontrol_individual.script Wed Sep 01 12:40:21 2010 +0100
@@ -1,5 +1,5 @@
//
-// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -13,9 +13,6 @@
//
// Description:
//
-//
-
-RUN_SCRIPT z:\TestData\Scripts\mockltsy_copy_ini_file.script
LOAD_SUITE te_ctsy_component
@@ -715,17 +712,154 @@
END_TESTCASE BA-CTSY-NTWC-MGLUAT-0001
START_TESTCASE BA-CTSY-NTWC-MSPNL-0001
-//!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0001
-//!@SYMPREQ 1551
-//!@SYMComponent telephony_ctsy
-//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::StorePreferredNetworksListL
-//!@SYMTestPriority High
-//!@SYMTestActions Invokes RMobilePhone::StorePreferredNetworksListL
-//!@SYMTestExpectedResults Pass
-//!@SYMTestType CT
+//!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0001
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::StorePreferredNetworksListL
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::StorePreferredNetworksListL with a list of Preferred Networks.
+//!@SYMTestExpectedResults LTSY receives the same list of Preferred Networks.
+//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001L
END_TESTCASE BA-CTSY-NTWC-MSPNL-0001
+START_TESTCASE BA-CTSY-NTWC-MSPNL-0001a
+//!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0001a
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::StorePreferredNetworksListL with empty list
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::StorePreferredNetworksListL with an empty list of Preferred Networks.
+//!@SYMTestExpectedResults LTSY receives an empty list of Preferred Networks.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001aL
+END_TESTCASE BA-CTSY-NTWC-MSPNL-0001a
+
+START_TESTCASE BA-CTSY-NTWC-MSPNL-0001b
+//!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0001b
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::StorePreferredNetworksListL
+//!@ with error and with duplicate LTSY complete message
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::StorePreferredNetworksListL.
+//! 2. LTSY returns error.
+//! 3. Test code receives error.
+//! 3. Invoke RMobilePhone:StorePreferredNetworksListL.
+//! 4. LTSY returns duplicate complete message with KErrNone
+//! 5. Duplicate complete message is ignored and test code receives KErrNone.
+//!@SYMTestExpectedResults All tests pass.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0001bL
+END_TESTCASE BA-CTSY-NTWC-MSPNL-0001b
+
+START_TESTCASE BA-CTSY-NTWC-MSPNL-0002
+//!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0002
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for Cancelling RMobilePhone::StorePreferredNetworksListL
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::StorePreferredNetworksListL.
+//! 2. Cancel the outstanding request.
+//! 3. LTSY ignores cancelling the request and stores the preferred networks list.
+//!@SYMTestExpectedResults Request status of the operation is KErrNone.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0002L
+END_TESTCASE BA-CTSY-NTWC-MSPNL-0002
+
+START_TESTCASE BA-CTSY-NTWC-MSPNL-0004
+//!@SYMTestCaseID BA-CTSY-NTWC-MSPNL-0004
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::StorePreferredNetworksListL
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::StorePreferredNetworksListL.
+//! 2. Invoke RMobilePhone::StorePreferredNetworksListL from second client.
+//!@SYMTestExpectedResults Second cleint receives KErrServerBusy.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestStorePreferredNetworksListL0004L
+END_TESTCASE BA-CTSY-NTWC-MSPNL-0004
+
+START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001
+//!@SYMTestCaseID BA-CTSY-NTWC-CRMPPN-0001
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
+//! 2. Add a new entry to the list.
+//! 3. Invoke RMobilePhone::StorePreferredNetworksListL.
+//!@SYMTestExpectedResults LTSY receives the modified list and test code receives KErrNone.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001L
+END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001
+
+START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001a
+//!@SYMTestCaseID BA-CTSY-NTWC-CRMPPN-0001a
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
+//! 2. Remove an entry from the list.
+//! 3. Invoke RMobilePhone::StorePreferredNetworksListL.
+//!@SYMTestExpectedResults LTSY receives the modified list and test code receives KErrNone.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001aL
+END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001a
+
+START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001b
+//!@SYMTestCaseID BA-CTSY-NTWC-CRMPPN-0001b
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start with empty list
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
+//! 2. LTSY returns an empty list of preferred networks.
+//!@SYMTestExpectedResults Test code receives an empty list of preferred networks.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001bL
+END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001b
+
+START_TESTCASE BA-CTSY-NTWC-CRMPPN-0001c
+//!@SYMTestCaseID BA-CTSY-NTWC-CRMPPN-0001c
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for CRetrieveMobilePhonePreferredNetworks::Start with error
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
+//! 2. LTSY returns error.
+//!@SYMTestExpectedResults Test code receives error.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0001cL
+END_TESTCASE BA-CTSY-NTWC-CRMPPN-0001c
+
+START_TESTCASE BA-CTSY-NTWC-CRMPPN-0002
+//!@SYMTestCaseID BA-CTSY-NTWC-CRMPPN-0002
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for Cancelling CRetrieveMobilePhonePreferredNetworks::Start
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
+//! 2. Cancel outstanding request.
+//!@SYMTestExpectedResults Request status of the operation is KErrCancel
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0002L
+END_TESTCASE BA-CTSY-NTWC-CRMPPN-0002
+
+START_TESTCASE BA-CTSY-NTWC-CRMPPN-0004
+//!@SYMTestCaseID BA-CTSY-NTWC-CRMPPN-0004
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to CRetrieveMobilePhonePreferredNetworks::Start
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke CRetrieveMobilePhonePreferredNetworks::Start.
+//! 2. Invoke CRetrieveMobilePhonePreferredNetworks::Start from second client.
+//!@SYMTestExpectedResults Second client receives KErrInUse.
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestRetrieveMobilePhonePreferredNetworks0004L
+END_TESTCASE BA-CTSY-NTWC-CRMPPN-0004
+
START_TESTCASE BA-CTSY-NTWC-MGNRS-0001
//!@SYMTestCaseID BA-CTSY-NTWC-MGNRS-0001
//!@SYMPREQ 1551
@@ -764,17 +898,44 @@
END_TESTCASE BA-CTSY-NTWC-MGNRS-0004
START_TESTCASE BA-CTSY-NTWC-MNPNLC-0001
-//!@SYMTestCaseID BA-CTSY-NTWC-MNPNLC-0001
-//!@SYMPREQ 1551
-//!@SYMComponent telephony_ctsy
-//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyPreferredNetworksListChange
-//!@SYMTestPriority High
-//!@SYMTestActions Invokes RMobilePhone::NotifyPreferredNetworksListChange
-//!@SYMTestExpectedResults Pass
-//!@SYMTestType CT
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for RMobilePhone::NotifyPreferredNetworksListChange
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::NotifyPreferredNetworksListChange.
+//! 2. Invoke RMobilePhone::StorePreferredNetworksListL.
+//!@SYMTestExpectedResults Test code receives preferred network list notification
+//!@SYMTestType CT
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0001L
END_TESTCASE BA-CTSY-NTWC-MNPNLC-0001
+START_TESTCASE BA-CTSY-NTWC-MNPNLC-0002
+//!@SYMTestCaseID BA-CTSY-NTWC-MNPNLC-0002
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for Cancelling RMobilePhone::NotifyPreferredNetworksListChange
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::NotifyPreferredNetworksListChange.
+//! 2. Cancel subscription to preferred network list change.
+//! 3. Invoke RMobilePhone::StorePreferredNetworksListL.
+//!@SYMTestExpectedResults Test code does not receive preferred network list notification
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0002L
+END_TESTCASE BA-CTSY-NTWC-MNPNLC-0002
+
+START_TESTCASE BA-CTSY-NTWC-MNPNLC-0004
+//!@SYMPREQ 417-71654
+//!@SYMComponent telephony_ctsy
+//!@SYMTestCaseDesc Test support in CTSY for multiple client requests to RMobilePhone::NotifyPreferredNetworksListChange
+//!@SYMTestPriority High
+//!@SYMTestActions 1. Invoke RMobilePhone::NotifyPreferredNetworksListChange.
+//! 1. Invoke RMobilePhone::NotifyPreferredNetworksListChange from second client.
+//! 2. Invoke RMobilePhone::StorePreferredNetworksListL.
+//!@SYMTestExpectedResults Clients receive preferred network list notification
+//!@SYMTestType CT
+RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyPreferredNetworksListChange0004L
+END_TESTCASE BA-CTSY-NTWC-MNPNLC-0004
+
START_TESTCASE BA-CTSY-NTWC-MNNSSC-0001
//!@SYMTestCaseID BA-CTSY-NTWC-MNNSSC-0001
//!@SYMPREQ 1551
@@ -945,4 +1106,3 @@
RUN_TEST_STEP 100 te_ctsy_component TEFUnit.CCTsyNetworkControlFU.TestNotifyCellInfoChange0004L
END_TESTCASE BA-CTSY-NTWC-PNCIC-0004
-RUN_SCRIPT z:\TestData\Scripts\mockltsy_remove_ini_file.script