messagingfw/msgtestfw/TestCases/ScriptedTestCases/TestCaseSMSSettingsHotSwap0.script
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     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 //	TestCaseSMSSettingsHotSwap0.script
       
    18 // ------------------------------------------
       
    19 // Component Under Test:
       
    20 //	SMS
       
    21 // ------------------------------------------
       
    22 // API function under test:
       
    23 //	CSmsSettings::StoreL()
       
    24 //	CSmsSettings::RestoreL()
       
    25 // ------------------------------------------
       
    26 // Requirement/Use Case/Functional Spec:
       
    27 //	CR CWAK-5RXDJ4 
       
    28 // ------------------------------------------
       
    29 // Polarity:
       
    30 //	Positive
       
    31 // ------------------------------------------
       
    32 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability):
       
    33 //	Integration
       
    34 // ------------------------------------------
       
    35 // Expected Panic ID (if a panic test, only for non-scripted test cases):
       
    36 //	n/a
       
    37 // ------------------------------------------
       
    38 // Interface Dependencies (does it require connection, which subsystems does it require):
       
    39 // 	None
       
    40 // ------------------------------------------
       
    41 // Importance (critical, high, or low):
       
    42 //	High
       
    43 // ------------------------------------------
       
    44 // Execution Time (fast, medium, or slow):
       
    45 //	Fast
       
    46 // ------------------------------------------
       
    47 // Pre-condition description:
       
    48 //	None
       
    49 // ------------------------------------------
       
    50 // Action Description:
       
    51 // 	CR CWAK-5RXDJ4 – Add limited support for Hot Swap MMC support for the storage of SMS/MMS
       
    52 // 	- Test Case 0: (Regression testing, not using SaveExternalL)
       
    53 //	
       
    54 // 	1. Create a new message store on the C: drive with SMS settings = settingsA
       
    55 // 	2. Create a new message store on the MMC card with SMS settings = settingsB
       
    56 // 	3. Remove the MMC card, force a change to C: drive by creating new message
       
    57 //	
       
    58 // 	5. Verify setingsA can be restored from the C: drive.
       
    59 //	
       
    60 // 	Implementation and execution:
       
    61 // 	Note that there is no need to create new mail stores. The existing ones are used.
       
    62 // 	An external drive (drive letter between D and Y) must be available on the device for
       
    63 // 	this test to execute (either an MMC/CF card on hardware or an emulated drive on emulator)
       
    64 //
       
    65 // ------------------------------------------
       
    66 // Post-condition description (i.e., expected outcome):
       
    67 //	See above
       
    68 // ------------------------------------------
       
    69 // Reference to a review document:
       
    70 //	
       
    71 // ------------------------------------------
       
    72 // Full pathname of an epoc.ini (if there are special epoc.ini requirements)
       
    73 // 	For emulator, an epoc.ini that creates an emulated external drive (drive letter 
       
    74 //	between D: and Y:) is required. Optionally, an environment variable can be defined.
       
    75 // ------------------------------------------
       
    76 // Any CommDb restrictions:
       
    77 //	None, not connected
       
    78 // ------------------------------------------
       
    79 // Build Requirements (e.g., no watchers):
       
    80 //	None
       
    81 // ------------------------------------------
       
    82 // Hardware Requirements
       
    83 //	A removable drive must be available, eg. MMC or CF card.
       
    84 // ------------------------------------------
       
    85 
       
    86 
       
    87 RUN_UTILS DeleteFile c:\messaging.db
       
    88 LOAD_SUITE MessagingTestServer -SharedData
       
    89 PREFIX RUN_TEST_STEP 100 MessagingTestServer 
       
    90 BEGIN_TEST_CASE
       
    91 SETUP_TEST_CASE
       
    92 SetDefaultSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsFiles
       
    93 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetConstants
       
    94 GetSmsConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetSmsConstants 
       
    95 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SessionId
       
    96 ChangeToInternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToInternal
       
    97 EXECUTE_TEST_CASE
       
    98 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService2
       
    99 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsOrange
       
   100 ChangeToExternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToExternal
       
   101 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService
       
   102 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsVodafone
       
   103 RemoveMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   104 CreateMessage c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CreateMessage
       
   105 CHECK_POSTCONDITIONS
       
   106 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkVodafoneSettings
       
   107 InsertMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   108 END_TEST_CASE