systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_restartos.script
author hgs
Tue, 10 Aug 2010 14:46:45 +0300
changeset 52 d6b9e89d80a3
permissions -rw-r--r--
201031_02

// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

PRINT Run RestartOS test 

LOAD_SUITE tsysmon_server

START_TESTCASE 			DEVSRVS-SHMA-SYSMON-0035
//! @SYMTestCaseID 		DEVSRVS-SHMA-SYSMON-0035
//! @SYMPREQ 			
//! @SYMREQ			
//! @SYMTestType		UT
//! @SYMTestPriority		Critical
//! @SYMTestStatus 		Implemented
//! @SYMTestCaseDesc		A process with ERestartOS recovery policy restarts the OS after retrying the specified number of times
//! @SYMTestActions		1. Start a process 
//! 				2. Call RSysMonSession::Monitor() using startupproperties for this process with EWaitForStart, retry count = 1, 
//! 					   and ERestartOS
//! 				3. Kill the process
//! 				4. Then the process restarts again and fails
//! 				5. This will cause the OS to restart.
//! @SYMTestExpectedResults pass
RUN_TEST_STEP 100 tsysmon_server RestartOSStep
END_TESTCASE 			DEVSRVS-SHMA-SYSMON-0035

RUN_UTILS MakeReadWrite c:\testdata\runcounts\tsysmon_app_dontrendezvous.exe.txt
RUN_UTILS DeleteFile c:\testdata\runcounts\tsysmon_app_dontrendezvous.exe.txt