diff -r 000000000000 -r 8e480a14352b messagingfw/msgtestfw/TestCases/ScriptedTestCases/ScheduleSendScripts/preq694SchSend1.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/msgtestfw/TestCases/ScriptedTestCases/ScheduleSendScripts/preq694SchSend1.script Mon Jan 18 20:36:02 2010 +0200 @@ -0,0 +1,56 @@ +// +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// +//! @TestCaseId PREQ694-Int-1 +//! @TestCaseDesc Sending an SMS message when sending conditions are met. +//! It first sets the schedule send settings from the configuration file, and sets the sending conditions as met. +//! It then creates an SMS message and schedules it for sending. Finally, it waits for the message to be marked as "sent". + +RUN_UTILS DeleteFile c:\messaging.db +LOAD_SUITE MessagingTestServer -SharedData + +RUN_UTILS CopyFile Z:\testdata\scripts\config.txt C:\config.txt +RUN_UTILS MakeReadWrite C:\config.txt + +PREFIX RUN_TEST_STEP 1000 MessagingTestServer +BEGIN_TEST_CASE +SETUP_TEST_CASE + InitializeSimTsy z:\testdata\scripts\preq694SchSend.ini Init1 + StartWatchers z:\testdata\scripts\preq694SchSend.ini StartWatchers + Sleep z:\testdata\scripts\preq694SchSend.ini Sleep10 + GetBaseConstants z:\testdata\scripts\preq694SchSend.ini GetBaseConstants + SetDefaultSmsSettings z:\testdata\scripts\preq694SchSend.ini SetSettingsFile + SetDefaultConfiguration z:\testdata\scripts\preq694SchSend.ini SetSmsMessageConfigFile + CreateSession z:\testdata\scripts\preq694SchSend.ini CreateSession + CreateRegistry z:\testdata\scripts\preq694SchSend.ini CreateRegistry + CreateSmsService z:\testdata\scripts\preq694SchSend.ini CreateSmsService + SetSmsServiceSettings z:\testdata\scripts\preq694SchSend.ini SetSmsSettings + SetSchSendSettings z:\testdata\scripts\preq694SchSend.ini SetSchSendSettings + CreateMtm z:\testdata\scripts\preq694SchSend.ini CreateMtm +EXECUTE_TEST_CASE + DeleteChildren z:\testdata\scripts\preq694SchSend.ini EmptyOutbox + DeleteChildren z:\testdata\scripts\preq694SchSend.ini EmptySent + GetSmsConstants z:\testdata\scripts\preq694SchSend.ini GetSmsConstants + CreateSmsMessage z:\testdata\scripts\preq694SchSend.ini CreateMessage + CreateSelection z:\testdata\scripts\preq694SchSend.ini CreateSelection + GetDefaultAppendToSelection z:\testdata\scripts\preq694SchSend.ini AppendToSelection + SetNetworkRegistrationStatus z:\testdata\scripts\preq694SchSend.ini NetAvailable + SetSignalStrength z:\testdata\scripts\preq694SchSend.ini NetStrengthHigh + Sleep z:\testdata\scripts\preq694SchSend.ini Sleep3 + ExecuteMtmCommand z:\testdata\scripts\preq694SchSend.ini ScheduleMessage + CheckMessageSendingState z:\testdata\scripts\preq694SchSend.ini MsgSent + UnloadPhoneModule z:\testdata\scripts\preq694SchSend.ini UnloadPhoneModule +CHECK_POSTCONDITIONS +END_TEST_CASE