messagingfw/msgtestfw/TestCases/ScriptedTestCases/EmailOverSMS/MSG-SMS-Receive-Class0SMS-0004.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 //! ===============================================================
       
    17 //! @SYMTestCaseID		MSG-SMS-Receive-Class0SMS-0004
       
    18 //! @SYMTestCaseDesc		Confirm more than one Class 0 SMS message received in Out of Disk situation
       
    19 //!
       
    20 //! @SYMTestActions		
       
    21 //!				1.	Initializes SimTsy with the configuration file
       
    22 //!				2.	Start the watcher
       
    23 //!				3.	Set the default SMS setting file
       
    24 //!				4.	Create a session to the messaging server
       
    25 //!				5.	Set up out of  disk situation
       
    26 //!				6.	Create a SMS service and then modify the settings of the specified SMS service to match the one
       
    27 //!				7.	Create a Class 0 SMS message 
       
    28 //!				8.	Create a Class 0 SMS message
       
    29 //!				9.	Create a Class 0 SMS message
       
    30 //!				10.	Schedule the SMS messages and then send the SMS messages from the  sim.tsy after a trigger
       
    31 //!				11.	Check the message in the Sent Item folder and Receive Class 0 SMS message will not be there in 
       
    32 //!					Inbox, only can be logged in the log file
       
    33 //!				12.	Check using SIMTsy that each received Class0 SMS PDU is positively acknowledged by the SMS stack 
       
    34 //!
       
    35 //! @SYMTestExpectedResults	Class 0 SMS messages have been sent and will be displayed to the user by logging to the log file
       
    36 //! ===============================================================
       
    37 //!
       
    38 //! ===============================
       
    39 //! @SYMTestPriority	Critical
       
    40 //! @SYMTestType	CIT
       
    41 //! @SYMTestStatus	Implemented
       
    42 //!
       
    43 //! @SYMREQ		REQ6522, REQ6523, REQ7012, REQ7218, REQ7219, REQ7232
       
    44 //! @SYMPREQ		PREQ1736
       
    45 //!
       
    46 //! @SYMAuthor		Rajat Bal
       
    47 //! ===============================
       
    48 
       
    49 	
       
    50 RUN_UTILS DeleteFile c:\messaging.db
       
    51 LOAD_SUITE MessagingTestServer -SharedData
       
    52 
       
    53 RUN_UTILS CopyFile	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSms\MSG-SMS-Receive-Class0SMS-0004config.txt C:\config.txt
       
    54 RUN_UTILS MakeReadWrite	C:\config.txt
       
    55 RUN_UTILS DeleteFile    C:\logs\testexecute\class0sms.txt
       
    56 
       
    57 PRINT Copy esk file with MAX PDUs = 5
       
    58 PRINT ###############################################
       
    59 //RUN_UTILS  DeleteFile   	c:\private\101F7989\esock\smswap.sms.bak
       
    60 //RUN_UTILS  copyfile  		c:\private\101F7989\esock\smswap.sms.esk c:\private\101F7989\esock\smswap.sms.bak
       
    61 RUN_UTILS  MakeReadWrite  	c:\private\101F7989\esock\smswap.sms.esk
       
    62 RUN_UTILS  copyfile   		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\smswap_MaxFivePDUsInOOD.esk c:\private\101F7989\esock\smswap.sms.esk
       
    63 PRINT ###############################################
       
    64 
       
    65 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE_ASYNC
       
    66 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE
       
    67 
       
    68 //RUN_TEST_STEP 60  MessagingTestServer SetDiskSpaceMonitorLimits c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini   SetDiskSpaceMonitorLimits
       
    69 //WaitForAll
       
    70 //RUN_TEST_STEP 120 MessagingTestServer SetDiskSpace         	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini   SetDiskSpace
       
    71 //WaitForAll
       
    72 
       
    73 PRINT ###############################################
       
    74 RUN_TEST_STEP 100 MessagingTestServer InitializeSimTsy 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini Init1
       
    75 WaitForAll
       
    76 RUN_TEST_STEP 100 MessagingTestServer StartWatchers 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini StartWatchers
       
    77 WaitForAll
       
    78 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini Sleep10
       
    79 WaitForAll
       
    80 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini GetBaseConstants
       
    81 WaitForAll
       
    82 RUN_TEST_STEP 100 MessagingTestServer SetDefaultSmsSettings 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini SetSettingsFile
       
    83 WaitForAll
       
    84 RUN_TEST_STEP 100 MessagingTestServer SetDefaultConfiguration 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini SetSmsMessageConfigFile
       
    85 WaitForAll
       
    86 RUN_TEST_STEP 100 MessagingTestServer CreateSession 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateSession
       
    87 WaitForAll
       
    88 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateRegistry
       
    89 WaitForAll
       
    90 RUN_TEST_STEP 100 MessagingTestServer CreateSmsService 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateSmsService
       
    91 WaitForAll
       
    92 RUN_TEST_STEP 100 MessagingTestServer SetSmsServiceSettings 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini SetSmsSettings
       
    93 RUN_TEST_STEP 100 MessagingTestServer WaitForAll
       
    94 RUN_TEST_STEP 100 MessagingTestServer SetSchSendSettings 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini SetSchSendSettings
       
    95 WaitForAll
       
    96 RUN_TEST_STEP 100 MessagingTestServer CreateMtm 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateMtm
       
    97 WaitForAll
       
    98 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini EmptyOutbox
       
    99 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini EmptySent
       
   100 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini EmptyInbox
       
   101 WaitForAll
       
   102 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE
       
   103 
       
   104 PRINT ###############################################
       
   105 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CheckChildrenCountOutbox0
       
   106 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CheckChildrenCountSent0
       
   107 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CheckChildrenCountInbox0
       
   108 WaitForAll
       
   109 PRINT ######### just check everthing has gone.
       
   110 RUN_TEST_STEP 100 MessagingTestServer GetSmsConstants 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini GetSmsConstants
       
   111 WaitForAll
       
   112 
       
   113 RUN_TEST_STEP 100 MessagingTestServer CreateSmsMessage 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateMessage
       
   114 RUN_TEST_STEP 100 MessagingTestServer CreateSmsMessage 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateMessage
       
   115 RUN_TEST_STEP 100 MessagingTestServer CreateSmsMessage 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateMessage
       
   116 WaitForAll
       
   117 
       
   118 RUN_TEST_STEP 100 MessagingTestServer CreateSelection 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CreateSelection
       
   119 WaitForAll
       
   120 RUN_TEST_STEP 100 MessagingTestServer GetDefaultAppendToSelection c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini AppendToSelection
       
   121 WaitForAll
       
   122 
       
   123 PRINT ###############################################
       
   124 PRINT ######### Check that we have only one message in the outbox. It is the send that will trigger the recive. 
       
   125 PRINT ######### The sim.tsy waits for the send, and then sends back a message.
       
   126 RUN_TEST_STEP 100 MessagingTestServer SetNetworkRegistrationStatus c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini NetAvailable
       
   127 WaitForAll
       
   128 RUN_TEST_STEP 100 MessagingTestServer SetSignalStrength 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini NetStrengthHigh
       
   129 WaitForAll
       
   130 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini Sleep3
       
   131 WaitForAll
       
   132 
       
   133 
       
   134 PRINT ######### Get ready for the message to be sent here from the sim.tsy but after we send out a message as trigger.
       
   135 RUN_TEST_STEP 100 MessagingTestServer ExecuteMtmCommand 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini ScheduleMessage
       
   136 WaitForAll
       
   137 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini Sleep10
       
   138 WaitForAll
       
   139 
       
   140 PRINT ######### Let message get there.
       
   141 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS
       
   142 PRINT ######### Check that we have one message in the sent (and removed from the outbox), and that we have one message (which we sent from the sim.tsy) in the inbox. 
       
   143 RUN_TEST_STEP 100 MessagingTestServer CheckClass0SMS 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CheckClass0SMS
       
   144 RUN_TEST_STEP 100 MessagingTestServer CheckClass0SMS 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CheckClass0SMS
       
   145 RUN_TEST_STEP 100 MessagingTestServer CheckClass0SMS 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini CheckClass0SMS
       
   146 WaitForAll
       
   147 RUN_TEST_STEP 100 MessagingTestServer UnloadPhoneModule 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0004.ini UnloadPhoneModule 
       
   148 
       
   149 //RUN_TEST_STEP 120 MessagingTestServer FreeDiskSpace
       
   150 //WaitForAll
       
   151 
       
   152 PRINT ###############################################
       
   153 
       
   154 //PRINT ###############################################
       
   155 //RUN_UTILS  DeleteFile  		c:\private\101F7989\sms\smsu.rsc
       
   156 //RUN_UTILS  MakeReadWrite  	c:\private\101F7989\esock\smswap.sms.esk
       
   157 //RUN_UTILS  copyfile  		c:\private\101F7989\esock\smswap.sms.bak     c:\private\101F7989\esock\smswap.sms.esk
       
   158 //PRINT ###############################################
       
   159 
       
   160 
       
   161 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE
       
   162