messagingfw/msgtestfw/TestCases/ScriptedTestCases/TestCaseSMSSettingsHotSwap4.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 // Test Case Name:
       
    17 //	TestCaseSMSSettingsHotSwap4.script
       
    18 // ------------------------------------------
       
    19 // Component Under Test:
       
    20 //	SMS
       
    21 // ------------------------------------------
       
    22 // API function under test:
       
    23 //	CSmsSettings::SaveExternalL()
       
    24 // ------------------------------------------
       
    25 // Requirement/Use Case/Functional Spec:
       
    26 //	CR CWAK-5RXDJ4 
       
    27 // ------------------------------------------
       
    28 // Polarity:
       
    29 //	Positive
       
    30 // ------------------------------------------
       
    31 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability):
       
    32 //	Integration
       
    33 // ------------------------------------------
       
    34 // Expected Panic ID (if a panic test, only for non-scripted test cases):
       
    35 //	n/a
       
    36 // ------------------------------------------
       
    37 // Interface Dependencies (does it require connection, which subsystems does it require):
       
    38 // 	None
       
    39 // ------------------------------------------
       
    40 // Importance (critical, high, or low):
       
    41 //	High
       
    42 // ------------------------------------------
       
    43 // Execution Time (fast, medium, or slow):
       
    44 //	Fast
       
    45 // ------------------------------------------
       
    46 // Pre-condition description:
       
    47 //	None
       
    48 // ------------------------------------------
       
    49 // Action Description:
       
    50 // 	CR CWAK-5RXDJ4 – Add limited support for Hot Swap MMC support for the storage of SMS/MMS
       
    51 // 	- Test Case 4:
       
    52 //	
       
    53 // 	1. Create a new message store on the C: drive and save some SMS settings.
       
    54 // 	2. Create a new message store on the MMC card with different SMS settings.
       
    55 // 	3. Modify and save the settings using StoreL twice.
       
    56 // 	4. Remove the MMC card, change to C: drive. Verify original settings on C: drive SMS service can still be retrieved.
       
    57 // 	5. Insert the MMC card again, and select its message store to be the one used by Messaging.
       
    58 // 	6. Modify the SMS setings on the MMC card, save them using SaveExternalL.
       
    59 // 	7. Remove the MMC card
       
    60 //
       
    61 // 	8. Verify the latest SMS setings can be restored from the C: drive
       
    62 //
       
    63 // 	Implementation and execution:
       
    64 // 	Note that there is no need to create new mail stores. The existing ones are used.
       
    65 // 	An external drive (drive letter between D and Y) must be available on the device for
       
    66 // 	this test to execute (either an MMC/CF card on hardware or an emulated drive on emulator)
       
    67 //
       
    68 // ------------------------------------------
       
    69 // Post-condition description (i.e., expected outcome):
       
    70 //	See above
       
    71 // ------------------------------------------
       
    72 // Reference to a review document:
       
    73 //	
       
    74 // ------------------------------------------
       
    75 // Full pathname of an epoc.ini (if there are special epoc.ini requirements)
       
    76 // 	For emulator, an epoc.ini that creates an emulated external drive (drive letter 
       
    77 //	between D: and Y:) is required. Optionally, an environment variable can be defined.
       
    78 // ------------------------------------------
       
    79 // Any CommDb restrictions:
       
    80 //	None, not connected
       
    81 // ------------------------------------------
       
    82 // Build Requirements (e.g., no watchers):
       
    83 //	None
       
    84 // ------------------------------------------
       
    85 // Hardware Requirements
       
    86 //	A removable drive must be available, eg. MMC or CF card.
       
    87 // ------------------------------------------
       
    88 
       
    89 
       
    90 RUN_UTILS DeleteFile c:\messaging.db
       
    91 LOAD_SUITE MessagingTestServer -SharedData
       
    92 PREFIX RUN_TEST_STEP 100 MessagingTestServer 
       
    93 BEGIN_TEST_CASE
       
    94 SETUP_TEST_CASE
       
    95 SetDefaultSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsFiles
       
    96 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetConstants
       
    97 GetSmsConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetSmsConstants 
       
    98 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SessionId
       
    99 ChangeToInternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToInternal
       
   100 EXECUTE_TEST_CASE
       
   101 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService2
       
   102 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsOrange
       
   103 ChangeToExternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToExternal
       
   104 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService
       
   105 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsVodafone
       
   106 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsVodafone
       
   107 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsVodafone
       
   108 RemoveMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   109 CreateMessage c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CreateMessage
       
   110 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkVodafoneSettings
       
   111 InsertMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   112 ChangeToExternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToExternal
       
   113 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsO2
       
   114 SmsSettingsSaveExternal c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SaveExternal
       
   115 RemoveMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   116 CreateMessage c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CreateMessage
       
   117 CHECK_POSTCONDITIONS
       
   118 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkO2Settings
       
   119 InsertMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   120 END_TEST_CASE