|
1 // Copyright (c) 2006-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 LOAD_SUITE LbsX3PTestServer -SharedData |
|
17 |
|
18 PRINT Run LbsX3PTestServer |
|
19 PRINT |
|
20 |
|
21 // Before we start LBS, select the test A-GPS integration module to use. |
|
22 PREFIX RUN_UTILS |
|
23 MkDir c:\private\10282253\ |
|
24 MkDir c:\private\10282253\lbs\ |
|
25 MkDir c:\private\10282253\lbs\locmods\ |
|
26 CopyFile c:\testdata\configs\xtestmodule.ini c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
27 CopyFile c:\testdata\configs\lbstestconfig.txt c:\config.txt |
|
28 REMOVE_PREFIX |
|
29 |
|
30 PRINT Start LBS |
|
31 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_ResetDefaultAdmin |
|
32 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_StartLbs |
|
33 |
|
34 START_TESTCASE LBS-X3P-CancelRefPos-0001 |
|
35 |
|
36 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0001 |
|
37 //!@SYMTestCaseDesc Call RlbsTransmitPosition::CancelTransmitPosition() when no transmit is outstanding. |
|
38 //! |
|
39 //!@SYMTestActions 1. Open sub-session |
|
40 //! 2. Do not request X3P |
|
41 //! 3. Attempt to cancel X3P |
|
42 //! |
|
43 //!@SYMTestExpectedResults CancelTransmitPosition() fails with KErrNotFound |
|
44 //! |
|
45 //!@SYMPREQ PREQ 163 |
|
46 //!@SYMREQ REQ 163.05 |
|
47 //!@SYMCR CR 0947 |
|
48 //! |
|
49 //!@SYMTestType CIT |
|
50 //!@SYMTestPriority 2 |
|
51 //!@SYMTestStatus Not Implemented |
|
52 |
|
53 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
54 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
55 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0001 |
|
56 |
|
57 END_TESTCASE LBS-X3P-CancelRefPos-0001 |
|
58 |
|
59 |
|
60 START_TESTCASE LBS-X3P-CancelRefPos-0002 |
|
61 |
|
62 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0002 |
|
63 //!@SYMTestCaseDesc Request X3P, then cancel request before MO-LR started () |
|
64 //! |
|
65 //!@SYMTestActions 1. Open a session with the transmit position server |
|
66 //! 2. Create a sub-session |
|
67 //! 3. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() |
|
68 //! giving a valid destination Id (email/phone number). |
|
69 //! 4. RLbsTransmitPosition::CancelTransmitPosition() |
|
70 //! 5. Wait for request to complete |
|
71 //! |
|
72 //!@SYMTestExpectedResults No panic. X3P request completes with KErrCancel |
|
73 //! |
|
74 //!@SYMPREQ PREQ 163 |
|
75 //!@SYMREQ REQ 163.05 |
|
76 //!@SYMCR CR 0947 |
|
77 //! |
|
78 //!@SYMTestType CIT |
|
79 //!@SYMTestPriority 2 |
|
80 //!@SYMTestStatus Not Implemented |
|
81 |
|
82 // May not be possible to implement. Need to get the cancel in after the NRH sends the request to the NG, |
|
83 // but before the protocol module sends the MOLR to the network. |
|
84 |
|
85 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
86 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
87 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0002 |
|
88 |
|
89 END_TESTCASE LBS-X3P-CancelRefPos-0002 |
|
90 |
|
91 |
|
92 START_TESTCASE LBS-X3P-CancelRefPos-0003 |
|
93 |
|
94 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0003 |
|
95 //!@SYMTestCaseDesc Request X3P, then cancel request before MO-LR started () |
|
96 //! |
|
97 //!@SYMTestActions 1. Tell NetSim that next request should have a time delay (needed) |
|
98 //! 2. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() |
|
99 //! 3. Wait for notification from NetSim that MOLR has been sent |
|
100 //! 4. RLbsTransmitPosition::CancelTransmitPosition() |
|
101 //! |
|
102 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
103 //! |
|
104 //!@SYMPREQ PREQ 163 |
|
105 //!@SYMREQ REQ 163.05 |
|
106 //!@SYMCR CR 0947 |
|
107 //! |
|
108 //!@SYMTestType CIT |
|
109 //!@SYMTestPriority 1 |
|
110 //!@SYMTestStatus Not Implemented |
|
111 |
|
112 // ISSUE: Jarek mentioned using the timelag feature in NetSim for the MOLR, but not sure why that would be needed? |
|
113 |
|
114 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
115 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
116 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0003 |
|
117 |
|
118 END_TESTCASE LBS-X3P-CancelRefPos-0003 |
|
119 |
|
120 |
|
121 START_TESTCASE LBS-X3P-CancelRefPos-0004 |
|
122 |
|
123 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0004 |
|
124 //!@SYMTestCaseDesc Request X3P, then cancel request after location request received |
|
125 //! |
|
126 //!@SYMTestActions 1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() |
|
127 //! 2. Wait for notification of Location Request from network (sent in response to MOLR) |
|
128 //! 3. RLbsTransmitPosition::CancelTransmitPosition() |
|
129 //! |
|
130 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
131 //! |
|
132 //!@SYMPREQ PREQ 163 |
|
133 //!@SYMREQ REQ 163.05 |
|
134 //!@SYMCR CR 0947 |
|
135 //! |
|
136 //!@SYMTestType CIT |
|
137 //!@SYMTestPriority 1 |
|
138 //!@SYMTestStatus Not Implemented |
|
139 |
|
140 // ISSUE: Jarek mentioned using the timelag feature in NetSim for the MOLR, but not sure why that would be needed? |
|
141 |
|
142 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
143 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
144 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0004 |
|
145 |
|
146 END_TESTCASE LBS-X3P-CancelRefPos-0004 |
|
147 |
|
148 |
|
149 START_TESTCASE LBS-X3P-CancelRefPos-0005 |
|
150 |
|
151 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0005 |
|
152 //!@SYMTestCaseDesc Request X3P, then cancel request after responding to location request |
|
153 //! |
|
154 //!@SYMTestActions 1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() |
|
155 //! 2. Wait for notification of response to Location Request from network |
|
156 //! 3. RLbsTransmitPosition::CancelTransmitPosition() |
|
157 //! |
|
158 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
159 //! |
|
160 //!@SYMPREQ PREQ 163 |
|
161 //!@SYMREQ REQ 163.05 |
|
162 //!@SYMCR CR 0947 |
|
163 //! |
|
164 //!@SYMTestType CIT |
|
165 //!@SYMTestPriority 1 |
|
166 //!@SYMTestStatus Not Implemented |
|
167 |
|
168 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
169 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
170 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0005 |
|
171 |
|
172 END_TESTCASE LBS-X3P-CancelRefPos-0005 |
|
173 |
|
174 |
|
175 START_TESTCASE LBS-X3P-CancelRefPos-0006 |
|
176 |
|
177 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0006 |
|
178 //!@SYMTestCaseDesc Request X3P, then cancel request after protocol module closed MOLR but before it sent X3P complete to NRH |
|
179 //! |
|
180 //!@SYMTestActions 1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() |
|
181 //! |
|
182 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
183 //! |
|
184 //!@SYMPREQ PREQ 163 |
|
185 //!@SYMREQ REQ 163.05 |
|
186 //!@SYMCR CR 0947 |
|
187 //! |
|
188 //!@SYMTestType CIT |
|
189 //!@SYMTestPriority 1 |
|
190 //!@SYMTestStatus Not Implemented |
|
191 |
|
192 // ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim |
|
193 |
|
194 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
195 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
196 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0006 |
|
197 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos |
|
198 |
|
199 END_TESTCASE LBS-X3P-CancelRefPos-0006 |
|
200 |
|
201 |
|
202 START_TESTCASE LBS-X3P-CancelRefPos-0007 |
|
203 |
|
204 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0007 |
|
205 //!@SYMTestCaseDesc |
|
206 //! |
|
207 //!@SYMTestActions 1. Request current position be sent to a third party - RlbsTransmitPosition::TransmitPosition() |
|
208 //! 2. Try to cancel Active object using Cancel function and in the cancel function call CancelTransmitPostion() |
|
209 //! |
|
210 //!@SYMTestExpectedResults TransmitPosition should be canceled without any problem |
|
211 //! |
|
212 //!@SYMPREQ PREQ 163 |
|
213 //!@SYMREQ REQ 163.05 |
|
214 //!@SYMCR CR 0947 |
|
215 //! |
|
216 //!@SYMTestType CIT |
|
217 //!@SYMTestPriority 1 |
|
218 //!@SYMTestStatus Not Implemented |
|
219 |
|
220 // ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim |
|
221 |
|
222 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
223 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
224 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0007 |
|
225 |
|
226 END_TESTCASE LBS-X3P-CancelRefPos-0007 |
|
227 |
|
228 |
|
229 START_TESTCASE LBS-X3P-CancelRefPos-0008 |
|
230 |
|
231 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0008 |
|
232 //!@SYMTestCaseDesc |
|
233 //! |
|
234 //!@SYMTestActions 1. Create two transmit Positional objects |
|
235 //! 2. Call TransmitPosition from the first one |
|
236 //! 3. Try canceling on the second TransmitPosition object |
|
237 //! |
|
238 //!@SYMTestExpectedResults Transmit Postion should complete properly on first one. Cancel on second one should not have any effect |
|
239 //! |
|
240 //!@SYMPREQ PREQ 163 |
|
241 //!@SYMREQ REQ 163.05 |
|
242 //!@SYMCR CR 0947 |
|
243 //! |
|
244 //!@SYMTestType CIT |
|
245 //!@SYMTestPriority 1 |
|
246 //!@SYMTestStatus Not Implemented |
|
247 |
|
248 // ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim |
|
249 |
|
250 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
251 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
252 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0008 |
|
253 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos |
|
254 |
|
255 END_TESTCASE LBS-X3P-CancelRefPos-0008 |
|
256 |
|
257 |
|
258 START_TESTCASE LBS-X3P-CancelRefPos-0009 |
|
259 |
|
260 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0009 |
|
261 //!@SYMTestCaseDesc |
|
262 //! |
|
263 //!@SYMTestActions 1. Create two transmit Positional objects |
|
264 //! 2. Call TransmitPosition from the first one |
|
265 //! 3. Try canceling on the second TransmitPosition object using Active Object->Cancel() function |
|
266 //! |
|
267 //!@SYMTestExpectedResults Transmit Postion should complete properly on first one. Cancel on second one should not have any effect |
|
268 //! |
|
269 //!@SYMPREQ PREQ 163 |
|
270 //!@SYMREQ REQ 163.05 |
|
271 //!@SYMCR CR 0947 |
|
272 //! |
|
273 //!@SYMTestType CIT |
|
274 //!@SYMTestPriority 1 |
|
275 //!@SYMTestStatus Not Implemented |
|
276 |
|
277 // ISSUES: Currently not possible to implement. Think it would require new functionality (to insert a time lag) in NetSim |
|
278 |
|
279 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
280 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
281 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0009 |
|
282 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos |
|
283 |
|
284 END_TESTCASE LBS-X3P-CancelRefPos-0009 |
|
285 |
|
286 START_TESTCASE LBS-X3P-CancelRefPos-0011 |
|
287 |
|
288 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0011 |
|
289 //!@SYMTestCaseDesc Request X3P, then cancel after network has provided MoLrResult |
|
290 //! |
|
291 //!@SYMTestActions 1. Request current position be sent to a third party � RlbsTransmitPosition::TransmitPosition() |
|
292 //! 2. Wait for NetSim's notification that MOLR result has been sent to LBS |
|
293 //! 3. RLbsTransmitPosition::CancelTransmitPosition() |
|
294 //! |
|
295 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
296 //! |
|
297 //!@SYMPREQ PREQ 163 |
|
298 //!@SYMREQ REQ 163.05 |
|
299 //!@SYMCR CR 0947 |
|
300 //! |
|
301 //!@SYMTestType CIT |
|
302 //!@SYMTestPriority 1 |
|
303 //!@SYMTestStatus Not Implemented |
|
304 |
|
305 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
306 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
307 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0011 |
|
308 |
|
309 END_TESTCASE LBS-X3P-CancelRefPos-0011 |
|
310 |
|
311 |
|
312 START_TESTCASE LBS-X3P-CancelRefPos-0012 |
|
313 |
|
314 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0012 |
|
315 //!@SYMTestCaseDesc Request X3P, then cancel X3P RefPos active object |
|
316 //! |
|
317 //!@SYMTestActions 1. Request current position be sent to a third party - RlbsTransmitPosition::TransmitPosition() |
|
318 //! 2. Cancel X3P Refpos active object |
|
319 //! 3. wait for request to complete |
|
320 //! |
|
321 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
322 //! |
|
323 //!@SYMPREQ PREQ 163 |
|
324 //!@SYMREQ REQ 163.05 |
|
325 //!@SYMCR CR 0947 |
|
326 //! |
|
327 //!@SYMTestType CIT |
|
328 //!@SYMTestPriority 1 |
|
329 //!@SYMTestStatus Not Implemented |
|
330 |
|
331 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
332 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
333 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0012 |
|
334 |
|
335 END_TESTCASE LBS-X3P-CancelRefPos-0012 |
|
336 |
|
337 |
|
338 START_TESTCASE LBS-X3P-CancelRefPos-0013 |
|
339 |
|
340 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0013 |
|
341 //!@SYMTestCaseDesc Request X3P, then cancel X3P when X3P RefPos active object completes |
|
342 //! |
|
343 //!@SYMTestActions 1. Request current position be sent to a third party - RlbsTransmitPosition::TransmitPosition() |
|
344 //! 2. Cancel X3P when X3P Reference position is received |
|
345 //! 3. Wait for X3P to complete |
|
346 //! |
|
347 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel |
|
348 //! |
|
349 //!@SYMPREQ PREQ 163 |
|
350 //!@SYMREQ REQ 163.05 |
|
351 //!@SYMCR CR 0947 |
|
352 //! |
|
353 //!@SYMTestType CIT |
|
354 //!@SYMTestPriority 1 |
|
355 //!@SYMTestStatus Not Implemented |
|
356 |
|
357 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
358 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
359 RUN_TEST_STEP 060 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0013 |
|
360 |
|
361 END_TESTCASE LBS-X3P-CancelRefPos-0013 |
|
362 |
|
363 //This test added at end because it caused the next test fail. |
|
364 //Cancelling at More assistance data callback causes Network Gateway to ask for assistance data which affects next test |
|
365 |
|
366 START_TESTCASE LBS-X3P-CancelRefPos-0010 |
|
367 |
|
368 //!@SYMTestCaseID LBS-X3P-CancelRefPos-0010 |
|
369 //!@SYMTestCaseDesc Cancel X3P when we get NotifyMeasurementReportRequestMoreAssitanceData callback from NetSim |
|
370 //! |
|
371 //!@SYMTestActions 1. Set modDataIn.iAssDataTestMode = TModuleDataIn::EModuleTestModeAssDataOn_SomeDataNotAvailable so that |
|
372 //! Lbs system will ask for more assistance data to get position |
|
373 //! 2. Call TransmitPostion |
|
374 //! 3. Wait for NotifyMeasurementReportRequestMoreAssitanceData callback from NetSim |
|
375 //! 4. Call CancelTransmitPosition() to cancel X3P |
|
376 //! |
|
377 //!@SYMTestExpectedResults No panic. X3P request completes with KErrNone or KErrCancel in CActive::Cancel() |
|
378 //! |
|
379 //!@SYMPREQ PREQ 163 |
|
380 //!@SYMREQ REQ 163.05 |
|
381 //!@SYMCR CR 0947 |
|
382 //! |
|
383 //!@SYMTestType CIT |
|
384 //!@SYMTestPriority 1 |
|
385 //!@SYMTestStatus Not Implemented |
|
386 |
|
387 |
|
388 RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_InstallScheduler |
|
389 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_CreateVerifyPosInfos |
|
390 RUN_TEST_STEP 120 LbsX3PTestServer LbsX3PStep_Cancel c:\testdata\configs\lbsx3pcancelrefpos.ini LBS-X3P-Cancel-0010 |
|
391 //RUN_TEST_STEP 010 LbsX3PTestServer LbsStep_VerifyPosInfos |
|
392 |
|
393 END_TESTCASE LBS-X3P-CancelRefPos-0010 |
|
394 |
|
395 PRINT Stop LBS |
|
396 RUN_TEST_STEP 020 LbsX3PTestServer LbsStep_StopLbs |
|
397 |
|
398 // Re-select the real A-GPS integration module. |
|
399 RUN_UTILS DeleteFile c:\private\10282253\lbs\locmods\agpsintegmodule.ini |
|
400 |
|
401 // Delete network registration status text file |
|
402 RUN_UTILS DeleteFile c:\config.txt |