|
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 CM-DRM-CIT-0003-HP |
|
18 //! @SYMTestType CIT |
|
19 //! @SYMTestPriority High |
|
20 //! @SYMPREQ 776, 778 |
|
21 //! @SYMTestCaseDesc |
|
22 //! Full successful download of a MIME multipart IMAP message containing |
|
23 //! multiple objects where more than one is a DRM object |
|
24 //! @SYMTestActions : |
|
25 //! 1. Send email message using SMTP |
|
26 //! 2. Download the email message to local Inbox |
|
27 //! 3. Verify receipt was added to message body |
|
28 //! 4. Verify that message meta data written to file by test agent is correct |
|
29 //! 5. Verify message store integrity |
|
30 //! @SYMTestExpectedResults : |
|
31 //! 1. A DRM receipt attachment shall have been added to message |
|
32 //! 2. Meta data file was written and content is correct |
|
33 //! 3. Message store was successfully traversed, all entries correct and accessible |
|
34 // ------------------------------------------ |
|
35 // Component Under Test: |
|
36 // CAF Email enhancement |
|
37 // ------------------------------------------ |
|
38 // API function under test: |
|
39 // CImImap4Session |
|
40 // ------------------------------------------ |
|
41 // Requirement/Use Case/Functional Spec: |
|
42 // SGL.GT0231.xxx CAF Email Enhancement Design Document (2.3.4) |
|
43 // ------------------------------------------ |
|
44 // Polarity: |
|
45 // Positive |
|
46 // ------------------------------------------ |
|
47 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability): |
|
48 // Unit |
|
49 // ------------------------------------------ |
|
50 // Expected Panic ID (if a panic test, only for non-scripted test cases): |
|
51 // N/A |
|
52 // ------------------------------------------ |
|
53 // Interface Dependencies (does it require connection, which subsystems does it require): |
|
54 // Requires connection to Messaging Server |
|
55 // ------------------------------------------ |
|
56 // Importance (critical, high, or low): |
|
57 // High |
|
58 // ------------------------------------------ |
|
59 // Execution Time (fast, medium, or slow): |
|
60 // Medium |
|
61 // ------------------------------------------ |
|
62 // Pre-condition description: |
|
63 // 1. Email body with DRM content available in a text file |
|
64 // 2. Connection to test mail servers on closedtest.intra |
|
65 // ------------------------------------------ |
|
66 // Reference to a review document: |
|
67 // SGL.GT0231.205 Secure Handling of DRM Messages Test Specification |
|
68 // ------------------------------------------ |
|
69 // Full pathname of an epoc.ini (if there are special epoc.ini requirements) |
|
70 // N/A |
|
71 // ------------------------------------------ |
|
72 // Any CommDb restrictions: |
|
73 // WinTap CommDb |
|
74 // ------------------------------------------ |
|
75 // Build Requirements (e.g., no watchers): |
|
76 // N/A |
|
77 // ------------------------------------------ |
|
78 // Hardware Requirements |
|
79 // H2 Board |
|
80 // ------------------------------------------ |
|
81 |
|
82 PRINT Running Test Case CM-DRM-CIT-0003-HP... |
|
83 |
|
84 // First clean up remote inbox and reset message store |
|
85 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\DrmHandling\Drm_IMAP4_CleanInbox.script |
|
86 |
|
87 // Send the email |
|
88 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\DrmHandling\Drm_SendMultipartTwoDrmEmail.script |
|
89 |
|
90 // download IMAP message |
|
91 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\DrmHandling\Drm_IMAP4_DownloadDrmMessage.script |
|
92 |
|
93 // check the DRM handling |
|
94 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\DrmHandling\Drm_CheckDrmHandling_2.script |
|
95 |
|
96 PRINT Test Case CM-DRM-CIT-0003-HP Finished |