|
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 //! @File |
|
17 //! @SYMTestSuiteName lbsclientlastknownpositionarea |
|
18 //! @SYMScriptTestEnvironment TestExecute |
|
19 // Copyright (c) Symbian Software Ltd 2009. |
|
20 |
|
21 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat |
|
22 |
|
23 LOAD_SUITE LbsClientTestServer -SharedData |
|
24 |
|
25 PRINT Run LbsClientTestServer |
|
26 PRINT |
|
27 |
|
28 // Before we start LBS, select the test A-GPS integration module and network reg status txt file to use. |
|
29 PREFIX RUN_UTILS |
|
30 MkDir c:\private\10282253\ |
|
31 MkDir c:\private\10282253\lbs\ |
|
32 MkDir c:\private\10282253\lbs\locmods\ |
|
33 CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
34 |
|
35 DeleteFile c:\private\10202be9\1028224b.cre |
|
36 DeleteFile c:\private\10202be9\persists\1028224b.cre |
|
37 REMOVE_PREFIX |
|
38 |
|
39 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_ResetDefaultAdmin |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 START_TESTCASE LBS-Client-LastKnownPosArea-0001 |
|
46 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0001 |
|
47 //! @SYMTestCaseDesc Ensure correct match levels are returned |
|
48 //! @SYMTestPriority Critical |
|
49 //! @SYMTestActions 1. Move to cell 234.15.1911.364646 |
|
50 //! 2. NPUD |
|
51 //! 3. LastKnown Pos Area |
|
52 //! 4. Move to Cell 234.15.1911.747622 |
|
53 //! 5. LastKnown Pos Area |
|
54 //! 6. Move to Cell 234.15.2020.973541 |
|
55 //! 7. Lastknown Pos Area |
|
56 //! 8. Move to Cell 234.30.4321.523452 |
|
57 //! 9. Lastknown Pos Area |
|
58 //! 10. Move to Cell 262.06.5323.745232 |
|
59 //! 11. Lastknown Pos Area |
|
60 //! 12. Clear Database |
|
61 //! @SYMTestExpectedResults All five calls to Last Known Pos Area will complete with appropriate match level: |
|
62 //! 3: City |
|
63 //! 5: Region |
|
64 //! 7: Country |
|
65 //! 9: Country |
|
66 //! 11: Unknown |
|
67 //! @SYMTestType CIT |
|
68 //! @SYMCreationDate 13/2/2009 |
|
69 //! @SymTestReq REQ10790 REQ10792 REQ10793 |
|
70 //! @SYMAuthor oad |
|
71 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposarea0001.txt c:\config.txt |
|
72 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
73 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
74 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
75 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
76 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0001 |
|
77 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0001 |
|
78 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
79 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
80 END_TESTCASE LBS-Client-LastKnownPosArea-0001 |
|
81 |
|
82 DELAY 5000 |
|
83 |
|
84 START_TESTCASE LBS-Client-LastKnownPosArea-0002 |
|
85 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0002 |
|
86 //! @SYMTestCaseDesc Ensure that the database is wiped out properly |
|
87 //! @SYMTestPriority Critical |
|
88 //! @SYMTestActions 1. Move to cell 234.15.1911.36464 |
|
89 //! 2. NPUD |
|
90 //! 3. LastKnown Pos Area |
|
91 //! 4. Clear Database |
|
92 //! 5. LastKnown Pos Area |
|
93 //! @SYMTestExpectedResults Match City for first call, KErrNotFound for second |
|
94 //! @SYMTestType CIT |
|
95 //! @SYMCreationDate 13/2/2009 |
|
96 //! @SymTestReq REQ11527 |
|
97 //! @SYMAuthor oad |
|
98 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
99 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
100 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
101 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
102 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
103 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0002 |
|
104 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0002 |
|
105 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
106 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
107 END_TESTCASE LBS-Client-LastKnownPosArea-0002 |
|
108 |
|
109 DELAY 5000 |
|
110 |
|
111 START_TESTCASE LBS-Client-LastKnownPosArea-0003 |
|
112 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0003 |
|
113 //! @SYMTestCaseDesc verify that the last position is returned if current network position is unavailable |
|
114 //! @SYMTestPriority Medium |
|
115 //! @SYMTestActions 1. Set up SIM TSY so that the cell id is unknown |
|
116 //! 2. NPUD |
|
117 //! 3. LastKnown Pos Area |
|
118 //! 7. Clear Database |
|
119 //! @SYMTestExpectedResults Step 3: Lastknown Pos Area should return position from 2, with match level unknown |
|
120 //! @SYMTestType CIT |
|
121 //! @SYMCreationDate 13/2/2009 |
|
122 //! @SymTestReq REQ11527 |
|
123 //! @SYMAuthor oad |
|
124 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposarea0003.txt c:\config.txt |
|
125 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
126 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
127 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
128 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
129 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0003 |
|
130 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0003 |
|
131 //RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
132 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
133 END_TESTCASE LBS-Client-LastKnownPosArea-0003 |
|
134 |
|
135 |
|
136 DELAY 5000 |
|
137 |
|
138 START_TESTCASE LBS-Client-LastKnownPosArea-0004 |
|
139 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0004 |
|
140 //! @SYMTestCaseDesc verify that the last position is returned if requested by two clients sequentially |
|
141 //! @SYMTestPriority Medium |
|
142 //! @SYMTestActions 1. Move to cell 234.15.1911.36464 |
|
143 //! 2. NPUD |
|
144 //! 3. LastKnown Pos Area from client 1 |
|
145 //! 4. LastKnown Pos Area from client 2 |
|
146 //! 5. Clear Database |
|
147 //! @SYMTestExpectedResults Step 3 & 4: Lastknown Pos Area should return position from 1, with match level city |
|
148 //! @SYMTestType CIT |
|
149 //! @SYMCreationDate 13/2/2009 |
|
150 //! @SymTestReq REQ11527 |
|
151 //! @SYMAuthor oad |
|
152 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
153 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
154 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
155 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
156 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
157 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0004 |
|
158 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0004 |
|
159 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
160 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
161 END_TESTCASE LBS-Client-LastKnownPosArea-0004 |
|
162 |
|
163 DELAY 5000 |
|
164 |
|
165 START_TESTCASE LBS-Client-LastKnownPosArea-0005 |
|
166 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0005 |
|
167 //! @SYMTestCaseDesc verify that Last Known Position area can be cancelled |
|
168 //! @SYMTestPriority Medium |
|
169 //! @SYMTestActions 1. Move to cell 234.15.1911.36464 |
|
170 //! 2. NPUD |
|
171 //! 3. LastKnown Pos Area |
|
172 //! 4. Cancel LastKnown Pos Area |
|
173 //! 5. Clear Database |
|
174 //! @SYMTestExpectedResults Cancel returns either KErrNotFound and LKPA completes with KErrNone, |
|
175 //! or Cancel returns KErrNone and LK{A completes with KErrCancel |
|
176 //! @SYMTestType CIT |
|
177 //! @SYMCreationDate 13/2/2009 |
|
178 //! @SymTestReq REQ11527 |
|
179 //! @SYMAuthor oad |
|
180 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
181 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
182 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
183 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
184 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
185 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0005 |
|
186 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0005 |
|
187 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
188 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
189 END_TESTCASE LBS-Client-LastKnownPosArea-0005 |
|
190 |
|
191 DELAY 5000 |
|
192 |
|
193 START_TESTCASE LBS-Client-LastKnownPosArea-0006 |
|
194 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0006 |
|
195 //! @SYMTestCaseDesc verify that clear last known position area database can be cancelled |
|
196 //! @SYMTestPriority Medium |
|
197 //! @SYMTestActions 1. Move to cell 234.15.1911.3646 |
|
198 //! 2. NPUD |
|
199 //! 3. LastKnown Pos Area |
|
200 //! 4. Clear Database |
|
201 //! 5. Cancel Clear Database |
|
202 //! @SYMTestExpectedResults Cancel returns either KErrNotFound and database is cleared, |
|
203 //! or KErrNone and database is not cleared. |
|
204 //! @SYMTestType CIT |
|
205 //! @SYMCreationDate 13/2/2009 |
|
206 //! @SymTestReq REQ11527 |
|
207 //! @SYMAuthor oad |
|
208 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
209 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
210 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
211 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
212 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
213 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0006 |
|
214 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0006 |
|
215 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
216 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
217 END_TESTCASE LBS-Client-LastKnownPosArea-0006 |
|
218 |
|
219 DELAY 5000 |
|
220 |
|
221 START_TESTCASE LBS-Client-LastKnownPosArea-0007 |
|
222 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0007 |
|
223 //! @SYMTestCaseDesc Simultaneous NPUD and GLNPA |
|
224 //! @SYMTestPriority Medium |
|
225 //! @SYMTestActions 1. Move to cell 234.15.1911.3646 |
|
226 //! 2. NPUD |
|
227 //! 3. NPUD (with no waiting for completion) |
|
228 //! 4. LastKnown Pos Area |
|
229 //! 5. Clear Database |
|
230 //! @SYMTestExpectedResults NPUD and LastKnown Pos Area complete with no errors |
|
231 //! @SYMTestType CIT |
|
232 //! @SYMCreationDate 13/3/2009 |
|
233 //! @SymTestReq REQ11527 |
|
234 //! @SYMAuthor oad |
|
235 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
236 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
237 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
238 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
239 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
240 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0007 |
|
241 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0007 |
|
242 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
243 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
244 END_TESTCASE LBS-Client-LastKnownPosArea-0007 |
|
245 |
|
246 DELAY 5000 |
|
247 |
|
248 START_TESTCASE LBS-Client-LastKnownPosArea-0008 |
|
249 //! @SYMTestCaseID LBS-Client-LastKnownPosArea-0008 |
|
250 //! @SYMTestCaseDesc Simultaneous NPUD and GLNPA |
|
251 //! @SYMTestPriority Medium |
|
252 //! @SYMTestActions 1. Move to cell 234.15.1911.3646 |
|
253 //! 2. NPUD |
|
254 //! 3. NPUD (with no waiting for completion) |
|
255 //! 4. LastKnown Pos Area |
|
256 //! 5. Cancel NPUD |
|
257 //! 6. Cancel LastKnown Pos Area |
|
258 //! 5. Clear Database |
|
259 //! @SYMTestExpectedResults NPUD and LastKnown Pos Area cancel with no other errors |
|
260 //! @SYMTestType CIT |
|
261 //! @SYMCreationDate 13/3/2009 |
|
262 //! @SymTestReq REQ11527 |
|
263 //! @SYMAuthor oad |
|
264 RUN_UTILS CopyFile c:\testdata\configs\lbsclientlastknownposareacommon.txt c:\config.txt |
|
265 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StartLbs |
|
266 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetAutonomousMode |
|
267 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_InstallScheduler |
|
268 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_SetUpPsy c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea |
|
269 RUN_TEST_STEP 020 LbsClientTestServer LbsStep_CreateVerifyPosInfos c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0008 |
|
270 RUN_TEST_STEP 120 LbsClientTestServer LbsClientStep_LastKnownPosArea c:\testdata\configs\lbsclientlastknownposarea.ini LBS-Client-LastKnownPosArea-0008 |
|
271 // As second NPUD is cancelled the positions placed in the array do not match those in the ini file |
|
272 //RUN_TEST_STEP 010 LbsClientTestServer LbsStep_VerifyPosInfos |
|
273 RUN_TEST_STEP 010 LbsClientTestServer LbsStep_StopLbs |
|
274 END_TESTCASE LBS-Client-LastKnownPosArea-0008 |
|
275 |
|
276 |
|
277 PREFIX RUN_UTILS |
|
278 DeleteFile c:\config.txt |
|
279 REMOVE_PREFIX |
|
280 |