systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_criticalnoretries.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 21:48:26 +0300
changeset 63 09d657f1ee00
permissions -rw-r--r--
Revision: 201035 Kit: 201035

// 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 CriticalNoRetries test 

LOAD_SUITE tsysmon_server

START_TESTCASE 			DEVSRVS-SHMA-SYSMON-0054
//! @SYMTestCaseID 		DEVSRVS-SHMA-SYSMON-0054
//! @SYMPREQ 			
//! @SYMREQ			
//! @SYMTestType		UT
//! @SYMTestPriority		Critical
//! @SYMTestStatus 		Implemented
//! @SYMTestCaseDesc		A process with ECriticalNoRetries recovery policy restarts the OS without retrying to restart the process
//! @SYMTestActions		1. Start a process 
//! 				2. Call RSysMonSession::Monitor() using startupproperties for this process with EWaitForStart, retry count = 1, 
//! 					   and ECriticalNoRetries
//! 				3. Kill the process
//! 				4. The test shouldn't try to start the process again. It should restart the OS without any retries - this 
//! 					   is the actual test
//! @SYMTestExpectedResults pass
RUN_TEST_STEP 100 tsysmon_server CriticalNoRetriesStep
END_TESTCASE 			DEVSRVS-SHMA-SYSMON-0054

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