messagingfw/msgtestfw/TestCases/ScriptedTestCases/TestCaseSMSSettingsHotSwap1_3.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 //	TestCaseSMSSettingsHotSwap1&3.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 3:
       
    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. Save the settings using SaveExternalL.
       
    56 // 	4. Remove the MMC card, change to C: drive.
       
    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 //
       
    64 // 	- This implementation also tests Test Case 1:
       
    65 //	
       
    66 // 	1. Create a new message store on the C: drive
       
    67 // 	2. Create a new message store on the MMC card with specific SMS settings.
       
    68 // 	3. Save the settings using SaveExternalL.
       
    69 // 	4. Remove the MMC card
       
    70 //	
       
    71 // 	5. Verify the latest SMS setings can be restored from the C: drive.
       
    72 //
       
    73 // 	Implementation and execution:
       
    74 // 	Note that there is no need to create new mail stores. The existing ones are used.
       
    75 // 	An external drive (drive letter between D and Y) must be available on the device for
       
    76 // 	this test to execute (either an MMC/CF card on hardware or an emulated drive on emulator)
       
    77 //
       
    78 // ------------------------------------------
       
    79 // Post-condition description (i.e., expected outcome):
       
    80 //	See above
       
    81 // ------------------------------------------
       
    82 // Reference to a review document:
       
    83 //	
       
    84 // ------------------------------------------
       
    85 // Full pathname of an epoc.ini (if there are special epoc.ini requirements)
       
    86 // 	For emulator, an epoc.ini that creates an emulated external drive (drive letter 
       
    87 //	between D: and Y:) is required. Optionally, an environment variable can be defined.
       
    88 // ------------------------------------------
       
    89 // Any CommDb restrictions:
       
    90 //	None, not connected
       
    91 // ------------------------------------------
       
    92 // Build Requirements (e.g., no watchers):
       
    93 //	None
       
    94 // ------------------------------------------
       
    95 // Hardware Requirements
       
    96 //	A removable drive must be available, eg. MMC or CF card.
       
    97 // ------------------------------------------
       
    98 
       
    99 
       
   100 RUN_UTILS DeleteFile c:\messaging.db
       
   101 LOAD_SUITE MessagingTestServer -SharedData
       
   102 PREFIX RUN_TEST_STEP 100 MessagingTestServer 
       
   103 BEGIN_TEST_CASE
       
   104 SETUP_TEST_CASE
       
   105 SetDefaultSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsFiles
       
   106 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetConstants
       
   107 GetSmsConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetSmsConstants 
       
   108 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SessionId
       
   109 ChangeToInternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToInternal
       
   110 EXECUTE_TEST_CASE
       
   111 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService2
       
   112 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsOrange
       
   113 ChangeToExternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToExternal
       
   114 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService
       
   115 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsVodafone
       
   116 SmsSettingsSaveExternal c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SaveExternal
       
   117 RemoveMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   118 CreateMessage c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CreateMessage
       
   119 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkVodafoneSettings
       
   120 InsertMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   121 ChangeToExternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToExternal
       
   122 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkVodafoneSettingsMMC
       
   123 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsO2
       
   124 SmsSettingsSaveExternal c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SaveExternal
       
   125 RemoveMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   126 CreateMessage c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CreateMessage
       
   127 CHECK_POSTCONDITIONS
       
   128 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkO2Settings
       
   129 InsertMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   130 END_TEST_CASE