phonebookengines_old/contactsmodel/tsrc/Integration/TestImpExvCard/scripts/TestImpExvCard.script
changeset 40 b46a585f6909
child 49 74b30151afd6
equal deleted inserted replaced
37:fd64c38c277d 40:b46a585f6909
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 PRINT Run all TestImpExvCard Suite Tests
       
    17 
       
    18 //
       
    19 LOAD_SUITE TestImpExvCardSuite
       
    20 //
       
    21 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0003
       
    22 
       
    23 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0003
       
    24 //! @SYMTestType Component Test
       
    25 //! @SYMTestPriority low
       
    26 //! @SYMPREQ 234
       
    27 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
    28 //! @SYMTestStatus Implemented
       
    29 //! @SYMTestCaseDesc Import VCard with REV property set to local
       
    30 //! @SYMTestActions A VCard with REV property in local time format and a TZ property present is imported to a Contact database using the CntModel converter
       
    31 //! @SYMTestExpectedResults The imported contact entry has LastModified() equal to the VCard's REV property after beign adjusted by the TZ property
       
    32 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpRevLocalTZ c:\CITExImvCard\testdata\ImportREVLocalTZ\ExpectedUTC.ini
       
    33 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0003
       
    34 
       
    35 
       
    36 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0002
       
    37 
       
    38 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0002
       
    39 //! @SYMTestType Component Test
       
    40 //! @SYMTestPriority low
       
    41 //! @SYMPREQ 234
       
    42 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
    43 //! @SYMTestStatus Implemented
       
    44 //! @SYMTestCaseDesc Import VCard wtih REV property set to local, but no TZ property set
       
    45 //! @SYMTestActions A VCard with REV property in local time format is imported to a Contact database using the Cnt Model converter
       
    46 //! @SYMTestExpectedResults The imported contact entry has LastModified() equal to the VCard's REV property.  The Vcard's REV property is converted to UTC time with offset=0
       
    47 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpRevLocal c:\CITExImvCard\testdata\ImportREVLocal\ExpectedUTC.ini
       
    48 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0002
       
    49 
       
    50 
       
    51 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0004
       
    52 
       
    53 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0004
       
    54 //! @SYMTestType Component Test
       
    55 //! @SYMTestPriority med
       
    56 //! @SYMPREQ 234
       
    57 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
    58 //! @SYMTestStatus Implemented
       
    59 //! @SYMTestCaseDesc Import VCard with no REV property
       
    60 //! @SYMTestActions A VCard with no REV property is imported to a Contact database using the CntModel converter
       
    61 //! @SYMTestExpectedResults The imported contact entry has LastModified() equal to NULL
       
    62 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpNoRev
       
    63 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0004
       
    64 
       
    65 
       
    66 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0001
       
    67 
       
    68 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0001
       
    69 //! @SYMTestType Component Test
       
    70 //! @SYMTestPriority low
       
    71 //! @SYMPREQ 234
       
    72 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
    73 //! @SYMTestStatus Implemented
       
    74 //! @SYMTestCaseDesc Import VCard with REV in UTC format
       
    75 //! @SYMTestActions A VCard with REV property in UTC format is imported to a Contact database using the Cnt Model converter
       
    76 //! @SYMTestExpectedResults The imported contact entry has LastModified() equal to the VCard's REV property
       
    77 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpRevUTC c:\CITExImvCard\testdata\ImportRevUTC\ExpectedUTC.ini
       
    78 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0002
       
    79 
       
    80 
       
    81 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0005
       
    82 
       
    83 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0005
       
    84 //! @SYMTestType Component Test
       
    85 //! @SYMTestPriority low
       
    86 //! @SYMPREQ 234
       
    87 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
    88 //! @SYMTestStatus Implemented
       
    89 //! @SYMTestCaseDesc Import VCard with BDAY property in local date/time format
       
    90 //! @SYMTestActions A Vcard with BDAY property is imported to a Contact database using the Cnt Model converter.
       
    91 //! @SYMTestExpectedResults The imported contact entry has the birthday field equal to the VCards BDAY property.  No adjustement is made for UTC Offset.
       
    92 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpBDay c:\CITExImvCard\testdata\ImportBDay\ExpectedBDAY.ini
       
    93 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0005
       
    94 
       
    95 
       
    96 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0006
       
    97 
       
    98 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0006
       
    99 //! @SYMTestType Component Test
       
   100 //! @SYMTestPriority low
       
   101 //! @SYMPREQ 234
       
   102 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
   103 //! @SYMTestStatus Implemented
       
   104 //! @SYMTestCaseDesc Import VCard with no BDAY property
       
   105 //! @SYMTestActions A Vcard with no BDAY property is imported to a Contact database using the Cnt Model converter.
       
   106 //! @SYMTestExpectedResults The imported contact entry has the birthday field equal to TDateTime::Null
       
   107 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpNoBDay
       
   108 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0006
       
   109 
       
   110 
       
   111 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0007
       
   112 
       
   113 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0007
       
   114 //! @SYMTestType Component Test
       
   115 //! @SYMTestPriority low
       
   116 //! @SYMPREQ 234
       
   117 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
   118 //! @SYMTestStatus Implemented
       
   119 //! @SYMTestCaseDesc Export to VCard with REV in UTC format
       
   120 //! @SYMTestActions A Contact database is exported to VCards using the CntModel converter
       
   121 //! @SYMTestExpectedResults The exported VCard's REV property is set to UTC value, and is equal to the contact entry's LastModified() value.
       
   122 RUN_TEST_STEP 100 TestImpExvCardSuite TestExRevUTC
       
   123 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0007
       
   124 
       
   125 
       
   126 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0008
       
   127 
       
   128 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0008
       
   129 //! @SYMTestType Component Test
       
   130 //! @SYMTestPriority low
       
   131 //! @SYMPREQ 234
       
   132 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
   133 //! @SYMTestStatus Implemented
       
   134 //! @SYMTestCaseDesc Export to VCard with BDAY property in local date/time format
       
   135 //! @SYMTestActions A VCard with BDAY property is exported from a Contact database using the CntModel converter.
       
   136 //! @SYMTestExpectedResults The exported VCard's BDAY property is equal to the contact entry's birthday field, and is in Local Time format.
       
   137 RUN_TEST_STEP 100 TestImpExvCardSuite TestExBDayLocal c:\CITExImvCard\testdata\ExportBDayLocal\ExportBDayLocal.ini
       
   138 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0008
       
   139 
       
   140 
       
   141 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0009
       
   142 
       
   143 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0009
       
   144 //! @SYMTestType Component Test
       
   145 //! @SYMTestPriority low
       
   146 //! @SYMPREQ 234
       
   147 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
   148 //! @SYMTestStatus Implemented
       
   149 //! @SYMTestCaseDesc Export to VCard with no BDAY property 
       
   150 //! @SYMTestActions A VCard with no BDAY property is exported from a Contact database using the CntModel converter.
       
   151 //! @SYMTestExpectedResults The exported VCard's BDAY property is equal to TDateTime::Null
       
   152 RUN_TEST_STEP 100 TestImpExvCardSuite TestExNoBDay
       
   153 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0009
       
   154 
       
   155  
       
   156 START_TESTCASE  PIM-CIT-Cntmodel-234AP-0010
       
   157 
       
   158 //! @SYMTestCaseID PIM-CIT-Cntmodel-234AP-0010
       
   159 //! @SYMTestType Component Test
       
   160 //! @SYMTestPriority low
       
   161 //! @SYMPREQ 234
       
   162 //! @SYMFssID <App-Engines>/<CntModel>/IE.3
       
   163 //! @SYMTestStatus Implemented
       
   164 //! @SYMTestCaseDesc Import VCard in OOM
       
   165 //! @SYMTestActions A Vcard is imported in an OOM loop.
       
   166 //! @SYMTestExpectedResults Contacts Import must be successful
       
   167 RUN_TEST_STEP 100 TestImpExvCardSuite TestImpOOM
       
   168 END_TESTCASE  PIM-CIT-Cntmodel-234AP-0010
       
   169 
       
   170 
       
   171 PRINT Complate_TestImpExvCard_Tests