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