|
1 // |
|
2 // Copyright (c) 2005-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 lbs-lbsclient-api-stress-automated-illegaluse |
|
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 // |
|
20 // Tests all public elements of the RPositioner, RPositionServer |
|
21 // classes as a means of confidence that the APIs work as expected. |
|
22 // |
|
23 // The purpose is to provide a regression test suite of PublishedAll |
|
24 // APIs for: RPositioner, RPositionServer |
|
25 // The tests are fully automated. |
|
26 // |
|
27 |
|
28 |
|
29 |
|
30 LOAD_SUITE t_lbsclient |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0001 |
|
36 DELAY 5000 |
|
37 |
|
38 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0001 |
|
39 |
|
40 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0001 |
|
41 //!@SYMAPI |
|
42 //! RPositionSever::Connect() |
|
43 //! RPositionSever::Close() |
|
44 //!@SYMAuthor jguillermo |
|
45 //!@SYMCreationDate 6/16/2008 |
|
46 //!@SYMTestCaseDesc Illegal, RPositionServer multiple connect |
|
47 //!@SYMTestActions |
|
48 //! 1. Connect to position server |
|
49 //! 2. Connect to position server |
|
50 //! 3. Close position server |
|
51 //!@SYMTestStatus Verified |
|
52 //!@SYMTestPriority High |
|
53 //!@SYMTestExpectedResults |
|
54 //! Try to set a connection with the position server more than one consecutive time |
|
55 //!@SYMTestType CIT |
|
56 |
|
57 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
58 CREATE_OBJECT RPositionServer posser |
|
59 CREATE_OBJECT RPositioner pos |
|
60 COMMAND posser Connect |
|
61 COMMAND posser Connect |
|
62 COMMAND posser Close |
|
63 END_TEST_BLOCK !PanicCode=5 |
|
64 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0001 |
|
65 |
|
66 |
|
67 |
|
68 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0002 |
|
69 DELAY 5000 |
|
70 |
|
71 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0002 |
|
72 |
|
73 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0002 |
|
74 //!@SYMAPI |
|
75 //! RPositionSever::Connect() |
|
76 //! RPositionSever::Close() |
|
77 //!@SYMAuthor jguillermo |
|
78 //!@SYMCreationDate 6/16/2008 |
|
79 //!@SYMTestCaseDesc Illegal, RPositionServer multiple close |
|
80 //!@SYMTestActions |
|
81 //! 1. Connecto to position server |
|
82 //! 2. Close position server |
|
83 //! 3. Close position server |
|
84 //!@SYMTestStatus Verified |
|
85 //!@SYMTestPriority High |
|
86 //!@SYMTestExpectedResults |
|
87 //! Try to close a session with the position server once it has been closed |
|
88 //!@SYMTestType CIT |
|
89 |
|
90 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
91 CREATE_OBJECT RPositionServer posser |
|
92 CREATE_OBJECT RPositioner pos |
|
93 COMMAND posser Connect |
|
94 COMMAND posser Close |
|
95 COMMAND posser Close |
|
96 END_TEST_BLOCK |
|
97 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0002 |
|
98 |
|
99 |
|
100 |
|
101 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0003 |
|
102 DELAY 5000 |
|
103 |
|
104 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0003 |
|
105 |
|
106 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0003 |
|
107 //!@SYMAPI |
|
108 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
109 //! RPositionSever::Close() |
|
110 //!@SYMAuthor jguillermo |
|
111 //!@SYMCreationDate 6/16/2008 |
|
112 //!@SYMTestCaseDesc Illegal, Set position module id without position server session |
|
113 //!@SYMTestActions |
|
114 //! 1. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
115 //!@SYMTestStatus Verified |
|
116 //!@SYMTestPriority High |
|
117 //!@SYMTestExpectedResults |
|
118 //! Try to set the position module ID without a position server session |
|
119 //!@SYMTestType CIT |
|
120 |
|
121 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
122 CREATE_OBJECT RPositionServer posser |
|
123 CREATE_OBJECT RPositioner pos |
|
124 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0003-0001-SetPositionerModuleId_command01 |
|
125 END_TEST_BLOCK !PanicCode=6 |
|
126 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0003 |
|
127 |
|
128 |
|
129 |
|
130 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0004 |
|
131 DELAY 5000 |
|
132 |
|
133 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0004 |
|
134 |
|
135 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0004 |
|
136 //!@SYMAPI |
|
137 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
138 //! RPositionSever::Close() |
|
139 //!@SYMAuthor jguillermo |
|
140 //!@SYMCreationDate 6/16/2008 |
|
141 //!@SYMTestCaseDesc Illegal, Open close positioner without position server session |
|
142 //!@SYMTestActions |
|
143 //! 1. Open positioner session (PositionServerInstance = posser) |
|
144 //! 2. Close positioner |
|
145 //!@SYMTestStatus Verified |
|
146 //!@SYMTestPriority High |
|
147 //!@SYMTestExpectedResults |
|
148 //! Try to open and close a position server session without a position server sesssion |
|
149 //!@SYMTestType CIT |
|
150 |
|
151 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
152 CREATE_OBJECT RPositionServer posser |
|
153 CREATE_OBJECT RPositioner pos |
|
154 COMMAND pos Open LBS-LBSCLIENT-Ilegaluse-0004-0001-Open_command01 |
|
155 COMMAND pos Close |
|
156 END_TEST_BLOCK !PanicCode=6 |
|
157 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0004 |
|
158 |
|
159 |
|
160 |
|
161 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0005 |
|
162 DELAY 5000 |
|
163 |
|
164 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0005 |
|
165 |
|
166 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0005 |
|
167 //!@SYMAPI |
|
168 //! RPositioner::SetRequestor(CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC {ref}) |
|
169 //!@SYMAuthor jguillermo |
|
170 //!@SYMCreationDate 6/16/2008 |
|
171 //!@SYMTestCaseDesc Illegal, Set requestor without position server session |
|
172 //!@SYMTestActions |
|
173 //! 1. Set requestor (RequestorType = ERequestorService; RequestorFormat = EFormatApplication; RequestorData = Location-GPS) |
|
174 //!@SYMTestStatus Verified |
|
175 //!@SYMTestPriority High |
|
176 //!@SYMTestExpectedResults |
|
177 //! Try to set a requestor without a position server session |
|
178 //!@SYMTestType CIT |
|
179 |
|
180 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
181 CREATE_OBJECT RPositioner pos |
|
182 COMMAND pos SetRequestor LBS-LBSCLIENT-Ilegaluse-0005-0001-SetRequestor_command01 |
|
183 END_TEST_BLOCK !PanicCode=6 |
|
184 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0005 |
|
185 |
|
186 |
|
187 |
|
188 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0006 |
|
189 DELAY 5000 |
|
190 |
|
191 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0006 |
|
192 |
|
193 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0006 |
|
194 //!@SYMAPI |
|
195 //! RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase {ref}) |
|
196 //! RPositioner::NotifyPositionUpdate(TPositionInfoBase {ref}, TRequestStatus {ref}) |
|
197 //! RPositionSever::Connect() |
|
198 //! RPositionSever::Close() |
|
199 //!@SYMAuthor jguillermo |
|
200 //!@SYMCreationDate 6/16/2008 |
|
201 //!@SYMTestCaseDesc Illegal, Get position without positioner session |
|
202 //!@SYMTestActions |
|
203 //! 1. Connect to position server |
|
204 //! 2. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
205 //! 3. Get Position (PositionServerInstance = posser; Latitude = Any; Longitude = Any; MaximumError = Any; PositionAccuracy = Any; Altitude = Any; MaximumAltitudeError = Any; AltitudeAccuracyLimit = Any; Speed = Any; MaxSpeedError = 0.0; StorePositionData = FALSE; ExpectedDataQualityStatus = {SetDataQualityStatusVars,EDataQualityNormal}; MinimumSuccessfullPositionQueryCount = 1; Iterations = 1) |
|
206 //! 4. Close position server |
|
207 //! |
|
208 //!@SYMTestStatus Verified |
|
209 //!@SYMTestPriority High |
|
210 //!@SYMTestExpectedResults |
|
211 //! Try to get the position without a positioner session |
|
212 //!@SYMTestType CIT |
|
213 |
|
214 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
215 CREATE_OBJECT RPositionServer posser |
|
216 CREATE_OBJECT RPositioner pos |
|
217 COMMAND posser Connect |
|
218 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0006-0001-SetPositionerModuleId_command02 |
|
219 COMMAND pos GetPosition LBS-LBSCLIENT-Ilegaluse-0006-0001-GetPosition_command03 |
|
220 COMMAND posser Close |
|
221 END_TEST_BLOCK !PanicCode=6 |
|
222 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0006 |
|
223 |
|
224 |
|
225 |
|
226 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0007 |
|
227 DELAY 5000 |
|
228 |
|
229 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0007 |
|
230 |
|
231 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0007 |
|
232 //!@SYMAPI |
|
233 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
234 //! RPositioner::SetRequestor(CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC {ref}) |
|
235 //! RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase {ref}) |
|
236 //! RPositioner::NotifyPositionUpdate(TPositionInfoBase {ref}, TRequestStatus {ref}) |
|
237 //! RPositioner::Close() |
|
238 //! RPositionSever::Connect() |
|
239 //! RPositionSever::Close() |
|
240 //!@SYMAuthor jguillermo |
|
241 //!@SYMCreationDate 6/16/2008 |
|
242 //!@SYMTestCaseDesc Illegal, Set position query time-out to 1 seconds |
|
243 //!@SYMTestActions |
|
244 //! 1. Connect to position server |
|
245 //! 2. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
246 //! 3. Open positioner (PositionServerInstance = posser) |
|
247 //! 4. Set requestor (RequestorType = ERequestorService; RequestorFormat = EFormatApplication; RequestorData = Location-GPS) |
|
248 //! 5. Set update options (UpdateInterval = {TimesAndIntervals,DEFAULT_UPDATE_INTERVAL}; UpdateTimeout = {TimesAndIntervals,DEFAULT_UPDATE_TIMEOUT}; MaxAge = 0; AcceptPartialUpdates = FALSE) |
|
249 //! 6. Close positioner session |
|
250 //! 7. Close position server |
|
251 //! |
|
252 |
|
253 //! |
|
254 //!@SYMTestStatus Verified |
|
255 //!@SYMTestPriority High |
|
256 //!@SYMTestExpectedResults |
|
257 //! Set position query time-out to 1 seconds |
|
258 //!@SYMTestType CIT |
|
259 |
|
260 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
261 CREATE_OBJECT RPositionServer posser |
|
262 CREATE_OBJECT RPositioner pos |
|
263 COMMAND posser Connect |
|
264 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0007-0001-SetPositionerModuleId_command02 |
|
265 COMMAND pos Open LBS-LBSCLIENT-Ilegaluse-0007-0001-Open_command03 |
|
266 COMMAND pos SetRequestor LBS-LBSCLIENT-Ilegaluse-0007-0001-SetRequestor_command04 |
|
267 COMMAND pos SetUpdateOptions LBS-LBSCLIENT-Ilegaluse-0007-0001-SetUpdateOptions_command05 |
|
268 COMMAND pos Close |
|
269 COMMAND posser Close |
|
270 END_TEST_BLOCK |
|
271 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0007 |
|
272 |
|
273 |
|
274 |
|
275 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0008 |
|
276 DELAY 5000 |
|
277 |
|
278 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0008 |
|
279 |
|
280 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0008 |
|
281 //!@SYMAPI |
|
282 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
283 //! RPositioner::SetRequestor(CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC {ref}) |
|
284 //! RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase {ref}) |
|
285 //! RPositioner::NotifyPositionUpdate(TPositionInfoBase {ref}, TRequestStatus {ref}) |
|
286 //! RPositioner::Close() |
|
287 //! RPositionSever::Connect() |
|
288 //! RPositionSever::Close() |
|
289 //!@SYMAuthor jguillermo |
|
290 //!@SYMCreationDate 6/16/2008 |
|
291 //!@SYMTestCaseDesc Illegal, Set position query time-out to -1 seconds |
|
292 //!@SYMTestActions |
|
293 //! 1. Connect to position server |
|
294 //! 2. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
295 //! 3. Open positioner (PositionServerInstance = posser) |
|
296 //! 4. Set requestor (RequestorType = ERequestorService; RequestorFormat = EFormatApplication; RequestorData = Location-GPS) |
|
297 //! 5. Set update options (UpdateInterval = {TimesAndIntervals,DEFAULT_UPDATE_INTERVAL}; UpdateTimeout = {TimesAndIntervals,DEFAULT_UPDATE_TIMEOUT}; MaxAge = 0; AcceptPartialUpdates = FALSE) |
|
298 //! 6. Close positioner session |
|
299 //! 7. Close position server |
|
300 //! |
|
301 |
|
302 //! |
|
303 //!@SYMTestStatus Verified |
|
304 //!@SYMTestPriority High |
|
305 //!@SYMTestExpectedResults |
|
306 //! Set position query time-out to -1 seconds |
|
307 //!@SYMTestType CIT |
|
308 |
|
309 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
310 CREATE_OBJECT RPositionServer posser |
|
311 CREATE_OBJECT RPositioner pos |
|
312 COMMAND posser Connect |
|
313 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0008-0001-SetPositionerModuleId_command02 |
|
314 COMMAND pos Open LBS-LBSCLIENT-Ilegaluse-0008-0001-Open_command03 |
|
315 COMMAND pos SetRequestor LBS-LBSCLIENT-Ilegaluse-0008-0001-SetRequestor_command04 |
|
316 COMMAND pos SetUpdateOptions LBS-LBSCLIENT-Ilegaluse-0008-0001-SetUpdateOptions_command05 |
|
317 COMMAND pos Close |
|
318 COMMAND posser Close |
|
319 END_TEST_BLOCK |
|
320 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0008 |
|
321 |
|
322 |
|
323 |
|
324 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0009 |
|
325 DELAY 5000 |
|
326 |
|
327 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0009 |
|
328 |
|
329 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0009 |
|
330 //!@SYMAPI |
|
331 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
332 //! RPositioner::SetRequestor(CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC {ref}) |
|
333 //! RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase {ref}) |
|
334 //! RPositioner::NotifyPositionUpdate(TPositionInfoBase {ref}, TRequestStatus {ref}) |
|
335 //! RPositioner::Close() |
|
336 //! RPositionSever::Connect() |
|
337 //! RPositionSever::Close() |
|
338 //!@SYMAuthor jguillermo |
|
339 //!@SYMCreationDate 6/16/2008 |
|
340 //!@SYMTestCaseDesc Illegal, Set position update interval to -1 seconds |
|
341 //!@SYMTestActions |
|
342 //! 1. Connect to position server |
|
343 //! 2. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
344 //! 3. Open positioner (PositionServerInstance = posser) |
|
345 //! 4. Set requestor (RequestorType = ERequestorService; RequestorFormat = EFormatApplication; RequestorData = Location-GPS) |
|
346 //! 5. Set update options (UpdateInterval = {TimesAndIntervals,DEFAULT_UPDATE_INTERVAL}; UpdateTimeout = {TimesAndIntervals,DEFAULT_UPDATE_TIMEOUT}; MaxAge = 0; AcceptPartialUpdates = FALSE) |
|
347 //! 6. Close positioner session |
|
348 //! 7. Close position server |
|
349 //! |
|
350 |
|
351 //! |
|
352 //!@SYMTestStatus Verified |
|
353 //!@SYMTestPriority High |
|
354 //!@SYMTestExpectedResults |
|
355 //! Set position update interval to -1 seconds |
|
356 //!@SYMTestType CIT |
|
357 |
|
358 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
359 CREATE_OBJECT RPositionServer posser |
|
360 CREATE_OBJECT RPositioner pos |
|
361 COMMAND posser Connect |
|
362 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0009-0001-SetPositionerModuleId_command02 |
|
363 COMMAND pos Open LBS-LBSCLIENT-Ilegaluse-0009-0001-Open_command03 |
|
364 COMMAND pos SetRequestor LBS-LBSCLIENT-Ilegaluse-0009-0001-SetRequestor_command04 |
|
365 COMMAND pos SetUpdateOptions LBS-LBSCLIENT-Ilegaluse-0009-0001-SetUpdateOptions_command05 |
|
366 COMMAND pos Close |
|
367 COMMAND posser Close |
|
368 END_TEST_BLOCK |
|
369 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0009 |
|
370 |
|
371 |
|
372 |
|
373 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0010 |
|
374 DELAY 5000 |
|
375 |
|
376 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0010 |
|
377 |
|
378 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0010 |
|
379 //!@SYMAPI |
|
380 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
381 //! RPositioner::SetRequestor(CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC {ref}) |
|
382 //! RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase {ref}) |
|
383 //! RPositioner::NotifyPositionUpdate(TPositionInfoBase {ref}, TRequestStatus {ref}) |
|
384 //! RPositioner::Close() |
|
385 //! RPositionSever::Connect() |
|
386 //! RPositionSever::Close() |
|
387 //!@SYMAuthor jguillermo |
|
388 //!@SYMCreationDate 6/16/2008 |
|
389 //!@SYMTestCaseDesc Illegal, Set Max Age to -1 seconds |
|
390 //!@SYMTestActions |
|
391 //! 1. Connect to position server |
|
392 //! 2. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
393 //! 3. Open positioner (PositionServerInstance = posser) |
|
394 //! 4. Set requestor (RequestorType = ERequestorService; RequestorFormat = EFormatApplication; RequestorData = Location-GPS) |
|
395 //! 5. Set update options (UpdateInterval = {TimesAndIntervals,DEFAULT_UPDATE_INTERVAL}; UpdateTimeout = {TimesAndIntervals,DEFAULT_UPDATE_TIMEOUT}; MaxAge = -1000000; AcceptPartialUpdates = FALSE) |
|
396 //! 6. Close positioner session |
|
397 //! 7. Close position server |
|
398 //! |
|
399 |
|
400 //! |
|
401 //!@SYMTestStatus Verified |
|
402 //!@SYMTestPriority High |
|
403 //!@SYMTestExpectedResults |
|
404 //! Set Max Age to -1 seconds |
|
405 //!@SYMTestType CIT |
|
406 |
|
407 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
408 CREATE_OBJECT RPositionServer posser |
|
409 CREATE_OBJECT RPositioner pos |
|
410 COMMAND posser Connect |
|
411 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0010-0001-SetPositionerModuleId_command02 |
|
412 COMMAND pos Open LBS-LBSCLIENT-Ilegaluse-0010-0001-Open_command03 |
|
413 COMMAND pos SetRequestor LBS-LBSCLIENT-Ilegaluse-0010-0001-SetRequestor_command04 |
|
414 COMMAND pos SetUpdateOptions LBS-LBSCLIENT-Ilegaluse-0010-0001-SetUpdateOptions_command05 |
|
415 COMMAND pos Close |
|
416 COMMAND posser Close |
|
417 END_TEST_BLOCK !PanicCode=12 |
|
418 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0010 |
|
419 |
|
420 |
|
421 |
|
422 //! Delay required by testcase LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0011 |
|
423 DELAY 5000 |
|
424 |
|
425 START_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0011 |
|
426 |
|
427 //!@SYMTestCaseID LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0011 |
|
428 //!@SYMAPI |
|
429 //! RPositioner::Open(RPositionServer {ref}, TPositionModuleId) |
|
430 //! RPositioner::SetRequestor(CRequestor::TRequestorType, CRequestor::TRequestorFormat, const TDesC {ref}) |
|
431 //! RPositioner::SetUpdateOptions(const TPositionUpdateOptionsBase {ref}) |
|
432 //! RPositioner::NotifyPositionUpdate(TPositionInfoBase {ref}, TRequestStatus {ref}) |
|
433 //! RPositioner::Close() |
|
434 //! RPositionSever::Connect() |
|
435 //! RPositionSever::Close() |
|
436 //!@SYMAuthor jguillermo |
|
437 //!@SYMCreationDate 6/16/2008 |
|
438 //!@SYMTestCaseDesc Illegal, Set Too Big Max Age |
|
439 //!@SYMTestActions |
|
440 //! 1. Connect to position server |
|
441 //! 2. Set positioner module ID (PositionServerInstance = posser; ModuleId = {ModuleIdVars,MODULEID_DEFAULT}) |
|
442 //! 3. Open positioner (PositionServerInstance = posser) |
|
443 //! 4. Set requestor (RequestorType = ERequestorService; RequestorFormat = EFormatApplication; RequestorData = Location-GPS) |
|
444 //! 5. Set update options (UpdateInterval = {TimesAndIntervals,DEFAULT_UPDATE_INTERVAL}; UpdateTimeout = {TimesAndIntervals,DEFAULT_UPDATE_TIMEOUT}; MaxAge = 10000000; AcceptPartialUpdates = FALSE) |
|
445 //! 6. Close positioner session |
|
446 //! 7. Close position server |
|
447 //! |
|
448 |
|
449 //! |
|
450 //!@SYMTestStatus Verified |
|
451 //!@SYMTestPriority High |
|
452 //!@SYMTestExpectedResults |
|
453 //! Set Too Big Max Age |
|
454 //!@SYMTestType CIT |
|
455 |
|
456 START_TEST_BLOCK 300 t_lbsclient \lbs\lbsclient\lbs-lbsclient-api-stress-automated-illegaluse.ini |
|
457 CREATE_OBJECT RPositionServer posser |
|
458 CREATE_OBJECT RPositioner pos |
|
459 COMMAND posser Connect |
|
460 COMMAND pos SetPositionerModuleId LBS-LBSCLIENT-Ilegaluse-0011-0001-SetPositionerModuleId_command02 |
|
461 COMMAND pos Open LBS-LBSCLIENT-Ilegaluse-0011-0001-Open_command03 |
|
462 COMMAND pos SetRequestor LBS-LBSCLIENT-Ilegaluse-0011-0001-SetRequestor_command04 |
|
463 COMMAND !Error=-6 pos SetUpdateOptions LBS-LBSCLIENT-Ilegaluse-0011-0001-SetUpdateOptions_command05 |
|
464 COMMAND pos Close |
|
465 COMMAND posser Close |
|
466 END_TEST_BLOCK |
|
467 END_TESTCASE LBS-LBSCLIENT-API-STRESS-AUTOMATED-ILLEGALUSE-0011 |
|
468 |
|
469 DELAY 10000 |
|
470 |