systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_noprocmon.script
// Copyright (c) 2007-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:
//
PRINT Run NoProcMon test
LOAD_SUITE tsysmon_server
START_TESTCASE DEVSRVS-SHMA-SYSMON-0007
//! @SYMTestCaseID DEVSRVS-SHMA-SYSMON-0007
//! @SYMPREQ PREQ1089 PREQ1871
//! @SYMREQ REQ6594 REQ6598 REQ9457 REQ9266
//! @SYMTestType UT
//! @SYMTestPriority Critical
//! @SYMTestStatus Implemented
//! @SYMTestCaseDesc 1. SysMon can not monitor a process that is not yet started.
//! 2. Check that error/leave codes returned from sysmon are as anticipated.
//! @SYMTestActions 1. Create a RProcess and close the handle so that the RProcess contain a null handle.
//! a. Use this RProcess to call RSysMonSession::Monitor() using startproperties with all relevant parameters set.
//! b. Use this RProcess to call RSysMonSession::Monitor() using ssmstartproperties with all relevant parameters set.
//! 2.
//! a. Going to request process monitoring with invalid Command type
//! b. Requesting SysMon to monitor wrong process handle using ssmstartupproperties
//! c. Going to request process monitoring with NULL filename type
//! d. Going to request process monitoring with -ve retries for WaitForStart execution behaviour
//! e. Going to request process monitoring with -ve timeout for WaitForStart execution behaviour
//! f. Going to request process monitoring with invalid recoverymethod for WaitForStart execution behaviour
//! @SYMTestExpectedResults Pass
RUN_TEST_STEP 100 tsysmon_server NoProcMon
END_TESTCASE DEVSRVS-SHMA-SYSMON-0007