messagingfw/msgtestfw/TestCases/ScriptedTestCases/TestCaseSMSSettingsHotSwap2.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 //	TestCaseSMSSettingsHotSwap2.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 2:
       
    52 //	
       
    53 // 	1. Remove any existing message folder
       
    54 // 	2. Create a message store on the MMC card and set some SMS settings.
       
    55 // 	3. Save the settings using SaveExternalL.
       
    56 // 	4. Remove the MMC card
       
    57 // 	5. Create a SMS service and set some settings on the C drive
       
    58 //	
       
    59 // 	6. Verify that restoring the SMS settings from the C: drive return the settings set last.
       
    60 //
       
    61 // 	Implementation and execution:
       
    62 // 	Note that there is no need to create new mail stores. The existing ones are used.
       
    63 // 	An external drive (drive letter between D and Y) must be available on the device for
       
    64 // 	this test to execute (either an MMC/CF card on hardware or an emulated drive on emulator)
       
    65 //
       
    66 // ------------------------------------------
       
    67 // Post-condition description (i.e., expected outcome):
       
    68 //	See above
       
    69 // ------------------------------------------
       
    70 // Reference to a review document:
       
    71 //	
       
    72 // ------------------------------------------
       
    73 // Full pathname of an epoc.ini (if there are special epoc.ini requirements)
       
    74 // 	For emulator, an epoc.ini that creates an emulated external drive (drive letter 
       
    75 //	between D: and Y:) is required. Optionally, an environment variable can be defined.
       
    76 // ------------------------------------------
       
    77 // Any CommDb restrictions:
       
    78 //	None, not connected
       
    79 // ------------------------------------------
       
    80 // Build Requirements (e.g., no watchers):
       
    81 //	None
       
    82 // ------------------------------------------
       
    83 // Hardware Requirements
       
    84 //	A removable drive must be available, eg. MMC or CF card.
       
    85 // ------------------------------------------
       
    86 
       
    87 
       
    88 RUN_UTILS DeleteFile c:\messaging.db
       
    89 LOAD_SUITE MessagingTestServer -SharedData
       
    90 PREFIX RUN_TEST_STEP 100 MessagingTestServer
       
    91 BEGIN_TEST_CASE
       
    92 SETUP_TEST_CASE
       
    93 SetDefaultSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsFiles
       
    94 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetConstants
       
    95 GetSmsConstants c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini GetSmsConstants 
       
    96 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SessionId
       
    97 ChangeToExternalDrive c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini ChangeToExternal
       
    98 DeleteMessageStore c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CMessageFolder
       
    99 EXECUTE_TEST_CASE
       
   100 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService
       
   101 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsVodafone
       
   102 SmsSettingsSaveExternal c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SaveExternal
       
   103 RemoveMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   104 CreateMessage c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini CreateMessage
       
   105 CHECK_POSTCONDITIONS
       
   106 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsService2
       
   107 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini SmsSettingsOrange
       
   108 CompareSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini checkOrangeSettings
       
   109 InsertMedia c:\msgtest\TestFramework\ScriptedTestCases\TestCaseSMSSettingsHotSwap.ini externalDriveID
       
   110 END_TEST_CASE