messagingfw/msgtestfw/TestCases/ScriptedTestCases/AttachmentAPIScripts/14-SMTP_GetAttachmentInfo.SCRIPT
changeset 22 bde600d88860
parent 0 8e480a14352b
equal deleted inserted replaced
21:08008ce8a6df 22:bde600d88860
       
     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 // Test Case Name:
       
    19 //	Retrieve the information about the selected attachment associated with message
       
    20 // ------------------------------------------
       
    21 // Component Under Test:
       
    22 //	Attachment API
       
    23 // ------------------------------------------
       
    24 // API function under test:
       
    25 //	MMsvAttachmentManager::GetAttachmentInfoL
       
    26 // ------------------------------------------
       
    27 // Requirement/Use Case/Functional Spec:
       
    28 //	SGL.GT0216.051 (2.1, 2.3.1, 2.3.3, 2.3.4)
       
    29 // ------------------------------------------
       
    30 // Polarity:
       
    31 //	Positive
       
    32 // ------------------------------------------
       
    33 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability):
       
    34 //	Integration
       
    35 // ------------------------------------------
       
    36 // Expected Panic ID (if a panic test, only for non-scripted test cases):
       
    37 //	N/A
       
    38 // ------------------------------------------
       
    39 // Interface Dependencies (does it require connection, which subsystems does it require):
       
    40 // 	Requires connection to Messaging Server
       
    41 // ------------------------------------------
       
    42 // Importance (critical, high, or low):
       
    43 //	High
       
    44 // ------------------------------------------
       
    45 // Execution Time (fast, medium, or slow):
       
    46 //	Medium
       
    47 // ------------------------------------------
       
    48 // Pre-condition description:
       
    49 //	1. New SMTP message with 3 attachments, from private area, public area and one linked
       
    50 //	attachment
       
    51 //	2. Read/Write access to message store
       
    52 // ------------------------------------------
       
    53 // Action Description:
       
    54 //	1. Get the attachment information using valid index value
       
    55 //	2 Verify the obtained attachment information with the information provided
       
    56 //	while adding the attachments
       
    57 // ------------------------------------------
       
    58 // Post-condition description (i.e., expected outcome):
       
    59 //	The attachment information is obtained and verified successfully
       
    60 // ------------------------------------------
       
    61 // Reference to a review document:
       
    62 //	AttachmentAPI_TestSpecificationDocument_Ver1.0.doc
       
    63 // ------------------------------------------
       
    64 // Full pathname of an epoc.ini (if there are special epoc.ini requirements)
       
    65 // 	For emulator, an epoc.ini that creates an emulated external drive (drive letter 
       
    66 //	between D: and Y:) is required. Optionally, an environment variable can be defined.
       
    67 // ------------------------------------------
       
    68 // Any CommDb restrictions:
       
    69 //	NTRAS CommDb
       
    70 // ------------------------------------------
       
    71 // Build Requirements (e.g., no watchers):
       
    72 //	N/A
       
    73 // ------------------------------------------
       
    74 // Hardware Requirements
       
    75 //	H2 Board
       
    76 // ------------------------------------------
       
    77 
       
    78 RUN_UTILS DeleteFile c:\messaging.db
       
    79 LOAD_SUITE MessagingTestServer -SharedData
       
    80 
       
    81 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE
       
    82 
       
    83 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE
       
    84 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants				c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI GetConstants
       
    85 RUN_TEST_STEP 100 MessagingTestServer GetSMTPMTMUId				c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpMTMUId
       
    86 RUN_TEST_STEP 100 MessagingTestServer CreateSession				c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SessionId
       
    87 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry				c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI CreateRegistry
       
    88 RUN_TEST_STEP 100 MessagingTestServer CreateService				c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI CreateSmtpService
       
    89 RUN_TEST_STEP 100 MessagingTestServer SetDefaultConfiguration			c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SetDefaultConfigurationEMailFile
       
    90 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpMessageFromEmailFile		c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI CreateSmtpMessageFromEmailFile
       
    91 RUN_TEST_STEP 100 MessagingTestServer SmtpAddFileAttachmentByHandleSync		c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpAddFileAttachmentByHandle
       
    92 RUN_TEST_STEP 100 MessagingTestServer SmtpAddFileAttachmentByPath		c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpAddFileAttachmentByPath
       
    93 RUN_TEST_STEP 100 MessagingTestServer SmtpAddLinkedAttachment			c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpAddLinkedAttachment
       
    94 RUN_TEST_STEP 100 MessagingTestServer SmtpCountAttachments			c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpCountAttachments
       
    95 
       
    96 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE
       
    97 RUN_TEST_STEP 100 MessagingTestServer SmtpGetAttachmentInfoByIndex		c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpGetAttachmentInfoByIndex0
       
    98 RUN_TEST_STEP 100 MessagingTestServer SmtpGetAttachmentInfoByIndex		c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpGetAttachmentInfoByIndex1
       
    99 RUN_TEST_STEP 100 MessagingTestServer SmtpGetAttachmentInfoByIndex		c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI SmtpGetAttachmentInfoByIndex2
       
   100 
       
   101 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS
       
   102 RUN_TEST_STEP 100 MessagingTestServer VerifyAttachmentInfo			c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI VerifyAttachmentInfo0
       
   103 RUN_TEST_STEP 100 MessagingTestServer VerifyAttachmentInfo			c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI VerifyAttachmentInfo1
       
   104 RUN_TEST_STEP 100 MessagingTestServer VerifyAttachmentInfo			c:\msgtest\TestFramework\ScriptedTestCases\AttachmentAPIScripts\14-SMTP_GetAttachmentInfo.INI VerifyAttachmentInfo2
       
   105 
       
   106 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE