messagingfw/msgtestfw/TestCases/ScriptedTestCases/ScheduleSendScripts/preq694SchSend5a.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 //! @SYMTestCaseID PREQ694-Int-5a
       
    17 //! @SYMTestCaseDesc Sending an SMS message when sending conditions are temporarily met and then not met 
       
    18 //! (both condition variables not met) for a prolonged time.
       
    19 //! It first sets the schedule send settings from the configuration file, and sets the sending conditions as met.  It instructs 
       
    20 //! SIM TSY to fail the first send attempt.  Next, it creates an SMS message and schedules it for sending.  
       
    21 //! It waits for the message to be marked as Resend + Scheduled + PendingConditionsMet.  Then it sets the conditions as not met and waits until the message
       
    22 //! marked as Failed after it reaches the pending condition time out.
       
    23 
       
    24 RUN_UTILS DeleteFile c:\messaging.db
       
    25 LOAD_SUITE MessagingTestServer -SharedData
       
    26 
       
    27 RUN_UTILS CopyFile Z:\testdata\scripts\config.txt C:\config.txt
       
    28 RUN_UTILS MakeReadWrite C:\config.txt
       
    29 
       
    30 PREFIX RUN_TEST_STEP 1000 MessagingTestServer
       
    31 BEGIN_TEST_CASE
       
    32 SETUP_TEST_CASE
       
    33 	InitializeSimTsy z:\testdata\scripts\preq694SchSend.ini Init2
       
    34 	StartWatchers z:\testdata\scripts\preq694SchSend.ini StartWatchers
       
    35 	Sleep z:\testdata\scripts\preq694SchSend.ini Sleep10
       
    36 	GetBaseConstants z:\testdata\scripts\preq694SchSend.ini GetBaseConstants
       
    37 	SetDefaultSmsSettings z:\testdata\scripts\preq694SchSend.ini SetSettingsFile
       
    38 	SetDefaultConfiguration z:\testdata\scripts\preq694SchSend.ini SetSmsMessageConfigFile
       
    39 	CreateSession z:\testdata\scripts\preq694SchSend.ini CreateSession
       
    40 	CreateRegistry z:\testdata\scripts\preq694SchSend.ini CreateRegistry
       
    41 	CreateSmsService z:\testdata\scripts\preq694SchSend.ini CreateSmsService
       
    42 	SetSmsServiceSettings z:\testdata\scripts\preq694SchSend.ini SetSmsSettings
       
    43 	SetSchSendSettings z:\testdata\scripts\preq694SchSend.ini SetSchSendSettings
       
    44 	CreateMtm z:\testdata\scripts\preq694SchSend.ini CreateMtm
       
    45 EXECUTE_TEST_CASE
       
    46 	DeleteChildren z:\testdata\scripts\preq694SchSend.ini EmptyOutbox
       
    47 	DeleteChildren z:\testdata\scripts\preq694SchSend.ini EmptySent
       
    48 	GetSmsConstants z:\testdata\scripts\preq694SchSend.ini GetSmsConstants
       
    49 	CreateSmsMessage z:\testdata\scripts\preq694SchSend.ini CreateMessage
       
    50 	CreateSelection z:\testdata\scripts\preq694SchSend.ini CreateSelection
       
    51 	GetDefaultAppendToSelection z:\testdata\scripts\preq694SchSend.ini AppendToSelection
       
    52 	SetNetworkRegistrationStatus z:\testdata\scripts\preq694SchSend.ini NetAvailable
       
    53 	SetSignalStrength z:\testdata\scripts\preq694SchSend.ini NetStrengthHigh
       
    54 	Sleep z:\testdata\scripts\preq694SchSend.ini Sleep3
       
    55 	ExecuteMtmCommand z:\testdata\scripts\preq694SchSend.ini ScheduleMessage
       
    56 	CheckMessageSendingState z:\testdata\scripts\preq694SchSend.ini MsgScheduleForResend
       
    57 	SetNetworkRegistrationStatus z:\testdata\scripts\preq694SchSend.ini NetUnavailable
       
    58 	SetSignalStrength z:\testdata\scripts\preq694SchSend.ini NetStrengthNone
       
    59 	CheckMessageSendingState z:\testdata\scripts\preq694SchSend.ini MsgScheduleForResend
       
    60 	UnloadPhoneModule z:\testdata\scripts\preq694SchSend.ini UnloadPhoneModule
       
    61 CHECK_POSTCONDITIONS
       
    62 END_TEST_CASE