|
1 // Copyright (c) 2004-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 TzLocalization Tests |
|
17 // |
|
18 LOAD_SUITE TzLocalizationTestServer |
|
19 // |
|
20 |
|
21 |
|
22 //! @SYMTestCaseDesc Tests when booting with corrupt timezone database, a |
|
23 //! new timezone database will be created. |
|
24 //! @SYMTestActions Retrieves a list of time zones and gets information |
|
25 //! about a particular time zone using the TimeZone Localization API. |
|
26 //! Then adds a city to a time zone/city group. |
|
27 //! @SYMTestExpectedResults EPass if creates the new database successfully. |
|
28 // delete the database file, so that we start from scratch each time |
|
29 |
|
30 RUN_TEST_STEP 100 TzLocalizationTestServer TzPrepEnvDelFileTestStep |
|
31 |
|
32 RUN_TEST_STEP 100 TzLocalizationTestServer TzPrepEnvCopyFileTestStep |
|
33 |
|
34 |
|
35 RUN_TEST_STEP 100 TzLocalizationTestServer TzBootWithInvalidTimeZoneDbTestStep |
|
36 |
|
37 |
|
38 |
|
39 // delete the database file, so that we start from scratch each time |
|
40 RUN_TEST_STEP 100 TzLocalizationTestServer TzPrepEnvDelFileTestStep |
|
41 |
|
42 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzPassiveTimeZoneTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
43 TestZone1 |
|
44 TestZone2 |
|
45 TestZone3 |
|
46 TestZone4 |
|
47 TestZone5 |
|
48 TestZone6 |
|
49 TestZone7 |
|
50 TestZone8 |
|
51 TestZone9 |
|
52 TestZone10 |
|
53 TestZone11 |
|
54 TestZone12 |
|
55 TestZone13 |
|
56 TestZone14 |
|
57 TestZone15 |
|
58 TestZone16 |
|
59 REMOVE_PREFIX |
|
60 |
|
61 |
|
62 RUN_TEST_STEP 100 TzLocalizationTestServer TzPassiveAllTimeZonesTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini AllZonesTest |
|
63 |
|
64 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzPassiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
65 TestZone1 |
|
66 TestZone2 |
|
67 TestZone3 |
|
68 TestZone4 |
|
69 TestZone5 |
|
70 TestZone6 |
|
71 TestZone7 |
|
72 TestZone8 |
|
73 TestZone9 |
|
74 TestZone10 |
|
75 TestZone11 |
|
76 TestZone12 |
|
77 TestZone13 |
|
78 TestZone14 |
|
79 TestZone15 |
|
80 REMOVE_PREFIX |
|
81 RUN_TEST_STEP_RESULT -1 100 TzLocalizationTestServer TzPassiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestZone16 |
|
82 |
|
83 RUN_TEST_STEP 100 TzLocalizationTestServer TzPassiveAllCitiesTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini AllCitiesTest |
|
84 |
|
85 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzCitiesWithUTCOffsetTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
86 CitiesByUTCTest1 |
|
87 CitiesByUTCTest2 |
|
88 CitiesByUTCTest3 |
|
89 REMOVE_PREFIX |
|
90 |
|
91 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzTimeZonesWithUTCOffsetTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
92 TimeZonesByUTCTest1 |
|
93 TimeZonesByUTCTest2 |
|
94 TimeZonesByUTCTest3 |
|
95 REMOVE_PREFIX |
|
96 |
|
97 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzActiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
98 TestCity1 |
|
99 TestCity2 |
|
100 TestCity3 |
|
101 REMOVE_PREFIX |
|
102 RUN_TEST_STEP_RESULT -1 100 TzLocalizationTestServer TzActiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestCity4 |
|
103 RUN_TEST_STEP_RESULT -11 100 TzLocalizationTestServer TzActiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestCity5 |
|
104 RUN_TEST_STEP 100 TzLocalizationTestServer TzActiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestCity6 |
|
105 RUN_TEST_STEP_RESULT -11 100 TzLocalizationTestServer TzActiveCityTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestCity7 |
|
106 |
|
107 // Clean up DB |
|
108 RUN_TEST_STEP 100 TzLocalizationTestServer TzPrepEnvDelFileTestStep |
|
109 |
|
110 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzGroupTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
111 TestGroup1 |
|
112 TestGroup2 |
|
113 TestGroup3 |
|
114 TestGroup4 |
|
115 TestGroup5 |
|
116 TestGroup6 |
|
117 TestGroup7 |
|
118 TestGroup8 |
|
119 TestGroup9 |
|
120 TestGroup10 |
|
121 TestGroup11 |
|
122 TestGroup128 |
|
123 TestGroup129 |
|
124 REMOVE_PREFIX |
|
125 RUN_TEST_STEP_RESULT -1 100 TzLocalizationTestServer TzGroupTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestGroup130 |
|
126 |
|
127 RUN_TEST_STEP 100 TzLocalizationTestServer TzAllGroupsTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini AllGroupsTest |
|
128 |
|
129 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzActiveTimeZoneTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
130 TestZone1 |
|
131 TestZone2 |
|
132 TestZone3 |
|
133 TestZone4 |
|
134 TestZone5 |
|
135 TestZone6 |
|
136 TestZone7 |
|
137 TestZone8 |
|
138 TestZone9 |
|
139 TestZone10 |
|
140 TestZone11 |
|
141 TestZone12 |
|
142 TestZone13 |
|
143 TestZone14 |
|
144 TestZone15 |
|
145 REMOVE_PREFIX |
|
146 RUN_TEST_STEP_RESULT -1 100 TzLocalizationTestServer TzActiveTimeZoneTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini TestZone16 |
|
147 |
|
148 // Clean up DB |
|
149 RUN_TEST_STEP 100 TzLocalizationTestServer TzPrepEnvDelFileTestStep |
|
150 |
|
151 PREFIX RUN_TEST_STEP 100 TzLocalizationTestServer TzSortingTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
152 SortTest1 |
|
153 SortTest2 |
|
154 SortTest3 |
|
155 SortTest4 |
|
156 SortTest5 |
|
157 SortTest6 |
|
158 SortTest7 |
|
159 SortTest8 |
|
160 SortTest9 |
|
161 SortTest10 |
|
162 SortTest11 |
|
163 SortTest12 |
|
164 SortTest13 |
|
165 SortTest14 |
|
166 REMOVE_PREFIX |
|
167 |
|
168 RUN_TEST_STEP 100 TzLocalizationTestServer TzFindingTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini FindTest1 |
|
169 PREFIX RUN_TEST_STEP !Result=106 100 TzLocalizationTestServer TzFindingTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini |
|
170 FindTest2 |
|
171 FindTest3 |
|
172 FindTest4 |
|
173 FindTest5 |
|
174 FindTest6 |
|
175 FindTest7 |
|
176 REMOVE_PREFIX |
|
177 |
|
178 RUN_TEST_STEP 100 TzLocalizationTestServer TzPubSubTestStep c:\TzLocalizationTestScripts\TzLocalizationTest.ini FindTest1 |
|
179 |
|
180 RUN_TEST_STEP 100 TzLocalizationTestServer TzRaceTestStep |