sysstatemgmt/systemstatemgr/test/tcmn/scripts/ssmatest_cmn_defertooearly.script
changeset 76 cb32bcc88bad
equal deleted inserted replaced
73:d38941471f1c 76:cb32bcc88bad
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description: Testing for Transition Monitoring feature implemented as part of Staged Shutdown REQ for AppCentric architecture. This feature allows clients to defer acknowledgement to state change notifications during shutdown.
       
    14 //
       
    15 
       
    16 //!		@file			
       
    17 //!		@SYMTestSuiteName		DVS-SSMA-CMN-0012
       
    18 //!		@SYMScriptTestEnvironment   	Details as in below:-
       
    19 //!								1. testexecute framework(TEF3.0).
       
    20 //!								For the testing purpose define macro TEST_SSM_GRACEFUL_SHUTDOWN(For power off request feature) and SYMBIAN_INCLUDE_APP_CENTRIC(for transition monitoring feature).
       
    21 //!		@SYMScriptPurpose		Test if deferring before receiving a state change notification returns with appropriate error.
       
    22 //!		@SYMScriptCreationDate		18/08/2010
       
    23 
       
    24 LOAD_SUITE  tcmn_transitionmonitor
       
    25 
       
    26 START_TESTCASE			DVS-SSMA-CMN-0012
       
    27 //! @SYMTestCaseID		DVS-SSMA-CMN-0012
       
    28 //! @SYMPREQ 			SUB 405-5490
       
    29 //! @SYMTestType		CIT
       
    30 //! @SYMTestPriority		Critical
       
    31 //! @SYMTestStatus 		Implemented
       
    32 //! @SYMTestCaseDesc		Test the behaviour of a server which defers acknowledgement to shutdown state change even before the state has changed
       
    33 //! @SYMTestActions		1.Create a thread and connect to the server with a domain Id
       
    34 //!				2.Defer acknowledgement to shutdown state change even before the state change notification is received
       
    35 //! @SYMTestExpectedResults 	The call to defer returns with KErrNotReady
       
    36 		
       
    37 START_TEST_BLOCK  100	tcmn_transitionmonitor	z:\ssmatest\ssmatest_cmn_transitionmonitor.ini
       
    38 	CREATE_OBJECT	RSsmStateAwareSession1  RSsmStateAwareSession1	
       
    39 	COMMAND		RSsmStateAwareSession1	NewL
       
    40 	COMMAND		RSsmStateAwareSession1	Connect	 		Domain
       
    41 	COMMAND		RSsmStateAwareSession1	ReadIniData		DeferTooEarly
       
    42 	COMMAND		!AsyncError=-18		RSsmStateAwareSession1	DeferAcknowledgement
       
    43 	OUTSTANDING
       
    44 	COMMAND		RSsmStateAwareSession1	Close
       
    45 	COMMAND		RSsmStateAwareSession1	~
       
    46 END_TEST_BLOCK	
       
    47 END_TESTCASE			DVS-SSMA-CMN-0012