|
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-SMTP-ALLOWONCE-0003 |
|
18 //! @SYMTestCaseDesc For sending SMTP 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 //! |
|
22 //! |
|
23 //! @SYMTestType CIT |
|
24 //! @SYMTestPriority High |
|
25 //! @SYMTestStatus Implemented |
|
26 //! |
|
27 //! @SYMPREQ PREQ1678 |
|
28 //! @SYMREQ REQ7007 |
|
29 //! |
|
30 //! @SYMTestActions 1. Clean the message store. |
|
31 //! 2. Create an IMAP account. |
|
32 //! 3. Connect to the SendAs server and create a SendAsmessage against the SMTP UID. |
|
33 //! 4. Set user response to Allow Once against the user prompt for SendAs server. |
|
34 //! 5. Send the message using SendAs server and then close the server connection. |
|
35 //! 6. Check if only one message is sent. |
|
36 //! @SYMTestExpectedResults Children count on sent item should be one. |
|
37 //! |
|
38 //! @SYMAuthor Pramod Das |
|
39 |
|
40 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\upssupport\upssupport_setup.script |
|
41 |
|
42 RUN_UTILS DeleteFile c:\messaging.db |
|
43 LOAD_SUITE MessagingTestServer -SharedData |
|
44 RUN_PROGRAM 100 SetUserPromptResponse Yes |
|
45 |
|
46 PREFIX RUN_TEST_STEP 1000 MessagingTestServer |
|
47 BEGIN_TEST_CASE |
|
48 SETUP_TEST_CASE |
|
49 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini GetBaseConstants |
|
50 InitNtRas c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini InitNtRas |
|
51 GetSMTPMTMUId c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SMTPMTMUId |
|
52 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateSession |
|
53 ResetMessageStore c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini ResetMessageStore |
|
54 CreateImap4Service c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateImap4Service |
|
55 CreateSmtpService c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateSmtpService |
|
56 CreateRegistry c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateRegistry |
|
57 CreateSmtpMtm c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateSmtpMtm |
|
58 SetDefaultConfiguration c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SetDefaultConfiguration0 |
|
59 SetSmtpServiceParameters c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SetSmtpServiceParams |
|
60 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini ChkChildrenCountDraft0 |
|
61 CreateImap4Mtm c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateImap4Mtm |
|
62 SetDefaultConfiguration c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SetDefaultConfigurationIMAP |
|
63 SetImap4ServiceParameters c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SetImap4ServiceParameters |
|
64 EXECUTE_TEST_CASE |
|
65 ChangeDefaultSmtpService c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini ChangeDefaultSmtpService |
|
66 ConnectSendAsServer c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini ConnectSendAsServer |
|
67 SendAsCreateMessageofType c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CreateMessageofType |
|
68 SendAsAddLinkedAttachment c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SendAsAddLinkedAttachment |
|
69 SendAsSetSubject c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SendAsSetSubject |
|
70 SendAsAddRecipient c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SendAsAddRecipient |
|
71 SendAsSendMessage c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini SendAsSendMessage |
|
72 SendAsCloseMessage c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CloseMessage |
|
73 CloseSendAsServerConnection c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini CloseSvrConnection |
|
74 CHECK_POSTCONDITIONS |
|
75 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\UpsSupport\msg-sendas-smtp-allowonce-0003.ini ChkChildrenCountSent0 |
|
76 END_TEST_CASE |
|
77 REMOVE_PREFIX |
|
78 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\upssupport\restore_setup.script |