phonebookengines/contactsmodel/tsrc/Integration/CntPerfTest/Scripts/AccessCountTests.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 CntPerfTestServer
       
    18 
       
    19 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81132
       
    20 //! @file
       
    21 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81132
       
    22 //! @SYMTestType CIT
       
    23 //! @SYMTestPriority Medium
       
    24 //! @SYMPREQ 811
       
    25 //! @SYMTestCaseDesc Deletion of contacts with access count > 0 Test
       
    26 //! @SYMTestActions open a contact
       
    27 //! increase access count to 10
       
    28 //! attempt to delete contact 10 times
       
    29 //! check whether it has been deleted
       
    30 //! set access count to 0
       
    31 //! delete contact
       
    32 //! check whether it has been deleted
       
    33 //! @SYMTestExpectedResults Contact should not be deleted when access count still > 0
       
    34 //! Contact should be deleted when access count equals 0
       
    35 RUN_TEST_STEP 100 CntPerfTestServer AccessCountTests c:\CntPerfTest\configs\cntperftest.ini DeleteAccessed
       
    36 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81132
       
    37 
       
    38 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81133
       
    39 //! @file
       
    40 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81133
       
    41 //! @SYMTestType CIT
       
    42 //! @SYMTestPriority Medium
       
    43 //! @SYMPREQ 811
       
    44 //! @SYMTestCaseDesc Deletion of items with agent fields Test
       
    45 //! @SYMTestActions Open X contacts
       
    46 //! Add agent field pointing to previous contact
       
    47 //! Delete contacts from 1…X
       
    48 //! Repeat tests where contacts are deleted form X…1
       
    49 //! @SYMTestExpectedResults All deletions should be successful
       
    50 RUN_TEST_STEP 100 CntPerfTestServer AccessCountTests c:\CntPerfTest\configs\cntperftest.ini ForwardDeletion
       
    51 RUN_TEST_STEP 100 CntPerfTestServer AccessCountTests c:\CntPerfTest\configs\cntperftest.ini ReverseDeletion
       
    52 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81133
       
    53 
       
    54 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81134
       
    55 //! @file
       
    56 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81134
       
    57 //! @SYMTestType CIT
       
    58 //! @SYMTestPriority Medium
       
    59 //! @SYMPREQ 811
       
    60 //! @SYMTestCaseDesc Agent retrieve and set Test
       
    61 //! @SYMTestActions open a contact
       
    62 //! add agent field 
       
    63 //! set value of agent
       
    64 //! get value of agent
       
    65 //! repeat this X times
       
    66 //! @SYMTestExpectedResults Retrieved value should equal stored value
       
    67 RUN_TEST_STEP 100 CntPerfTestServer AccessCountTests c:\CntPerfTest\configs\cntperftest.ini AgentGetSet
       
    68 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81134
       
    69 
       
    70 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81135
       
    71 //! @file
       
    72 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81135
       
    73 //! @SYMTestType CIT
       
    74 //! @SYMTestPriority Medium
       
    75 //! @SYMPREQ 811
       
    76 //! @SYMTestCaseDesc Agent access count Test
       
    77 //! @SYMTestActions add agent field to contact B
       
    78 //! set value of agent in B to id of contact A.
       
    79 //! check the value of agent field
       
    80 //! check the access count for both contacts
       
    81 //! @SYMTestExpectedResults Retrieved agent value should equal stored value
       
    82 //! Access counts should be unchanged
       
    83 RUN_TEST_STEP 100 CntPerfTestServer AccessCountTests c:\CntPerfTest\configs\cntperftest.ini AgentAccess
       
    84 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81135
       
    85 
       
    86 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81136
       
    87 //! @file
       
    88 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81136
       
    89 //! @SYMTestType CIT
       
    90 //! @SYMTestPriority Medium
       
    91 //! @SYMPREQ 811
       
    92 //! @SYMTestCaseDesc Agent import/export access count Test
       
    93 //! @SYMTestActions add agent field to contact B. 
       
    94 //! set value of agent to contact A.
       
    95 //! export contacts A & B. 
       
    96 //! check access count for A & B
       
    97 //! check value of agent 
       
    98 //! open contact B
       
    99 //! delete all fields.
       
   100 //! import contacts A & B. 
       
   101 //! check for the existence of agent field in B
       
   102 //! check access count for A & B.
       
   103 //! @SYMTestExpectedResults Access counts should be 0 after export and import
       
   104 //! Agent value should equal B
       
   105 //! Agent field should not be imported
       
   106 RUN_TEST_STEP 100 CntPerfTestServer AccessCountTests c:\CntPerfTest\configs\cntperftest.ini AgentImportExport
       
   107 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81136
       
   108