|
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 |
|
17 |
|
18 //! @SYMTestCaseID CM-SENDAS-BT-CIT-0054-HP |
|
19 //! @SYMTestCaseDesc Negative Test - Add a link for an invalid text file attachment |
|
20 //! @SYMTestStatus Implemented |
|
21 //! @SYMTestPriority High |
|
22 //! @SYMTestActions Get base constants & BT MTM Uid |
|
23 //! Create a session |
|
24 //! Reset the Message store for cleanup |
|
25 //! Create Registry & Service |
|
26 //! Connect to SendAs2 server |
|
27 //! Create a BT Message |
|
28 //! Add a recipitent |
|
29 //! Attach a invalid text file |
|
30 //! Save and close the server |
|
31 //! Disconnect the server |
|
32 //! |
|
33 //! @SYMTestExpectedResults error code: -1 (The Attachment should not be added to Message with proper information) |
|
34 //! @SYMTestType CIT |
|
35 |
|
36 |
|
37 RUN_UTILS DeleteFile c:\messaging.db |
|
38 LOAD_SUITE MessagingTestServer -SharedData |
|
39 |
|
40 PREFIX RUN_TEST_STEP 1000 MessagingTestServer |
|
41 BEGIN_TEST_CASE |
|
42 SETUP_TEST_CASE |
|
43 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini GetBaseConstants |
|
44 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CreateSession |
|
45 ResetMessageStore c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini ResetMessageStore |
|
46 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini ChkChildrenCountDraft0 |
|
47 CreateRegistry c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CreateRegistry |
|
48 GetBTMTMUId c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini GetBtMtmUid |
|
49 CreateService c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CreateBtService |
|
50 EXECUTE_TEST_CASE |
|
51 ConnectSendAsServer c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini ConnectSendAsServer |
|
52 SendAsCreateMessageofType c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CreateMessageofType |
|
53 SendAsAddRecipient c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini SendAsAddRecipient |
|
54 SendAsAddLinkedAttachment c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini AddLinkedAttachment |
|
55 SendAsSaveMessageAndClose c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CloseMessage |
|
56 CloseSendAsServerConnection c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CloseSvrConnection |
|
57 CHECK_POSTCONDITIONS |
|
58 CheckChildrenCount c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini ChkChildrenCountDraft1 |
|
59 CheckErrorCode c:\msgtest\TestFramework\ScriptedTestCases\SendAs\MSG-SENDAS-BT-CIT-0054-AddInvalidLinkedAttachment.ini CheckErrorCode |
|
60 END_TEST_CASE |