systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_restartos.script
branchRCL_3
changeset 21 ccb4f6b3db21
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
       
     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:
       
    14 //
       
    15 
       
    16 PRINT Run RestartOS test 
       
    17 
       
    18 LOAD_SUITE tsysmon_server
       
    19 
       
    20 START_TESTCASE 			DEVSRVS-SHMA-SYSMON-0035
       
    21 //! @SYMTestCaseID 		DEVSRVS-SHMA-SYSMON-0035
       
    22 //! @SYMPREQ 			
       
    23 //! @SYMREQ			
       
    24 //! @SYMTestType		UT
       
    25 //! @SYMTestPriority		Critical
       
    26 //! @SYMTestStatus 		Implemented
       
    27 //! @SYMTestCaseDesc		A process with ERestartOS recovery policy restarts the OS after retrying the specified number of times
       
    28 //! @SYMTestActions		1. Start a process 
       
    29 //! 				2. Call RSysMonSession::Monitor() using startupproperties for this process with EWaitForStart, retry count = 1, 
       
    30 //! 					   and ERestartOS
       
    31 //! 				3. Kill the process
       
    32 //! 				4. Then the process restarts again and fails
       
    33 //! 				5. This will cause the OS to restart.
       
    34 //! @SYMTestExpectedResults pass
       
    35 RUN_TEST_STEP 100 tsysmon_server RestartOSStep
       
    36 END_TESTCASE 			DEVSRVS-SHMA-SYSMON-0035
       
    37 
       
    38 RUN_UTILS MakeReadWrite c:\testdata\runcounts\tsysmon_app_dontrendezvous.exe.txt
       
    39 RUN_UTILS DeleteFile c:\testdata\runcounts\tsysmon_app_dontrendezvous.exe.txt