phonebookengines/contactsmodel/tsrc/Integration/PerfFuncSuite/scripts/CRUDOOMStep.script
changeset 0 e686773b3f54
child 24 0ba2181d7c28
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 
       
    17 LOAD_SUITE Te_PerformanceFunctionalitySuite
       
    18 
       
    19 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81152
       
    20 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81152
       
    21 //! @SYMTestType CIT
       
    22 //! @SYMTestPriority High
       
    23 //! @SYMPREQ 811
       
    24 //! @SYMTestCaseDesc CRUD Out of Memory tests
       
    25 //! @SYMTestActions Store client-side heap size
       
    26 //! Set API call to fail at on nth allocation
       
    27 //! Call Create, read, update, commit, close  APIs
       
    28 //! Check that the correct error code is returned
       
    29 //! Check that client-side heap size is the same as the initial size
       
    30 //! Repeat test until the api completes successfully
       
    31 //! Repeat test for server-side allocation
       
    32 //! @SYMTestExpectedResults Check that the correct error code is returned and that no memory leaks occur after the api call fails
       
    33 RUN_TEST_STEP 500 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Read
       
    34 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Open
       
    35 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Delete
       
    36 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Add
       
    37 RUN_TEST_STEP 500 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Close
       
    38 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Commit
       
    39 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini Update
       
    40 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81152
       
    41 
       
    42 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81167
       
    43 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81167
       
    44 //! @SYMTestType CIT
       
    45 //! @SYMTestPriority High
       
    46 //! @SYMPREQ 811
       
    47 //! @SYMTestCaseDesc views OOM test
       
    48 //! @SYMTestActions Store client-side heap size
       
    49 //! Set API call to fail at on nth allocation
       
    50 //! Create Local View
       
    51 //! Wait for view to get populated
       
    52 //! Check that the correct error code is returned
       
    53 //! Check that client-side heap size is the same as the initial size	
       
    54 //! Repeat test until view is populated successfully
       
    55 //! Repeat test for server-side allocation
       
    56 //! Repeat test for remote view
       
    57 //! @SYMTestExpectedResults KErrNoMemory error code is returned, OOM situation should cause out of memory error
       
    58 //! client-side heap size is the same as the initial size, All functions should be leave safe
       
    59 RUN_TEST_STEP 10000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini ViewsLocalFS
       
    60 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini ViewsRemote
       
    61 RUN_TEST_STEP 1000 Te_PerformanceFunctionalitySuite CRUDOOMStep c:\PerformanceFunc\configs\te_PerformanceFunctionalitySuite.ini ViewsLocal
       
    62 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81167