messagingfw/msgtestproduct/media/scripts/msg-sms-message.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 	
       
    17 LOAD_SUITE MessagingTestServer -SharedData
       
    18 
       
    19 //! @file			
       
    20 //! @SYMTestSuiteName		MSG-SMS
       
    21 //! @SYMScriptTestEnvironment   Details as in below:-
       
    22 //!				1. simtsy
       
    23 //!				
       
    24 //! @SYMScriptPurpose		Pre-setup for all preferred drives with sms accounts and messages
       
    25 //! @SYMScriptCreationDate	04/04/2008
       
    26 
       
    27 
       
    28 //! 	@SYMTestCaseID		MSG-EMAIL-0001
       
    29 //! 	@SYMTestCaseDesc	Sending a sms message
       
    30 //!				
       
    31 //!	@SYMPREQ 		PREQ557
       
    32 //!				
       
    33 //! 	@SYMTestPriority	High
       
    34 //! 	@SYMTestActions		1.	Initialize the SIMTSY
       
    35 //!				2.	Start watchers
       
    36 //!				3.	Set default sms settings and configurations 
       
    37 //!				4.	Create session,registry, sms service, and mtm 
       
    38 //!				5.	Create a sms message
       
    39 //!				6.	Execute the MTM commands
       
    40 //!				7.	Check message sending state
       
    41 //!				8.	Unload the phone module
       
    42 //!				
       
    43 //! 	@SYMTestExpectedResults sms message would be created and sent to simtsy
       
    44 //!				
       
    45 //!	@SYMAuthor		Rajat Bal
       
    46 //!				
       
    47 //! 	@SYMTestType		CIT
       
    48 //! 	@SYMTestStatus 		Defined
       
    49 
       
    50 RUN_UTILS CopyFile c:\msgtest\media\msg-sms-config.txt c:\config.txt
       
    51 RUN_UTILS MakeReadWrite c:\config.txt
       
    52 
       
    53 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE
       
    54 
       
    55 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE
       
    56 
       
    57 RUN_TEST_STEP 100 MessagingTestServer InitializeSimTsy c:\msgtest\media\msg-sms-message.ini Init1
       
    58 RUN_TEST_STEP 100 MessagingTestServer StartWatchers c:\msgtest\media\msg-sms-message.ini StartWatchers
       
    59 RUN_TEST_STEP 100 MessagingTestServer Sleep c:\msgtest\media\msg-sms-message.ini Sleep10
       
    60 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants c:\msgtest\media\msg-sms-message.ini GetBaseConstants
       
    61 RUN_TEST_STEP 100 MessagingTestServer SetDefaultSmsSettings c:\msgtest\media\msg-sms-message.ini SetSettingsFile
       
    62 RUN_TEST_STEP 100 MessagingTestServer SetDefaultConfiguration c:\msgtest\media\msg-sms-message.ini SetSmsMessageConfigFile
       
    63 RUN_TEST_STEP 100 MessagingTestServer CreateSession c:\msgtest\media\msg-sms-message.ini CreateSession
       
    64 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry c:\msgtest\media\msg-sms-message.ini CreateRegistry
       
    65 RUN_TEST_STEP 100 MessagingTestServer CreateSmsService c:\msgtest\media\msg-sms-message.ini CreateSmsService
       
    66 RUN_TEST_STEP 100 MessagingTestServer SetSmsServiceSettings c:\msgtest\media\msg-sms-message.ini SetSmsSettings
       
    67 RUN_TEST_STEP 100 MessagingTestServer SetSchSendSettings c:\msgtest\media\msg-sms-message.ini SetSchSendSettings
       
    68 RUN_TEST_STEP 100 MessagingTestServer CreateMtm c:\msgtest\media\msg-sms-message.ini CreateMtm
       
    69 
       
    70 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE
       
    71 
       
    72 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren c:\msgtest\media\msg-sms-message.ini EmptyOutbox
       
    73 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren c:\msgtest\media\msg-sms-message.ini EmptySent
       
    74 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren c:\msgtest\media\msg-sms-message.ini EmptyInbox
       
    75 RUN_TEST_STEP 100 MessagingTestServer GetSmsConstants c:\msgtest\media\msg-sms-message.ini GetSmsConstants
       
    76 RUN_TEST_STEP 100 MessagingTestServer CreateSmsMessage c:\msgtest\media\msg-sms-message.ini CreateMessage
       
    77 RUN_TEST_STEP 100 MessagingTestServer CreateSelection c:\msgtest\media\msg-sms-message.ini CreateSelection
       
    78 RUN_TEST_STEP 100 MessagingTestServer GetDefaultAppendToSelection c:\msgtest\media\msg-sms-message.ini AppendToSelection
       
    79 RUN_TEST_STEP 100 MessagingTestServer SetNetworkRegistrationStatus c:\msgtest\media\msg-sms-message.ini NetAvailable
       
    80 RUN_TEST_STEP 100 MessagingTestServer SetSignalStrength c:\msgtest\media\msg-sms-message.ini NetStrengthHigh
       
    81 RUN_TEST_STEP 100 MessagingTestServer Sleep c:\msgtest\media\msg-sms-message.ini Sleep3
       
    82 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount c:\msgtest\media\msg-sms-message.ini CheckChildrenCountOutbox1
       
    83 RUN_TEST_STEP 100 MessagingTestServer ExecuteMtmCommand c:\msgtest\media\msg-sms-message.ini ScheduleMessage
       
    84 RUN_TEST_STEP 100 MessagingTestServer CheckMessageSendingState c:\msgtest\media\msg-sms-message.ini MsgSent
       
    85 
       
    86 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS
       
    87 
       
    88 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount c:\msgtest\media\msg-sms-message.ini CheckChildrenCountOutbox0
       
    89 RUN_TEST_STEP 100 MessagingTestServer UnloadPhoneModule c:\msgtest\media\msg-sms-message.ini UnloadPhoneModule
       
    90 
       
    91 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE
       
    92 
       
    93 
       
    94 
       
    95 
       
    96 
       
    97 
       
    98