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