|
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 //! @file |
|
17 //! @SYMTestCaseID MSG-SMS-ALLOWONCE-0001 |
|
18 //! @SYMTestCaseDesc For SMS send request message should be sent properly if user |
|
19 //! selects allow once option against the user prompt service. |
|
20 //! |
|
21 //! @SYMTestType CIT |
|
22 //! @SYMTestPriority High |
|
23 //! @SYMTestStatus Implemented |
|
24 //! |
|
25 //! @SYMPREQ PREQ1678 |
|
26 //! @SYMREQ REQ7008 |
|
27 //! |
|
28 //! @SYMTestActions 1. Cleanup the message store. |
|
29 //! 2. Create the SMS service with proper settings. |
|
30 //! 3. Create an SMS message and send it to the intended recipient. Set allow once as the user response. |
|
31 //! 4. Check if the children counts on local outbox is zero and sent item is one. |
|
32 //! |
|
33 //! @SYMTestExpectedResults Message should be sent properly and children count on sent item should be one. |
|
34 //! |
|
35 //! @SYMAuthor Pramod Das |
|
36 |
|
37 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\upssupport\upssupport_setup.script |
|
38 RUN_UTILS DeleteFile c:\messaging.db |
|
39 LOAD_SUITE MessagingTestServer -SharedData |
|
40 |
|
41 RUN_UTILS CopyFile c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\upssupportconfig.txt C:\config.txt |
|
42 RUN_UTILS MakeReadWrite C:\config.txt |
|
43 RUN_PROGRAM 100 SetUserPromptResponse Yes |
|
44 |
|
45 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE |
|
46 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE |
|
47 |
|
48 RUN_TEST_STEP 100 MessagingTestServer InitializeSimTsy c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini Init1 |
|
49 RUN_TEST_STEP 100 MessagingTestServer StartWatchers c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini StartWatchers |
|
50 RUN_TEST_STEP 100 MessagingTestServer Sleep c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini Sleep10 |
|
51 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini GetBaseConstants |
|
52 RUN_TEST_STEP 100 MessagingTestServer SetDefaultSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini SetSettingsFile |
|
53 RUN_TEST_STEP 100 MessagingTestServer SetDefaultConfiguration c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini SetSmsMessageConfigFile |
|
54 RUN_TEST_STEP 100 MessagingTestServer CreateSession c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CreateSession |
|
55 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CreateRegistry |
|
56 RUN_TEST_STEP 100 MessagingTestServer CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CreateSmsService |
|
57 RUN_TEST_STEP 100 MessagingTestServer SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini SetSmsSettings |
|
58 RUN_TEST_STEP 100 MessagingTestServer SetSchSendSettings c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini SetSchSendSettings |
|
59 RUN_TEST_STEP 100 MessagingTestServer CreateMtm c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CreateMtm |
|
60 |
|
61 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE |
|
62 |
|
63 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini EmptyOutbox |
|
64 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini EmptySent |
|
65 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini EmptyInbox |
|
66 |
|
67 RUN_TEST_STEP 100 MessagingTestServer GetSmsConstants c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini GetSmsConstants |
|
68 RUN_TEST_STEP 100 MessagingTestServer CreateSmsMessage c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CreateMessage |
|
69 RUN_TEST_STEP 100 MessagingTestServer CreateSelection c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CreateSelection |
|
70 RUN_TEST_STEP 100 MessagingTestServer GetDefaultAppendToSelection c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini AppendToSelection |
|
71 RUN_TEST_STEP 100 MessagingTestServer SetNetworkRegistrationStatus c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini NetAvailable |
|
72 RUN_TEST_STEP 100 MessagingTestServer SetSignalStrength c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini NetStrengthHigh |
|
73 RUN_TEST_STEP 100 MessagingTestServer Sleep c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini Sleep3 |
|
74 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CheckChildrenCountOutbox10 |
|
75 |
|
76 RUN_TEST_STEP 100 MessagingTestServer ExecuteMtmCommand c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini ScheduleMessage |
|
77 // Send the SMS. |
|
78 RUN_TEST_STEP 100 MessagingTestServer CheckMessageSendingState c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini MsgSent1 |
|
79 // Ensure that the message is sent correctly. |
|
80 |
|
81 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS |
|
82 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CheckChildrenCountOutbox11 |
|
83 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini CheckChildrenCountSent10 |
|
84 RUN_TEST_STEP 100 MessagingTestServer UnloadPhoneModule c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sms-upssupport.ini UnloadPhoneModule |
|
85 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE |
|
86 |
|
87 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\upssupport\restore_setup.script |