|
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-SENDAS-SMS-ALLOWONCE-0005 |
|
18 //! @SYMTestCaseDesc For sending SMS message using SendAs server, user should be prompted for his |
|
19 //! response and message should be sent for the Allow Once response of user. |
|
20 //! |
|
21 //! @SYMTestType CIT |
|
22 //! @SYMTestPriority High |
|
23 //! @SYMTestStatus Implemented |
|
24 //! |
|
25 //! @SYMPREQ PREQ1678 |
|
26 //! @SYMREQ REQ7007 |
|
27 //! |
|
28 //! @SYMTestActions 1. Clean the message store. |
|
29 //! 2. Create an SMS service. |
|
30 //! 3. Connect to the SendAs server and create a SendAsmessage against the SMS UID. |
|
31 //! 4. Set user response to Allow Once against the user prompt for SendAs server. |
|
32 //! 5. Send the message using SendAs server and then close the server connection. |
|
33 //! 6. Check if only one message is sent.Message should be sent properly and children count on sent item should be one. |
|
34 //! @SYMTestExpectedResults Children count on sent item should be one. |
|
35 //! |
|
36 //! @SYMAuthor Pramod Das |
|
37 |
|
38 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\upssupport\upssupport_setup.script |
|
39 RUN_UTILS DeleteFile c:\messaging.db |
|
40 LOAD_SUITE MessagingTestServer -SharedData |
|
41 |
|
42 RUN_UTILS CopyFile c:\msgtest\TestFramework\Configurations\SmsSettings\config.txt C:\config.txt |
|
43 RUN_UTILS MakeReadWrite C:\config.txt |
|
44 RUN_PROGRAM 100 SetUserPromptResponse Yes |
|
45 |
|
46 PREFIX RUN_TEST_STEP 1000 MessagingTestServer |
|
47 BEGIN_TEST_CASE |
|
48 SETUP_TEST_CASE |
|
49 InitializeSimTsy c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini InitializeSimTsy |
|
50 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini GetBaseConstants |
|
51 GetSmsConstants c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini GetSmsConstants |
|
52 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini CreateSession |
|
53 ResetMessageStore c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini ResetMessageStore |
|
54 SetDefaultSmsSettings c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SetDefaultSmsSettings |
|
55 SetDefaultConfiguration c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SetDefaultConfiguration |
|
56 SetDefaultConfiguration c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SetDefaultConfigurationBodyTxt |
|
57 CreateSmsService c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini CreateSmsService |
|
58 SetSmsServiceSettings c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SetSmsServiceSettings |
|
59 CreateRegistry c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini CreateRegistry |
|
60 CreateMtm c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini CreateSmsMtm |
|
61 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini ChkChildrenCountDraft0 |
|
62 EXECUTE_TEST_CASE |
|
63 ConnectSendAsServer c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini ConnectSendAsServer |
|
64 SendAsCreateMessageofType c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SendAsCreateMessageofType |
|
65 SendAsAddRecipient c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SendAsAddRecipient |
|
66 SendAsSetBodyText c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SendAsSetBodyText |
|
67 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini ChkChildrenCountDraft1 |
|
68 SetUserResponse c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SetUserResponse |
|
69 SendAsSendMessage c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini SendAsSendMessage |
|
70 SendAsCloseMessage c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini CloseMessage |
|
71 Sleep c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini Sleep |
|
72 CloseSendAsServerConnection c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini CloseSvrConnection |
|
73 CHECK_POSTCONDITIONS |
|
74 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini ChkChildrenCountSent0 |
|
75 UnloadPhoneModule c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-sms-allowonce-0005.ini UnloadPhoneModule |
|
76 END_TEST_CASE |
|
77 REMOVE_PREFIX |
|
78 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\upssupport\restore_setup.script |