|
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-1 |
|
17 //! @TestCaseDesc Sending an SMS message when sending conditions are met. |
|
18 //! It first sets the schedule send settings from the configuration file, and sets the sending conditions as met. |
|
19 //! It then creates an SMS message and schedules it for sending. Finally, it waits for the message to be marked as "sent". |
|
20 |
|
21 RUN_UTILS DeleteFile c:\messaging.db |
|
22 LOAD_SUITE MessagingTestServer -SharedData |
|
23 |
|
24 RUN_UTILS CopyFile Z:\testdata\scripts\config.txt C:\config.txt |
|
25 RUN_UTILS MakeReadWrite C:\config.txt |
|
26 |
|
27 PREFIX RUN_TEST_STEP 1000 MessagingTestServer |
|
28 BEGIN_TEST_CASE |
|
29 SETUP_TEST_CASE |
|
30 InitializeSimTsy z:\testdata\scripts\preq694SchSend.ini Init1 |
|
31 StartWatchers z:\testdata\scripts\preq694SchSend.ini StartWatchers |
|
32 Sleep z:\testdata\scripts\preq694SchSend.ini Sleep10 |
|
33 GetBaseConstants z:\testdata\scripts\preq694SchSend.ini GetBaseConstants |
|
34 SetDefaultSmsSettings z:\testdata\scripts\preq694SchSend.ini SetSettingsFile |
|
35 SetDefaultConfiguration z:\testdata\scripts\preq694SchSend.ini SetSmsMessageConfigFile |
|
36 CreateSession z:\testdata\scripts\preq694SchSend.ini CreateSession |
|
37 CreateRegistry z:\testdata\scripts\preq694SchSend.ini CreateRegistry |
|
38 CreateSmsService z:\testdata\scripts\preq694SchSend.ini CreateSmsService |
|
39 SetSmsServiceSettings z:\testdata\scripts\preq694SchSend.ini SetSmsSettings |
|
40 SetSchSendSettings z:\testdata\scripts\preq694SchSend.ini SetSchSendSettings |
|
41 CreateMtm z:\testdata\scripts\preq694SchSend.ini CreateMtm |
|
42 EXECUTE_TEST_CASE |
|
43 DeleteChildren z:\testdata\scripts\preq694SchSend.ini EmptyOutbox |
|
44 DeleteChildren z:\testdata\scripts\preq694SchSend.ini EmptySent |
|
45 GetSmsConstants z:\testdata\scripts\preq694SchSend.ini GetSmsConstants |
|
46 CreateSmsMessage z:\testdata\scripts\preq694SchSend.ini CreateMessage |
|
47 CreateSelection z:\testdata\scripts\preq694SchSend.ini CreateSelection |
|
48 GetDefaultAppendToSelection z:\testdata\scripts\preq694SchSend.ini AppendToSelection |
|
49 SetNetworkRegistrationStatus z:\testdata\scripts\preq694SchSend.ini NetAvailable |
|
50 SetSignalStrength z:\testdata\scripts\preq694SchSend.ini NetStrengthHigh |
|
51 Sleep z:\testdata\scripts\preq694SchSend.ini Sleep3 |
|
52 ExecuteMtmCommand z:\testdata\scripts\preq694SchSend.ini ScheduleMessage |
|
53 CheckMessageSendingState z:\testdata\scripts\preq694SchSend.ini MsgSent |
|
54 UnloadPhoneModule z:\testdata\scripts\preq694SchSend.ini UnloadPhoneModule |
|
55 CHECK_POSTCONDITIONS |
|
56 END_TEST_CASE |