messagingfw/msgtestfw/TestCases/ScriptedTestCases/AutoSend/LaunchAutoSendAllCap.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 // Test Case Name:
       
    17 //	 LaunchAutoSendAllCap.script
       
    18 // ------------------------------------------
       
    19 // Component Under Test:
       
    20 //	AutoSend
       
    21 // ------------------------------------------
       
    22 // API function under test:
       
    23 //	
       
    24 //	
       
    25 // ------------------------------------------
       
    26 // Requirement/Use Case/Functional Spec:
       
    27 //	 
       
    28 // ------------------------------------------
       
    29 // Polarity:
       
    30 //	
       
    31 // ------------------------------------------
       
    32 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability):
       
    33 //	Integration
       
    34 // ------------------------------------------
       
    35 // Expected Panic ID (if a panic test, only for non-scripted test cases):
       
    36 //	n/a
       
    37 // ------------------------------------------
       
    38 // Interface Dependencies (does it require connection, which subsystems does it require):
       
    39 // 	Requires connection to Messaging Server
       
    40 // ------------------------------------------
       
    41 // Importance (critical, high, or low):
       
    42 //	High
       
    43 // ------------------------------------------
       
    44 // Execution Time (fast, medium, or slow):
       
    45 //	medium
       
    46 // ------------------------------------------
       
    47 // Pre-condition description:
       
    48 //	1.  Set the All - TCB capabilities to the LauncAutoSend.exe using SetCap
       
    49 //	2.  Creatr a session with the Message Server
       
    50 //	3.  Create a SMTP service Id 
       
    51 //
       
    52 // ------------------------------------------
       
    53 // Action Description:
       
    54 // 
       
    55 //	1.	Launch the process LaunchAutoSend.exe
       
    56 //		
       
    57 //
       
    58 // ------------------------------------------
       
    59 // Post-condition description (i.e., expected outcome):
       
    60 //
       
    61 // ------------------------------------------
       
    62 // Reference to a review document:
       
    63 //
       
    64 // ------------------------------------------
       
    65 // Full pathname of an epoc.ini (if there are special epoc.ini requirements)
       
    66 // 	For emulator, an epoc.ini that creates an emulated external drive (drive letter 
       
    67 //	between D: and Y:) is required. Optionally, an environment variable can be defined.
       
    68 // ------------------------------------------
       
    69 // Any CommDb restrictions:
       
    70 //	None
       
    71 // ------------------------------------------
       
    72 // Build Requirements (e.g., no watchers):
       
    73 //	None
       
    74 // ------------------------------------------
       
    75 // Hardware Requirements
       
    76 //	None
       
    77 // ------------------------------------------
       
    78 
       
    79 // Use Setcap to change capabilities of LaunchAutoSend.exe
       
    80 RUN_PROGRAM -1 setcap LaunchAutoSend.exe 0003FFFE LaunchAutoSend_New.exe
       
    81 
       
    82 RUN_UTILS DeleteFile c:\messaging.db
       
    83 LOAD_SUITE MessagingTestServer -SharedData
       
    84 
       
    85 PREFIX RUN_TEST_STEP 1000 MessagingTestServer
       
    86 BEGIN_TEST_CASE
       
    87 SETUP_TEST_CASE
       
    88 CreateSession				c:\msgtest\TestFramework\ScriptedTestCases\AutoSend\LaunchAutoSendAllCap.ini	CreateSession
       
    89 CreatePop3Service			c:\msgtest\TestFramework\ScriptedTestCases\AutoSend\LaunchAutoSendAllCap.ini	CreatePop3Service
       
    90 CreateSmtpService			c:\msgtest\TestFramework\ScriptedTestCases\AutoSend\LaunchAutoSendAllCap.ini 	CreateSmtpService
       
    91 EXECUTE_TEST_CASE
       
    92 LaunchAutoSend				c:\msgtest\TestFramework\ScriptedTestCases\AutoSend\LaunchAutoSendAllCap.ini 	LaunchAutoSend
       
    93 CHECK_POSTCONDITIONS
       
    94 END_TEST_CASE