pimappservices/calendar/tsrc/CR-6BLC8W/scripts/crintegration.script
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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 PRINT Run all TestCalInterimApi Suite Tests
       
    18 //
       
    19 LOAD_SUITE testcalinterimapiit
       
    20 //
       
    21 
       
    22 PREFIX RUN_UTILS
       
    23 // Remove the INI file
       
    24 MakeReadWrite c:\Private\101F5027\AlarmServer.ini
       
    25 DeleteFile c:\Private\101F5027\AlarmServer.ini
       
    26 REMOVE_PREFIX
       
    27 
       
    28 //export import Negative Offset Entries
       
    29 //! @SYMTestCaseID 
       
    30 //! @SYMFssID 
       
    31 //! @SYMTestType
       
    32 //! @SYMTestPriority High
       
    33 //! @SYMTestCaseDesc Tests storing, fetching, and exporting and importing of TODO and APPT entries with negative offsets
       
    34 //! @SYMTestActions stores TODO and APPT data in the calendar database. Fetches the entries after 
       
    35 //! they have been stored and compares exports to a vcs file. Imports the data from the vcs file
       
    36 //! and compares the offset to the expected values.  
       
    37 //! @SYMTestExpectedResults Entries with negative offset that pushes the alarms to the next day 
       
    38 // !should leave with KErrNotSupported. 
       
    39 //! Other entries with negative offsets should be exported/imported without the offset changing.
       
    40 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiExportImportNegOffset
       
    41 
       
    42 //export Recurrence Entries
       
    43 //! @SYMTestCaseID 
       
    44 //! @SYMFssID 
       
    45 //! @SYMTestType
       
    46 //! @SYMTestPriority High
       
    47 //! @SYMTestCaseDesc Tests storing, fetching, and exporting of recurrence TODO entries
       
    48 //! @SYMTestActions stores TODO data in the calendar database. Fetches the entries after 
       
    49 //! they have been stored and compares to the expected values. Repeats with a new set of data. 
       
    50 //! @SYMTestExpectedResults Recurrence entry with same recurrence id should replace previous recurrence entry.
       
    51 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiExportRecur
       
    52 
       
    53 //standard store and fetch
       
    54 //! @SYMTestCaseID CalInterimAPI_1
       
    55 //! @SYMFssID App-Engines/CalInterimAPI/Data.007
       
    56 //! @SYMTestType CIT
       
    57 //! @SYMTestPriority High
       
    58 //! @SYMTestCaseDesc Tests storing and fetching of calendar entries
       
    59 //! @SYMTestActions Reads data for fixed and floating entries of type EVENT, APPT, REMINDER, and TODO from .ini file and then
       
    60 //! stores them in the calendar database. Fetches the entries after they have been stored and compares to the original 
       
    61 //! entries which were stored.
       
    62 //! @SYMTestExpectedResults Fetched entries match stored entries
       
    63 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetch \cr6blc8w\testdata\t_cr6blc8w_data1.ini test1
       
    64 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetch \cr6blc8w\testdata\t_cr6blc8w_data1.ini test2
       
    65 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetch \cr6blc8w\testdata\t_cr6blc8w_data1.ini test3
       
    66 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetch \cr6blc8w\testdata\t_cr6blc8w_data1.ini test4
       
    67 
       
    68 //! @SYMTestCaseID CalInterimAPI_rpt
       
    69 //! @SYMFssID App-Engines/CalInterimAPI/Data.007
       
    70 //! @SYMTestType CIT
       
    71 //! @SYMTestPriority High
       
    72 //! @SYMTestCaseDesc Tests storing and fetching of repeating calendar entries with UTC change in between store and fetch
       
    73 //! @SYMTestActions Reads data for fixed and floating repeating entries of type EVENT, APPT, REMINDER, and TODO from .ini file 
       
    74 //! and then stores them in the calendar database. Fetches the entries and their repeating instances after they have been stored 
       
    75 //! and compares to the original entries and instances which were stored
       
    76 //! @SYMTestExpectedResults Fetched entries and instances match stored entries and instances
       
    77 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetchRpt \cr6blc8w\testdata\t_cr6blc8w_data2.ini test1
       
    78 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetchRpt \cr6blc8w\testdata\t_cr6blc8w_data2.ini test2
       
    79 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetchRpt \cr6blc8w\testdata\t_cr6blc8w_data2.ini test3
       
    80 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiStoreFetchRpt \cr6blc8w\testdata\t_cr6blc8w_data2.ini test4
       
    81 
       
    82 
       
    83 //! @SYMTestCaseID VCal_Export_1
       
    84 //! @SYMTestCaseID VCal_Import_1
       
    85 //! @SYMFssID App-Engines/CalInterimAPI/IO.001
       
    86 //! @SYMFssID App-Engines/CalInterimAPI/IO.002
       
    87 //! @SYMTestType CIT
       
    88 //! @SYMTestPriority High
       
    89 //! @SYMTestCaseDesc Tests VCal Export and Import of calendar entries
       
    90 //! @SYMTestActions Reads data for fixed and floating entries of type EVENT, APPT, REMINDER, and TODO from .ini
       
    91 //! file, stores them in the calendar database, then exports them in VCAL format to a file. Uses this file to import
       
    92 //! VCAL entries into database after deleting them.
       
    93 //! @SYMTestExpectedResults Imported entries should match exported entries
       
    94 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiExportImport \cr6blc8w\testdata\t_cr6blc8w_data3.ini test1
       
    95 
       
    96 //! @SYMTestCaseID VCal_Export_1
       
    97 //! @SYMTestCaseID VCal_Import_1
       
    98 //! @SYMFssID App-Engines/CalInterimAPI/IO.001
       
    99 //! @SYMFssID App-Engines/CalInterimAPI/IO.002
       
   100 //! @SYMTestType CIT
       
   101 //! @SYMTestPriority High
       
   102 //! @SYMTestCaseDesc Tests VCal Export and Import of repeating calendar entries
       
   103 //! @SYMTestActions Reads data for fixed and floating repeating entries of type EVENT, APPT, REMINDER, and TODO from .ini
       
   104 //! file, stores them in the calendar database, then exports them in VCAL format to a file. Uses this file to import
       
   105 //! VCAL entries into database after deleting them.
       
   106 //! @SYMTestExpectedResults Imported entries should match exported entries
       
   107 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiExportImportRpt \cr6blc8w\testdata\t_cr6blc8w_data3.ini test2
       
   108 
       
   109 //! @SYMTestCaseID VCal_Export_1
       
   110 //! @SYMTestCaseID VCal_Import_1
       
   111 //! @SYMFssID App-Engines/CalInterimAPI/IO.001
       
   112 //! @SYMFssID App-Engines/CalInterimAPI/IO.002
       
   113 //! @SYMTestType CIT
       
   114 //! @SYMTestPriority High
       
   115 //! @SYMTestCaseDesc Tests VCal Export and Import of repeating calendar entries with exceptions to repeat rule
       
   116 //! @SYMTestActions Reads data for fixed and floating repeating entries of type EVENT, APPT, REMINDER, and TODO from .ini
       
   117 //! file, stores them in the calendar database, adds exception dates, then exports them in VCAL format to a file. Uses this
       
   118 //! file to import VCAL entries into database after deleting them.
       
   119 //! @SYMTestExpectedResults Imported entries should match exported entries
       
   120 
       
   121 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiExportImportExc \cr6blc8w\testdata\t_cr6blc8w_data3.ini test2
       
   122 
       
   123 //! @SYMTestCaseID VCal_Export_1
       
   124 //! @SYMTestCaseID VCal_Import_1
       
   125 //! @SYMFssID App-Engines/CalInterimAPI/IO.001
       
   126 //! @SYMFssID App-Engines/CalInterimAPI/IO.002
       
   127 //! @SYMTestType CIT
       
   128 //! @SYMTestPriority High
       
   129 //! @SYMTestCaseDesc Tests VCal Export and Import of sporadically repeating calendar entries (RDates)
       
   130 //! @SYMTestActions Reads data for fixed and floating entries of type EVENT, APPT, REMINDER, and TODO from .ini
       
   131 //! file, stores them in the calendar database, adds RDate sporadic repeats then exports them in VCAL format to a file.
       
   132 //! Uses this file to import VCAL entries into database after deleting them.
       
   133 //! @SYMTestExpectedResults Imported entries should match exported entries
       
   134 
       
   135 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiExportImportSpor \cr6blc8w\testdata\t_cr6blc8w_data3.ini test1
       
   136 
       
   137 //! @SYMTestCaseID VCal_Import_2
       
   138 //! @SYMFssID App-Engines/CalInterimAPI/IO.001
       
   139 //! @SYMTestType CIT
       
   140 //! @SYMTestPriority High
       
   141 //! @SYMTestCaseDesc Tests importing VCal entries with different modes on start and end times
       
   142 //! @SYMTestActions Uses a predefined Vcal file with two entries, each with different time modes for start and end times
       
   143 //! (one with start floating and end fixed, and the other with start fixed and end floating). Imports these into the 
       
   144 //! calendar database.
       
   145 //! @SYMTestExpectedResults Entries are imported. Endtime mode of each entry is changed to match the start time mode.
       
   146 RUN_TEST_STEP 100 testcalinterimapiit TestCalInterimApiImportMixed
       
   147 
       
   148 PREFIX RUN_UTILS
       
   149 // Remove the INI file
       
   150 MakeReadWrite c:\Private\101F5027\AlarmServer.ini
       
   151 DeleteFile c:\Private\101F5027\AlarmServer.ini
       
   152 REMOVE_PREFIX
       
   153 //! @SYMTestCaseID Alarm_sorting_1
       
   154 //! @SYMFssID <App-Engines>/<AgnModel>/ARG.1.3
       
   155 //! @SYMTestType CIT
       
   156 //! @SYMTestPriority High
       
   157 //! @SYMTestCaseDesc Tests alarm restoration after UTC offset change - basic case with 2 alarmed entries
       
   158 //! @SYMTestActions Sets up two alarmed entries, one set to go off 1 minute before UTC change, the other set to go
       
   159 //! off 1 miniute after the UTC change. The alarms are armed, wait for first alarm to expire, then change UTC time
       
   160 //! and wait for next alarm to expire.
       
   161 //! @SYMTestExpectedResults Alarms should expire as expected.
       
   162 RUN_TEST_STEP 300 testcalinterimapiit TestCalInterimApiAlarmBasic \cr6blc8w\testdata\t_cr6blc8w_data4.ini test1
       
   163 
       
   164 
       
   165 PREFIX RUN_UTILS
       
   166 // Remove the INI file
       
   167 MakeReadWrite c:\Private\101F5027\AlarmServer.ini
       
   168 DeleteFile c:\Private\101F5027\AlarmServer.ini
       
   169 REMOVE_PREFIX
       
   170 //! @SYMTestCaseID Alarm_sorting_2
       
   171 //! @SYMFssID <App-Engines>/<AgnModel>/ARG.1.3
       
   172 //! @SYMTestType CIT
       
   173 //! @SYMTestPriority High
       
   174 //! @SYMTestCaseDesc Tests alarm re-ordering after UTC offset change for many alarms and entries
       
   175 //! @SYMTestActions Set up 20 alarmed entries, half with fixed times and half with floating times. Set times so that
       
   176 //! some will expire before the UTC change and some after. Wait for the initial expiries. Change UTC time. Wait for 
       
   177 //! second set of expiry.
       
   178 //! @SYMTestExpectedResults Alarms should expire as expected.
       
   179 RUN_TEST_STEP 300 testcalinterimapiit TestCalInterimApiAlarmMany \cr6blc8w\testdata\t_cr6blc8w_data4.ini test2
       
   180 
       
   181 PREFIX RUN_UTILS
       
   182 // Remove the calendar file
       
   183 MakeReadWrite c:\private\10003a5b\CITVCal.dat
       
   184 DeleteFile c:\private\10003a5b\CITVCal.dat
       
   185 REMOVE_PREFIX