systemhealthmanagement/systemhealthmgr/test/trestartsys/scripts/shmatest_restartsyswithmode.script
changeset 0 4e1aa6a622a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/systemhealthmanagement/systemhealthmgr/test/trestartsys/scripts/shmatest_restartsyswithmode.script	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,34 @@
+// Copyright (c) 2006-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:
+//
+
+LOAD_SUITE trestartsys_server
+
+START_TESTCASE 			DEVSRVS-SHMA-RESTARTSYS-0002
+//! @SYMTestCaseID 		DEVSRVS-SHMA-RESTARTSYS-0002
+//! @SYMTestCaseDesc 		Test restarting system in a specified mode.
+//! @SYMPREQ			PREQ1089 PREQ1871
+//! @SYMREQ			REQ6597 REQ9457
+//! @SYMTestStatus		Implemented
+//! @SYMTestPriority		Critical
+//! @SYMTestActions		1. Registers itself for power client power-off notifications using CSaveNotifier. 
+//! 				2. Calls the restart API with a specified test mode to restart the system. 
+//! 				3. Start a scheduler and wait for power-off notification.
+//! 				4. Logs the time the restart notifications arrives to KDataFile
+//! 				5. Let the restart take place.
+//! 				6. After restart - Assert all expectations and write to the Tef logfile.
+//! @SYMTestExpectedResults	Pass
+//! @SYMDevelopedForRelease	Oghma
+RUN_TEST_STEP 100 trestartsys_server RestartSysWithMode
+END_TESTCASE 			DEVSRVS-SHMA-RESTARTSYS-0002