commonappservices/alarmservertest/TestMultipleAlarmsSuite/scripts/OOMTests.script
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //Script file for running OOM tests
       
    17 
       
    18 PRINT Running_OOM_Tests
       
    19 
       
    20 // Load the test
       
    21 LOAD_SUITE TestMultipleAlarmsServer -SharedData
       
    22 
       
    23 // Start alert server in multiple alarm notification mode
       
    24 RUN_TEST_STEP 	100 	TestMultipleAlarmsServer	TestStartAlertServerStep	Z:\TestData\Ini\TestMultipleAlarmsSuite.ini	start_multiple_8
       
    25 
       
    26 // Initial Cleanup
       
    27 RUN_TEST_STEP 	100	TestMultipleAlarmsServer	TestCleanupStep
       
    28 
       
    29 
       
    30 START_TESTCASE	PIM-APPSRV-ALMSRV-PREQ1118-I-012-LP-0001
       
    31 //! @file			OOMTests.script
       
    32 //! @SYMTestCaseID		PIM-APPSRV-ALMSRV-PREQ1118-I-012-LP-0001
       
    33 //! @SYMTestCaseDesc 		OOM tests
       
    34 //! @SYMFssID			
       
    35 //! @SYMTestStatus 		Implemented
       
    36 //! @SYMTestPriority 		Low
       
    37 //! @SYMTestActions 		1.	Start the Alarm Alert Server passing a large aMaxAlarms value 
       
    38 //!				2.	Set the heap to fail at varying rates
       
    39 //!				3.	Within an OOM loop:
       
    40 //!					a.	Create many calendar entries with alarms that have the same expiry time. 
       
    41 //!						Attach rich data to the alarms.
       
    42 //!					b.	Wait for the alarms to expire.
       
    43 //!					c.	Retrieve the associated data of the alarms
       
    44 //! @SYMTestExpectedResults 	If allocation fails, the functions leave with KErrNoMemory, and the system does not crash.
       
    45 //! @SYMTestType 		CIT
       
    46 //! @SYMTestCaseDependencies	The test can only run on a TEXTSHELL environment, as the Alert Server is loaded by the test code
       
    47 
       
    48 // Test OOM situation while creating armed entries
       
    49 RUN_TEST_STEP 	-1 	TestMultipleAlarmsServer	TestCreateEntriesOOMStep	Z:\TestData\Ini\TestMultipleAlarmsSuite.ini	oom_test
       
    50 
       
    51 // Wait till alarms created in previous test step expire.
       
    52 RUN_TEST_STEP 	100 	TestMultipleAlarmsServer	TestWaitStep			Z:\TestData\Ini\TestMultipleAlarmsSuite.ini	wait_1min
       
    53 
       
    54 // Test OOM situation while accessing the calendar entries and the alarm content
       
    55 RUN_TEST_STEP 	-1 	TestMultipleAlarmsServer	TestAlarmContentOOMStep 	
       
    56 END_TESTCASE	PIM-APPSRV-ALMSRV-PREQ1118-I-012-LP-0001
       
    57 
       
    58 
       
    59 // Kill alert server thread
       
    60 RUN_TEST_STEP 	100	TestMultipleAlarmsServer	TestKillAlertServerStep