messagingfw/msgtestfw/TestCases/ScriptedTestCases/EmailOverSMS/MSG-SMS-Receive-Class0SMS-0001.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-0001
       
    18 //! @SYMTestCaseDesc		Receive Class 0 SMS message or partial Class 0 SMS message when in an 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.	Schedule a SMS message and then send the SMS message from the  sim.tsy after a trigger
       
    29 //!				9.	Check the message in the Sent Item folder and Receive Class 0 SMS message will not be there in 
       
    30 //!					Inbox, only can be logged in the log file
       
    31 //!				10.	Check received class 0 SMS is partial or not
       
    32 //!				11.	Check for partial message if it is first, middle or last part  and log into log file
       
    33 //!				12.	Check using SIMTsy that each received Class0 SMS PDU is positively acknowledged by the SMS stack 
       
    34 
       
    35 //!
       
    36 //! @SYMTestExpectedResults	Class 0 SMS message or partial Class 0 SMS message has been sent and will be received to the user by logging to the log file
       
    37 //! ===============================================================
       
    38 //!
       
    39 //! ===============================
       
    40 //! @SYMTestPriority	Critical
       
    41 //! @SYMTestType	CIT
       
    42 //! @SYMTestStatus	Implemented
       
    43 //!
       
    44 //! @SYMREQ		REQ6522, REQ6523, REQ7012, REQ7218, REQ7219, REQ7232
       
    45 //! @SYMPREQ		PREQ1736
       
    46 //!
       
    47 //! @SYMAuthor		Rajat Bal
       
    48 //! ===============================
       
    49 
       
    50 	
       
    51 RUN_UTILS DeleteFile c:\messaging.db
       
    52 LOAD_SUITE MessagingTestServer -SharedData
       
    53 
       
    54 RUN_UTILS CopyFile	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSms\MSG-SMS-Receive-Class0SMS-0001config.txt C:\config.txt
       
    55 RUN_UTILS MakeReadWrite	C:\config.txt
       
    56 
       
    57 RUN_UTILS  DeleteFile   c:\private\101F7989\sms\smsclass0preallocated.dat
       
    58 RUN_UTILS  DeleteFile   c:\private\101F7989\sms\smsclass0reast.dat
       
    59 
       
    60 RUN_UTILS DeleteFile    C:\logs\testexecute\class0sms.txt
       
    61 
       
    62 
       
    63 PRINT Copy esk file with MAX PDUs = 5
       
    64 PRINT ###############################################
       
    65 //RUN_UTILS  DeleteFile   	c:\private\101F7989\esock\smswap.sms.bak
       
    66 //RUN_UTILS  copyfile  		c:\private\101F7989\esock\smswap.sms.esk c:\private\101F7989\esock\smswap.sms.bak
       
    67 RUN_UTILS  MakeReadWrite  	c:\private\101F7989\esock\smswap.sms.esk
       
    68 RUN_UTILS  copyfile   		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\smswap_MaxFivePDUsInOOD.esk c:\private\101F7989\esock\smswap.sms.esk
       
    69 PRINT ###############################################
       
    70 
       
    71 
       
    72 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE_ASYNC
       
    73 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE
       
    74 
       
    75 //RUN_TEST_STEP 60  MessagingTestServer SetDiskSpaceMonitorLimits c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini   SetDiskSpaceMonitorLimits
       
    76 //WaitForAll
       
    77 //RUN_TEST_STEP 120 MessagingTestServer SetDiskSpace         	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini   SetDiskSpace
       
    78 //WaitForAll
       
    79 
       
    80 
       
    81 PRINT ###############################################
       
    82 RUN_TEST_STEP 100 MessagingTestServer InitializeSimTsy 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Init1
       
    83 WaitForAll
       
    84 RUN_TEST_STEP 100 MessagingTestServer StartWatchers 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini StartWatchers
       
    85 WaitForAll
       
    86 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep10
       
    87 WaitForAll
       
    88 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini GetBaseConstants
       
    89 WaitForAll
       
    90 RUN_TEST_STEP 100 MessagingTestServer SetDefaultSmsSettings 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini SetSettingsFile
       
    91 WaitForAll
       
    92 RUN_TEST_STEP 100 MessagingTestServer SetDefaultConfiguration 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini SetSmsMessageConfigFile
       
    93 WaitForAll
       
    94 RUN_TEST_STEP 100 MessagingTestServer CreateSession 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CreateSession
       
    95 WaitForAll
       
    96 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CreateRegistry
       
    97 WaitForAll
       
    98 RUN_TEST_STEP 100 MessagingTestServer CreateSmsService 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CreateSmsService
       
    99 WaitForAll
       
   100 RUN_TEST_STEP 100 MessagingTestServer SetSmsServiceSettings 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini SetSmsSettings
       
   101 RUN_TEST_STEP 100 MessagingTestServer WaitForAll
       
   102 RUN_TEST_STEP 100 MessagingTestServer SetSchSendSettings 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini SetSchSendSettings
       
   103 WaitForAll
       
   104 RUN_TEST_STEP 100 MessagingTestServer CreateMtm 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CreateMtm
       
   105 WaitForAll
       
   106 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini EmptyOutbox
       
   107 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini EmptySent
       
   108 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini EmptyInbox
       
   109 WaitForAll
       
   110 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE
       
   111 
       
   112 PRINT ###############################################
       
   113 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckChildrenCountOutbox0
       
   114 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckChildrenCountSent0
       
   115 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckChildrenCountInbox0
       
   116 WaitForAll
       
   117 PRINT ######### just check everthing has gone.
       
   118 RUN_TEST_STEP 100 MessagingTestServer GetSmsConstants 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini GetSmsConstants
       
   119 WaitForAll
       
   120 RUN_TEST_STEP 100 MessagingTestServer CreateSmsMessage 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CreateMessage
       
   121 WaitForAll
       
   122 RUN_TEST_STEP 100 MessagingTestServer CreateSelection 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CreateSelection
       
   123 WaitForAll
       
   124 RUN_TEST_STEP 100 MessagingTestServer GetDefaultAppendToSelection c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini AppendToSelection
       
   125 WaitForAll
       
   126 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckChildrenCountOutbox1
       
   127 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckChildrenCountSent0
       
   128 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckChildrenCountInbox0
       
   129 WaitForAll
       
   130 
       
   131 
       
   132 PRINT ###############################################
       
   133 PRINT ######### Check that we have only one message in the outbox. It is the send that will trigger the recive. 
       
   134 PRINT ######### The sim.tsy waits for the send, and then sends back a message.
       
   135 RUN_TEST_STEP 100 MessagingTestServer SetNetworkRegistrationStatus c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini NetAvailable
       
   136 WaitForAll
       
   137 RUN_TEST_STEP 100 MessagingTestServer SetSignalStrength 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini NetStrengthHigh
       
   138 WaitForAll
       
   139 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep3
       
   140 WaitForAll
       
   141 
       
   142 
       
   143 PRINT ######### Get ready for the message to be sent here from the sim.tsy but after we send out a message as trigger.
       
   144 RUN_TEST_STEP 100 MessagingTestServer ExecuteMtmCommand 	c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini ScheduleMessage
       
   145 WaitForAll
       
   146 
       
   147 PRINT ######### We have to go through the various states to ensure that the message gets out otherwise we could have 
       
   148 PRINT ######### the messaging outstanding when the test finishes. This would cause the test to fail.
       
   149 
       
   150 RUN_TEST_STEP 100 MessagingTestServer ForwardSystemTime		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini ForwardSystemTime
       
   151 WaitForAll
       
   152 RUN_TEST_STEP 100 MessagingTestServer ForwardSystemTime		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini ForwardSystemTime
       
   153 WaitForAll
       
   154 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep10
       
   155 WaitForAll
       
   156 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep10
       
   157 WaitForAll
       
   158 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep10
       
   159 WaitForAll
       
   160 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep10
       
   161 WaitForAll
       
   162 RUN_TEST_STEP 100 MessagingTestServer Sleep 			c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini Sleep10
       
   163 WaitForAll
       
   164 
       
   165 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS
       
   166 PRINT ######### Let message get there.
       
   167 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. 
       
   168 RUN_TEST_STEP 100 MessagingTestServer CheckClass0SMS 		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini CheckClass0SMS
       
   169 WaitForAll
       
   170 RUN_TEST_STEP 100 MessagingTestServer UnloadPhoneModule		c:\msgtest\TestFramework\ScriptedTestCases\EmailOverSMS\MSG-SMS-Receive-Class0SMS-0001.ini UnloadPhoneModule
       
   171 //RUN_TEST_STEP 120 MessagingTestServer FreeDiskSpace
       
   172 //WaitForAll
       
   173 
       
   174 //PRINT ###############################################
       
   175 //RUN_UTILS  DeleteFile  		c:\private\101F7989\sms\smsu.rsc
       
   176 //RUN_UTILS  MakeReadWrite  	c:\private\101F7989\esock\smswap.sms.esk
       
   177 //RUN_UTILS  copyfile  		c:\private\101F7989\esock\smswap.sms.bak     c:\private\101F7989\esock\smswap.sms.esk
       
   178 //PRINT ###############################################
       
   179 
       
   180 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE
       
   181