|
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-4a |
|
17 //! @TestCaseDesc Sending an SMS message when sending conditions are not met (both condition variables not met) for a prolonged time. |
|
18 //! It first sets the schedule send settings from the configuration file, and sets the sending conditions as not met (only |
|
19 //! registration status condition is met). 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 the message |
|
21 //! marked as Failed after it reaches the pending condition time out. |
|
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 Init1 |
|
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 NetStrengthNone |
|
53 Sleep z:\testdata\scripts\preq694SchSend.ini Sleep3 |
|
54 ExecuteMtmCommand z:\testdata\scripts\preq694SchSend.ini ScheduleMessage |
|
55 CheckMessageSendingState z:\testdata\scripts\preq694SchSend.ini MsgScheduleForPendingCondition |
|
56 CheckMessageSendingState z:\testdata\scripts\preq694SchSend.ini MsgScheduleForPendingCondition |
|
57 UnloadPhoneModule z:\testdata\scripts\preq694SchSend.ini UnloadPhoneModule |
|
58 CHECK_POSTCONDITIONS |
|
59 END_TEST_CASE |