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