systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_startupregeroswmfailstart.script
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:34:26 +0100
branchRCL_3
changeset 22 8cb079868133
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

//
// Copyright (c) 2009 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:
//
//
//! @file
//! @SYMTestSuiteName APPFWK-SYSMON
// 

//
LOAD_SERVER tsysmon_server
//

//! @SYMTestCaseID 		DEVSRVS-SHMA-SYSMON-0048
//! @SYMPREQ 			PREQ1089 PREQ1871
//! @SYMREQ			REQ6604 REQ9457
//! @SYMTestType		CIT
//! @SYMTestPriority		Critical
//! @SYMTestCaseDependencies	appfwk-sysmon-0048_<emulator|hardware>0.rsc must be used in place of SSCForStartupMode0.rsc
//! appfwk-sysmon-0048_<emulator|hardware>1.rsc must be used in place of SSCForStartupMode1.rsc
//! @SYMTestCaseDesc	Use the new startup configuration format to register for process monitoring, with 'ERestartOSWithMode' policy, have the process fail during startup.
//! @SYMTestActions		Create a SSC file which will contain an item for a test application with EStartupProcess2, EWaitForStart, retry count = 0, ERestartOSWithMode, monitor = 1 and a particular mode. The test application will be in the Critical Static section.
//! The test application records a count in a file to check whether it is being loaded first time or second time.
//! First time SysStart loads the test application; it should not rendezvous successfully, causing the system to restart in the specified mode. 
//! After restarting when SysStart loads the test process again it should succeed.
//! A test-execute test should check this count value and the current mode.
//! @SYMTestExpectedResults 	The count value should be 2, startup mode should be the one requested.
//
START_TESTCASE DEVSRVS-SHMA-SYSMON-0048
RUN_TEST_STEP 100 tsysmon_server RunCountCheck z:\shmatest\configs\tsysmon.ini APPFWK-SYSMON-0048
END_TESTCASE DEVSRVS-SHMA-SYSMON-0048