|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // Publish&Subscribe definitions |
|
20 // From SensrvInternalPSKeys.h |
|
21 [Define] |
|
22 KSensrvLeaveFirstStubConstruction 1 |
|
23 KSensrvLeaveSecondStubConstruction 2 |
|
24 KSensrvStubConstructionDelay 3 |
|
25 KSensrvFirstStubChannelCount 4 |
|
26 KSensrvSecondStubChannelCount 5 |
|
27 KSensrvLatestOpenedChannel 6 |
|
28 KSensrvLatestClosedChannel 7 |
|
29 KSensrvLatestStartListeningChannel 8 |
|
30 KSensrvLatestStopListeningChannel 9 |
|
31 KSensrvSamplingInterval 10 |
|
32 KSensrvStubConstructionJam 11 |
|
33 KSensrvStartListeningJam 12 |
|
34 KSensrvStopListeningJam 13 |
|
35 KSensrvOpenChannelAsyncJam 14 |
|
36 KSensrvCloseChannelAsyncJam 15 |
|
37 KSensrvChannelOpenedError 16 |
|
38 KSensrvChannelClosedError 17 |
|
39 KSensrvStartListeningLeave 18 |
|
40 KSensrvStopListeningLeave 19 |
|
41 KSensrvDataListeningJam 20 |
|
42 KSensrvDataListeningBufferFilledError 21 |
|
43 KSensrvForceBufferFilledJam 22 |
|
44 KSensrvForceBufferFilledLeave 23 |
|
45 KSensrvOpenChannelMethodJam 24 |
|
46 KSensrvCloseChannelMethodJam 25 |
|
47 KSensrvOpenChannelError 26 |
|
48 KSensrvCloseChannelError 27 |
|
49 KSensrvChannelOpenedWithError 28 |
|
50 KSensrvPropertyChanged 29 |
|
51 KSensrvOpenChannelMethodPanic 30 |
|
52 KSensrvOpenChannelAsyncPanic 31 |
|
53 KSensrvCloseChannelMethodPanic 32 |
|
54 KSensrvCloseChannelAsyncPanic 33 |
|
55 KSensrvStartListeningMethodPanic 34 |
|
56 KSensrvDataListeningPanic 35 |
|
57 KSensrvStopListeningMethodPanic 36 |
|
58 KSensrvStopListeningAsyncPanic 37 |
|
59 KSensrvForceBufferFilledPanic 38 |
|
60 KSensrvSSYUnloadingCount 39 |
|
61 KSensrvBufferFilledNegativeCount 40 |
|
62 KSensrvGetAllPropertyCount 41 |
|
63 KSensrvGetPropertyLeave 42 |
|
64 KSensrvGetPropertyJam 43 |
|
65 KSensrvSetPropertyLeave 44 |
|
66 KSensrvSetPropertyJam 45 |
|
67 KSensrvGetAllPropertiesLeave 46 |
|
68 KSensrvGetAllPropertiesJam 47 |
|
69 KSensrvGetPropertyPanic 48; |
|
70 KSensrvSetPropertyPanic 49; |
|
71 KSensrvGetAllPropertiesPanic 50; |
|
72 KSensrvCheckPropertyDependenciesLeave 51 |
|
73 KSensrvCheckPropertyDependenciesJam 52 |
|
74 KSensrvCheckPropertyDependenciesPanic 53 |
|
75 KSensrvGetDataOverflowTest 54 |
|
76 KSensrvGetDataNotFoundTest 55 |
|
77 KSensorTestModuleProcessCommand 56 |
|
78 KSensrvSingleBufferFilledNegativeCount 57 |
|
79 KSensrvCreateNewChannelsFirst 58 |
|
80 KSensrvCreateNewChannelsSecond 59 |
|
81 KSensrvRemoveNewChannelsFirst 60 |
|
82 KSensrvRemoveNewChannelsSecond 61 |
|
83 KSensrvRegisterZeroChannels 62 |
|
84 KSensrvRegisterInvalidChannels 63 |
|
85 KSensrvFirstStubDoubleTappingChannelCount 64 |
|
86 KSensrvSetPropertyArray 65 |
|
87 KSensrvCheckPluginLoaded 66 |
|
88 |
|
89 KSensrvSignalAftedDataReseived 100 |
|
90 KSensrvWaitTestCompletion 101 |
|
91 |
|
92 KSensorTestModuleComplete1 200 |
|
93 KSensorTestModuleComplete2 201 |
|
94 KSensorTestModuleComplete3 202 |
|
95 KSensorTestModuleComplete4 203 |
|
96 KSensorTestModuleComplete5 204 |
|
97 KSensorTestModuleComplete6 205 |
|
98 KSensorTestModuleComplete7 206 |
|
99 KSensorTestModuleComplete8 207 |
|
100 KSensorTestModuleComplete9 208 |
|
101 KSensorTestModuleComplete10 209 |
|
102 KSensorTestModuleComplete11 210 |
|
103 KSensorTestModuleComplete12 211 |
|
104 KSensorTestModuleComplete13 212 |
|
105 KSensorTestModuleComplete14 213 |
|
106 KSensorTestModuleComplete15 214 |
|
107 |
|
108 // Errors |
|
109 KErrNotFound -1 |
|
110 KErrGeneral -2 |
|
111 KErrCancel -3 |
|
112 KErrNoMemory -4 |
|
113 KErrNotSupported -5 |
|
114 KErrArgument -6 |
|
115 KErrOverflow -9 |
|
116 KErrAlreadyExists -11 |
|
117 KErrPermissionDenied -46 |
|
118 KErrAccessDenied -21 |
|
119 |
|
120 ESensrvMinor 1 |
|
121 ESensrvFatal 2 |
|
122 |
|
123 // Property from sensrvgeneralproperties.h |
|
124 KSensrvPropIdDataRate 2 |
|
125 KSensrvPropIdAvailability 4 |
|
126 KSensrvPropIdMeasureRange 5 |
|
127 KSensrvPropIdChannelScale 9 |
|
128 KSensrvSensorDescription 19 |
|
129 |
|
130 // Commands for test process (SensorTestModuleTypes.h) |
|
131 KProcessCommandSetProperty 1 |
|
132 KProcessCommandOpenChannel 2 |
|
133 KProcessCommandCloseChannel 3 |
|
134 KProcessCommandFindChannel 4 |
|
135 |
|
136 // Condition enumerations |
|
137 ESensrvOrConditionSet 0 |
|
138 ESensrvAndConditionSet 1 |
|
139 |
|
140 ESensrvSingleLimitCondition 0 |
|
141 ESensrvRangeConditionLowerLimit 1 |
|
142 ESensrvRangeConditionUpperLimit 2 |
|
143 ESensrvBinaryCondition 3 |
|
144 |
|
145 ESensrvOperatorEquals 0 |
|
146 ESensrvOperatorGreaterThan 1 |
|
147 ESensrvOperatorGreaterThanOrEquals 2 |
|
148 ESensrvOperatorLessThan 3 |
|
149 ESensrvOperatorLessThanOrEquals 4 |
|
150 ESensrvOperatorBinaryAnd 5 |
|
151 ESensrvOperatorBinaryAll 6 |
|
152 |
|
153 KSensorTestModuleEventChannelType 519761901 |
|
154 KSensrvChannelIdAccelerometerXYZAxisData 270553214 |
|
155 KSensrvChannelTypeIdAccelerometerDoubleTappingData 270553217 |
|
156 |
|
157 KSensrvAccelerometerDataItemSize 20 |
|
158 KSensrvEventChannelDataItemSize 16 |
|
159 KSensrvDoubleTappingDataItemSize 12 |
|
160 |
|
161 iAxisX 1 |
|
162 iAxisY 2 |
|
163 iAxisZ 3 |
|
164 |
|
165 iTimeStampFromEventPlugin 0 |
|
166 iTimeStampFromAccelerometerPlugin 1 |
|
167 |
|
168 iDirection 1 |
|
169 |
|
170 KSensrvUncertainExpectedValue 99999999 |
|
171 |
|
172 // Change types |
|
173 ESensrvChannelRemoved 1 |
|
174 ESensrvChannelAdded 2 |
|
175 |
|
176 // SetPropertyIndication types |
|
177 ESetPropertyIndicationUnknown 0 |
|
178 ESetPropertyIndicationAvailable 1 |
|
179 ESetPropertyIndicationPossible 2 |
|
180 ESetPropertyIndicationUnavailable 3 |
|
181 |
|
182 //OOM Testing |
|
183 KNumberToRepeatOOMTest 5 |
|
184 [Enddefine] |
|
185 |
|
186 |
|
187 [StifSettings] |
|
188 // Add stif settings here |
|
189 CheckHeapBalance= on |
|
190 [EndStifSettings] |
|
191 |
|
192 [Test] |
|
193 title Check plugin loaded just once channel opened |
|
194 create SensorTestModule testClass |
|
195 |
|
196 oomignorefailure ON |
|
197 loop KNumberToRepeatOOMTest |
|
198 oomheapfailnext 5 |
|
199 |
|
200 |
|
201 testClass ShutdownServer |
|
202 pause 2000 |
|
203 testClass StartServer |
|
204 pause 2000 |
|
205 testClass GetPSValue KSensrvCheckPluginLoaded 0 |
|
206 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
207 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
208 testClass GetPSValue KSensrvCheckPluginLoaded 1 |
|
209 testClass ShutdownServer |
|
210 |
|
211 endloop |
|
212 oomignorefailure OFF |
|
213 oomheaptonormal |
|
214 |
|
215 delete testClass |
|
216 [Endtest] |
|
217 |
|
218 [Test] |
|
219 title Open and Close two channels |
|
220 create SensorTestModule testClass |
|
221 create SensorTestModule testClass1 |
|
222 |
|
223 oomignorefailure ON |
|
224 loop KNumberToRepeatOOMTest |
|
225 oomheapfailnext 5 |
|
226 |
|
227 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
228 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
229 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
230 testClass1 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
231 testClass1 CloseChannel |
|
232 testClass CloseChannel |
|
233 |
|
234 endloop |
|
235 oomignorefailure OFF |
|
236 oomheaptonormal |
|
237 |
|
238 delete testClass |
|
239 delete testClass1 |
|
240 create SensorTestModule sd |
|
241 sd ShutdownServer |
|
242 delete sd |
|
243 [Endtest] |
|
244 |
|
245 |
|
246 |
|
247 [Test] |
|
248 title Start server without Ssystubs |
|
249 create SensorTestModule testClass |
|
250 |
|
251 oomignorefailure ON |
|
252 loop KNumberToRepeatOOMTest |
|
253 oomheapfailnext 5 |
|
254 |
|
255 testClass ShutdownServer |
|
256 testClass SetPSValue KSensrvLeaveFirstStubConstruction KErrNoMemory |
|
257 testClass SetPSValue KSensrvLeaveSecondStubConstruction KErrNoMemory |
|
258 testClass StartServer |
|
259 pause 3000 |
|
260 testClass ShutdownServer |
|
261 |
|
262 endloop |
|
263 oomignorefailure OFF |
|
264 oomheaptonormal |
|
265 |
|
266 delete testClass |
|
267 [Endtest] |
|
268 |
|
269 [Test] |
|
270 title Start server with one Ssystub |
|
271 create SensorTestModule testClass |
|
272 |
|
273 oomignorefailure ON |
|
274 loop KNumberToRepeatOOMTest |
|
275 oomheapfailnext 5 |
|
276 |
|
277 testClass ShutdownServer |
|
278 testClass SetPSValue KSensrvLeaveFirstStubConstruction KErrNoMemory |
|
279 testClass StartServer |
|
280 pause 3000 |
|
281 testClass ShutdownServer |
|
282 |
|
283 endloop |
|
284 oomignorefailure OFF |
|
285 oomheaptonormal |
|
286 |
|
287 delete testClass |
|
288 [Endtest] |
|
289 |
|
290 [Test] |
|
291 title Start server with two Ssystub |
|
292 create SensorTestModule testClass |
|
293 |
|
294 oomignorefailure ON |
|
295 loop KNumberToRepeatOOMTest |
|
296 oomheapfailnext 5 |
|
297 |
|
298 testClass ShutdownServer |
|
299 testClass StartServer |
|
300 pause 3000 |
|
301 testClass ShutdownServer |
|
302 |
|
303 endloop |
|
304 oomignorefailure OFF |
|
305 oomheaptonormal |
|
306 |
|
307 delete testClass |
|
308 [Endtest] |
|
309 |
|
310 |
|
311 // Invalid because of new static channel registration |
|
312 /* |
|
313 [Test] |
|
314 title Start server with zero and one channel |
|
315 create SensorTestModule testClass |
|
316 testClass ShutdownServer |
|
317 testClass SetPSValue KSensrvFirstStubChannelCount 0 |
|
318 testClass SetPSValue KSensrvSecondStubChannelCount 1 |
|
319 testClass StartServer |
|
320 pause 3000 |
|
321 testClass ShutdownServer |
|
322 delete testClass |
|
323 [Endtest] |
|
324 */ |
|
325 |
|
326 |
|
327 [Test] |
|
328 title Create and destroy channel finder |
|
329 create SensorTestModule testClass |
|
330 |
|
331 oomignorefailure ON |
|
332 loop KNumberToRepeatOOMTest |
|
333 oomheapfailnext 5 |
|
334 |
|
335 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
336 testClass CreateAndDestroyChannelFinder |
|
337 testClass ShutdownServer |
|
338 |
|
339 endloop |
|
340 oomignorefailure OFF |
|
341 oomheaptonormal |
|
342 |
|
343 delete testClass |
|
344 [Endtest] |
|
345 |
|
346 [Test] |
|
347 title Create two channel finders |
|
348 create SensorTestModule testClass |
|
349 create SensorTestModule testClass1 |
|
350 |
|
351 oomignorefailure ON |
|
352 loop KNumberToRepeatOOMTest |
|
353 oomheapfailnext 5 |
|
354 |
|
355 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
356 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
357 testClass CreateAndDestroyChannelFinder |
|
358 testClass1 CreateAndDestroyChannelFinder |
|
359 testClass ShutdownServer |
|
360 |
|
361 endloop |
|
362 oomignorefailure OFF |
|
363 oomheaptonormal |
|
364 |
|
365 delete testClass |
|
366 delete testClass1 |
|
367 [Endtest] |
|
368 |
|
369 [Test] |
|
370 title Find channel: Find all channels |
|
371 create SensorTestModule testClass |
|
372 |
|
373 oomignorefailure ON |
|
374 loop KNumberToRepeatOOMTest |
|
375 oomheapfailnext 5 |
|
376 |
|
377 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
378 testClass FindChannels 0 0 0 0 0 |
|
379 |
|
380 endloop |
|
381 oomignorefailure OFF |
|
382 oomheaptonormal |
|
383 |
|
384 delete testClass |
|
385 create SensorTestModule sd |
|
386 sd ShutdownServer |
|
387 delete sd |
|
388 [Endtest] |
|
389 |
|
390 [Test] |
|
391 title Find channel: Find one channel "First1 VendorFirst" |
|
392 create SensorTestModule testClass |
|
393 |
|
394 oomignorefailure ON |
|
395 loop KNumberToRepeatOOMTest |
|
396 oomheapfailnext 5 |
|
397 |
|
398 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
399 testClass FindChannels 0 0 0 0 0 First1 VendorFirst |
|
400 |
|
401 endloop |
|
402 oomignorefailure OFF |
|
403 oomheaptonormal |
|
404 |
|
405 delete testClass |
|
406 create SensorTestModule sd |
|
407 sd ShutdownServer |
|
408 delete sd |
|
409 [Endtest] |
|
410 |
|
411 [Test] |
|
412 title Find channels: Channel not found "Second1 VendorFirst" |
|
413 create SensorTestModule testClass |
|
414 |
|
415 oomignorefailure ON |
|
416 loop KNumberToRepeatOOMTest |
|
417 oomheapfailnext 5 |
|
418 |
|
419 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
420 testClass FindChannels 0 0 0 0 0 Second1 VendorFirst |
|
421 |
|
422 endloop |
|
423 oomignorefailure OFF |
|
424 oomheaptonormal |
|
425 |
|
426 delete testClass |
|
427 create SensorTestModule sd |
|
428 sd ShutdownServer |
|
429 delete sd |
|
430 [Endtest] |
|
431 |
|
432 [Test] |
|
433 title Find channels: Requery |
|
434 create SensorTestModule testClass |
|
435 |
|
436 oomignorefailure ON |
|
437 loop KNumberToRepeatOOMTest |
|
438 oomheapfailnext 5 |
|
439 |
|
440 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
441 testClass SetPSValue KSensrvFirstStubChannelCount 10 |
|
442 testClass SetPSValue KSensrvSecondStubChannelCount 3 |
|
443 testClass FindChannels 0 0 0 0 0 |
|
444 |
|
445 endloop |
|
446 oomignorefailure OFF |
|
447 oomheaptonormal |
|
448 |
|
449 delete testClass |
|
450 create SensorTestModule sd |
|
451 sd ShutdownServer |
|
452 delete sd |
|
453 [Endtest] |
|
454 |
|
455 [Test] |
|
456 title Find channels: Ssystubs construction jam |
|
457 create SensorTestModule testClass |
|
458 |
|
459 oomignorefailure ON |
|
460 loop KNumberToRepeatOOMTest |
|
461 oomheapfailnext 5 |
|
462 |
|
463 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
464 testClass SetPSValue KSensrvStubConstructionJam 1 |
|
465 testClass FindChannels 0 0 0 0 0 |
|
466 |
|
467 endloop |
|
468 oomignorefailure OFF |
|
469 oomheaptonormal |
|
470 |
|
471 delete testClass |
|
472 create SensorTestModule sd |
|
473 sd ShutdownServer |
|
474 delete sd |
|
475 [Endtest] |
|
476 |
|
477 [Test] |
|
478 title Find channels: Ssystubs construction delay |
|
479 create SensorTestModule testClass |
|
480 |
|
481 oomignorefailure ON |
|
482 loop KNumberToRepeatOOMTest |
|
483 oomheapfailnext 5 |
|
484 |
|
485 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
486 testClass SetPSValue KSensrvStubConstructionDelay 5 |
|
487 testClass FindChannels 0 0 0 0 0 |
|
488 |
|
489 endloop |
|
490 oomignorefailure OFF |
|
491 oomheaptonormal |
|
492 |
|
493 delete testClass |
|
494 create SensorTestModule sd |
|
495 sd ShutdownServer |
|
496 delete sd |
|
497 [Endtest] |
|
498 |
|
499 [Test] |
|
500 title Find channels: Ssystubs construction delay(two client) |
|
501 create SensorTestModule testClass |
|
502 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
503 create SensorTestModule testClass1 |
|
504 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
505 |
|
506 oomignorefailure ON |
|
507 loop KNumberToRepeatOOMTest |
|
508 oomheapfailnext 5 |
|
509 |
|
510 testClass SetPSValue KSensrvStubConstructionDelay 5 |
|
511 testClass SetPSValue KSensrvWaitTestCompletion 0 |
|
512 testClass FindChannels 0 0 0 0 0 |
|
513 testClass1 SetPSValue KSensrvWaitTestCompletion 1 |
|
514 testClass1 FindChannels 0 0 0 0 0 |
|
515 testClass WaitCompletedKey |
|
516 |
|
517 endloop |
|
518 oomignorefailure OFF |
|
519 oomheaptonormal |
|
520 |
|
521 delete testClass |
|
522 delete testClass1 |
|
523 create SensorTestModule sd |
|
524 sd ShutdownServer |
|
525 delete sd |
|
526 [Endtest] |
|
527 |
|
528 [Test] |
|
529 title Find channels: Ssystubs construction delay(three client) |
|
530 create SensorTestModule testClass |
|
531 create SensorTestModule testClass1 |
|
532 create SensorTestModule testClass2 |
|
533 |
|
534 oomignorefailure ON |
|
535 loop KNumberToRepeatOOMTest |
|
536 oomheapfailnext 5 |
|
537 |
|
538 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
539 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
540 testClass2 SetCompletedKey KSensorTestModuleComplete3 |
|
541 testClass SetPSValue KSensrvStubConstructionDelay 5 |
|
542 testClass SetPSValue KSensrvWaitTestCompletion 0 |
|
543 testClass FindChannels 0 0 0 0 0 |
|
544 testClass1 FindChannels 0 0 0 0 0 |
|
545 testClass2 SetPSValue KSensrvWaitTestCompletion 1 |
|
546 testClass2 FindChannels 0 0 0 0 0 |
|
547 testClass WaitCompletedKey |
|
548 testClass1 WaitCompletedKey |
|
549 |
|
550 endloop |
|
551 oomignorefailure OFF |
|
552 oomheaptonormal |
|
553 |
|
554 delete testClass |
|
555 delete testClass1 |
|
556 delete testClass2 |
|
557 create SensorTestModule sd |
|
558 sd ShutdownServer |
|
559 delete sd |
|
560 [Endtest] |
|
561 |
|
562 [Test] |
|
563 title Find channel: Find all channels(CAP_SERVER capabilities) |
|
564 create SensorTestModule testClass |
|
565 |
|
566 oomignorefailure ON |
|
567 loop KNumberToRepeatOOMTest |
|
568 oomheapfailnext 5 |
|
569 |
|
570 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
571 testClass CreateNewProcess 1 |
|
572 testClass SetProcessPSValue 1 KProcessCommandFindChannel 0 0 0 0 |
|
573 testClass WaitCompletedKey |
|
574 testClass KillProcess |
|
575 |
|
576 endloop |
|
577 oomignorefailure OFF |
|
578 oomheaptonormal |
|
579 |
|
580 delete testClass |
|
581 create SensorTestModule sd |
|
582 sd ShutdownServer |
|
583 delete sd |
|
584 [Endtest] |
|
585 |
|
586 [Test] |
|
587 title Find channel: Find all channels(WriteDeviceData capabilities) |
|
588 create SensorTestModule testClass |
|
589 |
|
590 oomignorefailure ON |
|
591 loop KNumberToRepeatOOMTest |
|
592 oomheapfailnext 5 |
|
593 |
|
594 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
595 testClass CreateNewProcess 3 |
|
596 testClass SetProcessPSValue 3 KProcessCommandFindChannel 0 0 0 0 |
|
597 testClass WaitCompletedKey |
|
598 testClass KillProcess |
|
599 |
|
600 endloop |
|
601 oomignorefailure OFF |
|
602 oomheaptonormal |
|
603 |
|
604 delete testClass |
|
605 create SensorTestModule sd |
|
606 sd ShutdownServer |
|
607 delete sd |
|
608 [Endtest] |
|
609 |
|
610 [Test] |
|
611 title Find channel: Find all channels(ReadDeviceData capabilities) |
|
612 create SensorTestModule testClass |
|
613 |
|
614 oomignorefailure ON |
|
615 loop KNumberToRepeatOOMTest |
|
616 oomheapfailnext 5 |
|
617 |
|
618 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
619 testClass CreateNewProcess 4 |
|
620 testClass SetProcessPSValue 4 KProcessCommandFindChannel 0 0 0 0 |
|
621 testClass WaitCompletedKey |
|
622 testClass KillProcess |
|
623 |
|
624 endloop |
|
625 oomignorefailure OFF |
|
626 oomheaptonormal |
|
627 |
|
628 delete testClass |
|
629 create SensorTestModule sd |
|
630 sd ShutdownServer |
|
631 delete sd |
|
632 [Endtest] |
|
633 |
|
634 [Test] |
|
635 title Open and Close channel |
|
636 create SensorTestModule testClass |
|
637 |
|
638 oomignorefailure ON |
|
639 loop KNumberToRepeatOOMTest |
|
640 oomheapfailnext 5 |
|
641 |
|
642 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
643 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
644 testClass CloseChannel |
|
645 |
|
646 endloop |
|
647 oomignorefailure OFF |
|
648 oomheaptonormal |
|
649 |
|
650 delete testClass |
|
651 create SensorTestModule sd |
|
652 sd ShutdownServer |
|
653 delete sd |
|
654 [Endtest] |
|
655 |
|
656 [Test] |
|
657 title Open channel twice |
|
658 create SensorTestModule testClass |
|
659 |
|
660 oomignorefailure ON |
|
661 loop KNumberToRepeatOOMTest |
|
662 oomheapfailnext 5 |
|
663 |
|
664 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
665 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
666 allownextresult KErrAlreadyExists |
|
667 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
668 testClass CloseChannel |
|
669 |
|
670 endloop |
|
671 oomignorefailure OFF |
|
672 oomheaptonormal |
|
673 |
|
674 delete testClass |
|
675 create SensorTestModule sd |
|
676 sd ShutdownServer |
|
677 delete sd |
|
678 [Endtest] |
|
679 |
|
680 [Test] |
|
681 title Open and Close two channels |
|
682 create SensorTestModule testClass |
|
683 create SensorTestModule testClass1 |
|
684 |
|
685 oomignorefailure ON |
|
686 loop KNumberToRepeatOOMTest |
|
687 oomheapfailnext 5 |
|
688 |
|
689 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
690 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
691 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
692 testClass1 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
693 testClass1 CloseChannel |
|
694 testClass CloseChannel |
|
695 |
|
696 endloop |
|
697 oomignorefailure OFF |
|
698 oomheaptonormal |
|
699 |
|
700 delete testClass |
|
701 delete testClass1 |
|
702 create SensorTestModule sd |
|
703 sd ShutdownServer |
|
704 delete sd |
|
705 [Endtest] |
|
706 |
|
707 [Test] |
|
708 title Open channel asynchronous error |
|
709 create SensorTestModule testClass |
|
710 |
|
711 oomignorefailure ON |
|
712 loop KNumberToRepeatOOMTest |
|
713 oomheapfailnext 5 |
|
714 |
|
715 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
716 testClass SetPSValue KSensrvChannelOpenedWithError KErrGeneral |
|
717 allownextresult KErrGeneral |
|
718 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
719 testClass SetPSValue KSensrvChannelOpenedWithError 0 |
|
720 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
721 testClass CloseChannel |
|
722 |
|
723 endloop |
|
724 oomignorefailure OFF |
|
725 oomheaptonormal |
|
726 |
|
727 delete testClass |
|
728 create SensorTestModule sd |
|
729 sd ShutdownServer |
|
730 delete sd |
|
731 [Endtest] |
|
732 |
|
733 [Test] |
|
734 title Open channel return error |
|
735 create SensorTestModule testClass |
|
736 |
|
737 oomignorefailure ON |
|
738 loop KNumberToRepeatOOMTest |
|
739 oomheapfailnext 5 |
|
740 |
|
741 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
742 testClass SetPSValue KSensrvOpenChannelError KErrGeneral |
|
743 allownextresult KErrGeneral |
|
744 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
745 testClass SetPSValue KSensrvOpenChannelError 0 |
|
746 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
747 testClass CloseChannel |
|
748 |
|
749 endloop |
|
750 oomignorefailure OFF |
|
751 oomheaptonormal |
|
752 |
|
753 delete testClass |
|
754 create SensorTestModule sd |
|
755 sd ShutdownServer |
|
756 delete sd |
|
757 [Endtest] |
|
758 |
|
759 [Test] |
|
760 title Close channel return error |
|
761 create SensorTestModule testClass |
|
762 |
|
763 oomignorefailure ON |
|
764 loop KNumberToRepeatOOMTest |
|
765 oomheapfailnext 5 |
|
766 |
|
767 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
768 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
769 testClass SetPSValue KSensrvCloseChannelError KErrGeneral |
|
770 testClass CloseChannel |
|
771 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
772 testClass SetPSValue KSensrvCloseChannelError 0 |
|
773 testClass CloseChannel |
|
774 |
|
775 endloop |
|
776 oomignorefailure OFF |
|
777 oomheaptonormal |
|
778 |
|
779 delete testClass |
|
780 create SensorTestModule sd |
|
781 sd ShutdownServer |
|
782 delete sd |
|
783 [Endtest] |
|
784 |
|
785 [Test] |
|
786 title SSY do not call ChannelOpened |
|
787 create SensorTestModule testClass |
|
788 |
|
789 oomignorefailure ON |
|
790 loop KNumberToRepeatOOMTest |
|
791 oomheapfailnext 5 |
|
792 |
|
793 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
794 testClass SetPSValue KSensrvChannelOpenedError 1 |
|
795 allownextresult KErrCancel |
|
796 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
797 testClass SetPSValue KSensrvChannelOpenedError 0 |
|
798 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
799 testClass CloseChannel |
|
800 |
|
801 endloop |
|
802 oomignorefailure OFF |
|
803 oomheaptonormal |
|
804 |
|
805 delete testClass |
|
806 create SensorTestModule sd |
|
807 sd ShutdownServer |
|
808 delete sd |
|
809 [Endtest] |
|
810 |
|
811 [Test] |
|
812 title SSY do not call ChannelClosed |
|
813 create SensorTestModule testClass |
|
814 |
|
815 oomignorefailure ON |
|
816 loop KNumberToRepeatOOMTest |
|
817 oomheapfailnext 5 |
|
818 |
|
819 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
820 testClass SetPSValue KSensrvChannelClosedError 1 |
|
821 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
822 testClass CloseChannel |
|
823 testClass SetPSValue KSensrvChannelClosedError 0 |
|
824 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
825 testClass CloseChannel |
|
826 |
|
827 endloop |
|
828 oomignorefailure OFF |
|
829 oomheaptonormal |
|
830 |
|
831 delete testClass |
|
832 create SensorTestModule sd |
|
833 sd ShutdownServer |
|
834 delete sd |
|
835 [Endtest] |
|
836 |
|
837 [Test] |
|
838 title Listening: Start listening twice |
|
839 create SensorTestModule testClass |
|
840 |
|
841 oomignorefailure ON |
|
842 loop KNumberToRepeatOOMTest |
|
843 oomheapfailnext 5 |
|
844 |
|
845 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
846 testClass SetPSValue KSensrvSamplingInterval 100 |
|
847 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
848 testClass StartDataListening 15 10000 3 |
|
849 allownextresult KErrAlreadyExists |
|
850 testClass StartDataListening 15 10000 3 |
|
851 testClass WaitCompletedKey |
|
852 testClass CloseChannel |
|
853 |
|
854 endloop |
|
855 oomignorefailure OFF |
|
856 oomheaptonormal |
|
857 |
|
858 delete testClass |
|
859 create SensorTestModule sd |
|
860 sd ShutdownServer |
|
861 delete sd |
|
862 [Endtest] |
|
863 |
|
864 [Test] |
|
865 title Listening: two channels |
|
866 create SensorTestModule testClass |
|
867 create SensorTestModule testClass1 |
|
868 |
|
869 oomignorefailure ON |
|
870 loop KNumberToRepeatOOMTest |
|
871 oomheapfailnext 5 |
|
872 |
|
873 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
874 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
875 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
876 testClass StartDataListening 22 1000 5 |
|
877 testClass1 OpenChannel 0 0 0 0 0 Second0 VendorSecond |
|
878 testClass1 StartDataListening 22 1000 10 |
|
879 testClass WaitCompletedKey |
|
880 testClass CloseChannel |
|
881 delete testClass |
|
882 testClass1 WaitCompletedKey |
|
883 testClass1 CloseChannel |
|
884 |
|
885 endloop |
|
886 oomignorefailure OFF |
|
887 oomheaptonormal |
|
888 |
|
889 delete testClass1 |
|
890 create SensorTestModule sd |
|
891 sd ShutdownServer |
|
892 delete sd |
|
893 [Endtest] |
|
894 |
|
895 [Test] |
|
896 title Listening: two same channels: |
|
897 create SensorTestModule testClass |
|
898 create SensorTestModule testClass1 |
|
899 |
|
900 oomignorefailure ON |
|
901 loop KNumberToRepeatOOMTest |
|
902 oomheapfailnext 5 |
|
903 |
|
904 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
905 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
906 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
907 testClass StartDataListening 22 1000 5 |
|
908 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
909 testClass1 StartDataListening 22 1000 10 |
|
910 testClass WaitCompletedKey |
|
911 testClass CloseChannel |
|
912 testClass1 WaitCompletedKey |
|
913 testClass1 CloseChannel |
|
914 |
|
915 endloop |
|
916 oomignorefailure OFF |
|
917 oomheaptonormal |
|
918 |
|
919 delete testClass |
|
920 delete testClass1 |
|
921 create SensorTestModule sd |
|
922 sd ShutdownServer |
|
923 delete sd |
|
924 [Endtest] |
|
925 |
|
926 [Test] |
|
927 title Listening: Start listening Leave |
|
928 create SensorTestModule testClass |
|
929 |
|
930 oomignorefailure ON |
|
931 loop KNumberToRepeatOOMTest |
|
932 oomheapfailnext 5 |
|
933 |
|
934 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
935 testClass SetPSValue KSensrvStartListeningLeave KErrGeneral |
|
936 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
937 allownextresult KErrGeneral |
|
938 testClass StartDataListening 15 10000 3 |
|
939 testClass SetPSValue KSensrvStartListeningLeave 0 |
|
940 testClass StartDataListening 15 10000 3 |
|
941 testClass WaitCompletedKey |
|
942 testClass CloseChannel |
|
943 |
|
944 endloop |
|
945 oomignorefailure OFF |
|
946 oomheaptonormal |
|
947 |
|
948 delete testClass |
|
949 create SensorTestModule sd |
|
950 sd ShutdownServer |
|
951 delete sd |
|
952 [Endtest] |
|
953 |
|
954 [Test] |
|
955 title Listening: Stop listening Leave |
|
956 create SensorTestModule testClass |
|
957 |
|
958 oomignorefailure ON |
|
959 loop KNumberToRepeatOOMTest |
|
960 oomheapfailnext 5 |
|
961 |
|
962 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
963 testClass SetPSValue KSensrvStopListeningLeave KErrGeneral |
|
964 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
965 testClass StartDataListening 15 10000 3 |
|
966 testClass WaitCompletedKey |
|
967 testClass SetPSValue KSensrvStopListeningLeave 0 |
|
968 testClass StartDataListening 15 10000 3 |
|
969 testClass WaitCompletedKey |
|
970 |
|
971 endloop |
|
972 oomignorefailure OFF |
|
973 oomheaptonormal |
|
974 |
|
975 delete testClass |
|
976 create SensorTestModule sd |
|
977 sd ShutdownServer |
|
978 delete sd |
|
979 [Endtest] |
|
980 |
|
981 [Test] |
|
982 title Listening: Start listening when channel is not open |
|
983 create SensorTestModule testClass |
|
984 |
|
985 oomignorefailure ON |
|
986 loop KNumberToRepeatOOMTest |
|
987 oomheapfailnext 5 |
|
988 |
|
989 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
990 testClass FindChannels 0 0 0 0 0 First1 VendorFirst |
|
991 allownextresult KErrNotFound |
|
992 testClass StartListeningWhenChannelIsNotOpen 15 10000 3 |
|
993 |
|
994 endloop |
|
995 oomignorefailure OFF |
|
996 oomheaptonormal |
|
997 |
|
998 delete testClass |
|
999 create SensorTestModule sd |
|
1000 sd ShutdownServer |
|
1001 delete sd |
|
1002 [Endtest] |
|
1003 |
|
1004 [Test] |
|
1005 title Listening: ForceBufferFilled Leave |
|
1006 create SensorTestModule testClass |
|
1007 |
|
1008 oomignorefailure ON |
|
1009 loop KNumberToRepeatOOMTest |
|
1010 oomheapfailnext 5 |
|
1011 |
|
1012 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1013 testClass SetPSValue KSensrvForceBufferFilledLeave KErrGeneral |
|
1014 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1015 testClass SetPSValue KSensrvSamplingInterval 200 |
|
1016 testClass StartDataListening 22 1000 10 |
|
1017 testClass WaitCompletedKey |
|
1018 testClass SetPSValue KSensrvForceBufferFilledLeave 0 |
|
1019 testClass StartDataListening 22 1000 10 |
|
1020 testClass WaitCompletedKey |
|
1021 testClass CloseChannel |
|
1022 |
|
1023 endloop |
|
1024 oomignorefailure OFF |
|
1025 oomheaptonormal |
|
1026 |
|
1027 delete testClass |
|
1028 create SensorTestModule sd |
|
1029 sd ShutdownServer |
|
1030 delete sd |
|
1031 [Endtest] |
|
1032 |
|
1033 [Test] |
|
1034 title Listening: GetData overflow test |
|
1035 create SensorTestModule testClass |
|
1036 |
|
1037 oomignorefailure ON |
|
1038 loop KNumberToRepeatOOMTest |
|
1039 oomheapfailnext 5 |
|
1040 |
|
1041 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1042 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1043 testClass SetPSValue KSensrvGetDataOverflowTest 1 |
|
1044 testClass StartDataListening 10 1000 5 |
|
1045 allownextresult KErrOverflow |
|
1046 testClass WaitCompletedKey |
|
1047 testClass SetPSValue KSensrvGetDataOverflowTest 0 |
|
1048 testClass StartDataListening 10 1000 5 |
|
1049 testClass WaitCompletedKey |
|
1050 testClass CloseChannel |
|
1051 |
|
1052 endloop |
|
1053 oomignorefailure OFF |
|
1054 oomheaptonormal |
|
1055 |
|
1056 delete testClass |
|
1057 create SensorTestModule sd |
|
1058 sd ShutdownServer |
|
1059 delete sd |
|
1060 [Endtest] |
|
1061 |
|
1062 [Test] |
|
1063 title Listening: GetData 'data not found' test |
|
1064 create SensorTestModule testClass |
|
1065 |
|
1066 oomignorefailure ON |
|
1067 loop KNumberToRepeatOOMTest |
|
1068 oomheapfailnext 5 |
|
1069 |
|
1070 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1071 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1072 testClass SetPSValue KSensrvGetDataNotFoundTest 1 |
|
1073 testClass StartDataListening 10 1000 5 |
|
1074 allownextresult KErrNotFound |
|
1075 testClass WaitCompletedKey |
|
1076 testClass SetPSValue KSensrvGetDataNotFoundTest 0 |
|
1077 testClass StartDataListening 10 1000 5 |
|
1078 testClass WaitCompletedKey |
|
1079 testClass CloseChannel |
|
1080 |
|
1081 endloop |
|
1082 oomignorefailure OFF |
|
1083 oomheaptonormal |
|
1084 |
|
1085 delete testClass |
|
1086 create SensorTestModule sd |
|
1087 sd ShutdownServer |
|
1088 delete sd |
|
1089 [Endtest] |
|
1090 |
|
1091 [Test] |
|
1092 title Listening: Sample size 1 |
|
1093 create SensorTestModule testClass |
|
1094 |
|
1095 oomignorefailure ON |
|
1096 loop KNumberToRepeatOOMTest |
|
1097 oomheapfailnext 5 |
|
1098 |
|
1099 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1100 testClass SetPSValue KSensrvSamplingInterval 200 |
|
1101 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1102 testClass StartDataListening 1 10000 10 |
|
1103 testClass WaitCompletedKey |
|
1104 testClass CloseChannel |
|
1105 |
|
1106 endloop |
|
1107 oomignorefailure OFF |
|
1108 oomheaptonormal |
|
1109 |
|
1110 delete testClass |
|
1111 create SensorTestModule sd |
|
1112 sd ShutdownServer |
|
1113 delete sd |
|
1114 [Endtest] |
|
1115 |
|
1116 [Test] |
|
1117 title Listening: One per channel, six channels |
|
1118 create SensorTestModule testClass |
|
1119 create SensorTestModule testClass1 |
|
1120 create SensorTestModule testClass2 |
|
1121 create SensorTestModule testClass3 |
|
1122 create SensorTestModule testClass4 |
|
1123 create SensorTestModule testClass5 |
|
1124 |
|
1125 oomignorefailure ON |
|
1126 loop KNumberToRepeatOOMTest |
|
1127 oomheapfailnext 5 |
|
1128 |
|
1129 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1130 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
1131 testClass2 SetCompletedKey KSensorTestModuleComplete3 |
|
1132 testClass3 SetCompletedKey KSensorTestModuleComplete4 |
|
1133 testClass4 SetCompletedKey KSensorTestModuleComplete5 |
|
1134 testClass5 SetCompletedKey KSensorTestModuleComplete6 |
|
1135 testClass SetPSValue KSensrvSamplingInterval 10 |
|
1136 testClass SetPSValue KSensrvFirstStubChannelCount 10 |
|
1137 testClass OpenChannel 0 0 0 0 0 First0 VendorFirst |
|
1138 testClass StartDataListening 10 0 200 |
|
1139 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1140 testClass1 StartDataListening 3 0 600 |
|
1141 testClass2 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
1142 testClass2 StartDataListening 1 0 2000 |
|
1143 testClass3 OpenChannel 0 0 0 0 0 First3 VendorFirst |
|
1144 testClass3 StartDataListening 1 10 2000 |
|
1145 testClass4 OpenChannel 0 0 0 0 0 First4 VendorFirst |
|
1146 testClass4 StartDataListening 3 30 600 |
|
1147 testClass5 OpenChannel 0 0 0 0 0 First5 VendorFirst |
|
1148 testClass5 StartDataListening 10 100 200 |
|
1149 testClass WaitCompletedKey |
|
1150 testClass CloseChannel |
|
1151 testClass1 WaitCompletedKey |
|
1152 testClass1 CloseChannel |
|
1153 testClass2 WaitCompletedKey |
|
1154 testClass2 CloseChannel |
|
1155 testClass3 WaitCompletedKey |
|
1156 testClass3 CloseChannel |
|
1157 testClass4 WaitCompletedKey |
|
1158 testClass4 CloseChannel |
|
1159 testClass5 WaitCompletedKey |
|
1160 testClass5 CloseChannel |
|
1161 |
|
1162 endloop |
|
1163 oomignorefailure OFF |
|
1164 oomheaptonormal |
|
1165 |
|
1166 delete testClass |
|
1167 delete testClass1 |
|
1168 delete testClass2 |
|
1169 delete testClass3 |
|
1170 delete testClass4 |
|
1171 delete testClass5 |
|
1172 create SensorTestModule sd |
|
1173 sd ShutdownServer |
|
1174 delete sd |
|
1175 [Endtest] |
|
1176 |
|
1177 [Test] |
|
1178 title Listening: Restarting listening |
|
1179 create SensorTestModule testClass |
|
1180 |
|
1181 oomignorefailure ON |
|
1182 loop KNumberToRepeatOOMTest |
|
1183 oomheapfailnext 5 |
|
1184 |
|
1185 testClass SetPSValue KSensrvSamplingInterval 10 |
|
1186 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1187 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1188 testClass StartDataListening 3 10000 40 |
|
1189 testClass WaitCompletedKey |
|
1190 testClass CloseChannel |
|
1191 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1192 testClass StartDataListening 5 10000 30 |
|
1193 testClass WaitCompletedKey |
|
1194 testClass StartDataListening 4 10000 20 |
|
1195 testClass WaitCompletedKey |
|
1196 testClass StartDataListening 3 10000 10 |
|
1197 testClass WaitCompletedKey |
|
1198 testClass StartDataListening 2 10000 5 |
|
1199 testClass WaitCompletedKey |
|
1200 testClass StartDataListening 1 10000 1 |
|
1201 testClass WaitCompletedKey |
|
1202 testClass CloseChannel |
|
1203 |
|
1204 endloop |
|
1205 oomignorefailure OFF |
|
1206 oomheaptonormal |
|
1207 |
|
1208 delete testClass |
|
1209 create SensorTestModule sd |
|
1210 sd ShutdownServer |
|
1211 delete sd |
|
1212 [Endtest] |
|
1213 |
|
1214 [Test] |
|
1215 title Listening: Extreme values |
|
1216 create SensorTestModule testClass |
|
1217 |
|
1218 oomignorefailure ON |
|
1219 loop KNumberToRepeatOOMTest |
|
1220 oomheapfailnext 5 |
|
1221 |
|
1222 testClass SetPSValue KSensrvSamplingInterval 10 |
|
1223 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1224 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1225 testClass StartDataListening 2000000000 2000000000 10 |
|
1226 testClass WaitCompletedKey |
|
1227 //testClass StartDataListening 0 0 10 |
|
1228 //testClass WaitCompletedKey |
|
1229 testClass CloseChannel |
|
1230 |
|
1231 endloop |
|
1232 oomignorefailure OFF |
|
1233 oomheaptonormal |
|
1234 |
|
1235 delete testClass |
|
1236 create SensorTestModule sd |
|
1237 sd ShutdownServer |
|
1238 delete sd |
|
1239 [Endtest] |
|
1240 |
|
1241 [Test] |
|
1242 title Listening: Buffer write error (negative count on buffer filled) |
|
1243 create SensorTestModule testClass |
|
1244 |
|
1245 oomignorefailure ON |
|
1246 loop KNumberToRepeatOOMTest |
|
1247 oomheapfailnext 5 |
|
1248 |
|
1249 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1250 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1251 testClass SetPSValue KSensrvBufferFilledNegativeCount 1 |
|
1252 testClass StartDataListening 15 10000 2 |
|
1253 allownextresult ESensrvMinor |
|
1254 testClass WaitCompletedKey |
|
1255 allownextresult ESensrvFatal |
|
1256 testClass WaitCompletedKey |
|
1257 testClass SetPSValue KSensrvBufferFilledNegativeCount 0 |
|
1258 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1259 testClass StartDataListening 15 10000 2 |
|
1260 testClass WaitCompletedKey |
|
1261 testClass CloseChannel |
|
1262 |
|
1263 endloop |
|
1264 oomignorefailure OFF |
|
1265 oomheaptonormal |
|
1266 |
|
1267 delete testClass |
|
1268 create SensorTestModule sd |
|
1269 sd ShutdownServer |
|
1270 delete sd |
|
1271 [Endtest] |
|
1272 |
|
1273 [Test] |
|
1274 title SSY Unloading: Unloading after normal close |
|
1275 create SensorTestModule testClass |
|
1276 |
|
1277 oomignorefailure ON |
|
1278 loop KNumberToRepeatOOMTest |
|
1279 oomheapfailnext 5 |
|
1280 |
|
1281 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1282 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1283 testClass StartDataListening 15 10000 1 |
|
1284 testClass WaitCompletedKey |
|
1285 testClass CloseChannel |
|
1286 testClass WaitSSYUnloading 1 |
|
1287 |
|
1288 endloop |
|
1289 oomignorefailure OFF |
|
1290 oomheaptonormal |
|
1291 |
|
1292 delete testClass |
|
1293 create SensorTestModule sd |
|
1294 sd ShutdownServer |
|
1295 delete sd |
|
1296 [Endtest] |
|
1297 |
|
1298 [Test] |
|
1299 title SSY Unloading: Unloading after open error |
|
1300 create SensorTestModule testClass |
|
1301 |
|
1302 oomignorefailure ON |
|
1303 loop KNumberToRepeatOOMTest |
|
1304 oomheapfailnext 5 |
|
1305 |
|
1306 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1307 testClass SetPSValue KSensrvOpenChannelError KErrGeneral |
|
1308 allownextresult KErrGeneral |
|
1309 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1310 testClass WaitSSYUnloading 1 |
|
1311 |
|
1312 endloop |
|
1313 oomignorefailure OFF |
|
1314 oomheaptonormal |
|
1315 |
|
1316 delete testClass |
|
1317 create SensorTestModule sd |
|
1318 sd ShutdownServer |
|
1319 delete sd |
|
1320 [Endtest] |
|
1321 |
|
1322 [Test] |
|
1323 title SSY Unloading: Unloading after close error |
|
1324 create SensorTestModule testClass |
|
1325 |
|
1326 oomignorefailure ON |
|
1327 loop KNumberToRepeatOOMTest |
|
1328 oomheapfailnext 5 |
|
1329 |
|
1330 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1331 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1332 testClass StartDataListening 15 10000 1 |
|
1333 testClass WaitCompletedKey |
|
1334 testClass SetPSValue KSensrvCloseChannelError KErrGeneral |
|
1335 testClass CloseChannel |
|
1336 testClass WaitSSYUnloading 1 |
|
1337 |
|
1338 endloop |
|
1339 oomignorefailure OFF |
|
1340 oomheaptonormal |
|
1341 |
|
1342 delete testClass |
|
1343 create SensorTestModule sd |
|
1344 sd ShutdownServer |
|
1345 delete sd |
|
1346 [Endtest] |
|
1347 |
|
1348 [Test] |
|
1349 title SSY Unloading: Unloading after server start |
|
1350 create SensorTestModule testClass |
|
1351 |
|
1352 oomignorefailure ON |
|
1353 loop KNumberToRepeatOOMTest |
|
1354 oomheapfailnext 5 |
|
1355 |
|
1356 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1357 testClass FindChannels 0 0 0 0 0 First1 VendorFirst |
|
1358 testClass WaitSSYUnloading 2 // 2 dynamic channel SSYs are loaded when FindChannels queries all channels to verify result |
|
1359 |
|
1360 endloop |
|
1361 oomignorefailure OFF |
|
1362 oomheaptonormal |
|
1363 |
|
1364 delete testClass |
|
1365 create SensorTestModule sd |
|
1366 sd ShutdownServer |
|
1367 delete sd |
|
1368 [Endtest] |
|
1369 |
|
1370 [Test] |
|
1371 title Property: Set and Get a property. Property type TInt |
|
1372 create SensorTestModule testClass |
|
1373 |
|
1374 oomignorefailure ON |
|
1375 loop KNumberToRepeatOOMTest |
|
1376 oomheapfailnext 5 |
|
1377 |
|
1378 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1379 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1380 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1381 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1382 testClass CloseChannel |
|
1383 |
|
1384 endloop |
|
1385 oomignorefailure OFF |
|
1386 oomheaptonormal |
|
1387 |
|
1388 delete testClass |
|
1389 create SensorTestModule sd |
|
1390 sd ShutdownServer |
|
1391 delete sd |
|
1392 [Endtest] |
|
1393 |
|
1394 [Test] |
|
1395 title Property: Set and Get a property. Property type TReal |
|
1396 create SensorTestModule testClass |
|
1397 |
|
1398 oomignorefailure ON |
|
1399 loop KNumberToRepeatOOMTest |
|
1400 oomheapfailnext 5 |
|
1401 |
|
1402 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1403 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1404 testClass SetProperty KSensrvPropIdMeasureRange 1 200 |
|
1405 testClass GetProperty KSensrvPropIdMeasureRange 1 200 |
|
1406 testClass CloseChannel |
|
1407 |
|
1408 endloop |
|
1409 oomignorefailure OFF |
|
1410 oomheaptonormal |
|
1411 |
|
1412 delete testClass |
|
1413 create SensorTestModule sd |
|
1414 sd ShutdownServer |
|
1415 delete sd |
|
1416 [Endtest] |
|
1417 |
|
1418 [Test] |
|
1419 title Property: Set and Get a property. Property type TDes |
|
1420 create SensorTestModule testClass |
|
1421 |
|
1422 oomignorefailure ON |
|
1423 loop KNumberToRepeatOOMTest |
|
1424 oomheapfailnext 5 |
|
1425 |
|
1426 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1427 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1428 testClass SetProperty KSensrvSensorDescription 1 test |
|
1429 testClass GetProperty KSensrvSensorDescription 1 test |
|
1430 testClass CloseChannel |
|
1431 |
|
1432 endloop |
|
1433 oomignorefailure OFF |
|
1434 oomheaptonormal |
|
1435 |
|
1436 delete testClass |
|
1437 create SensorTestModule sd |
|
1438 sd ShutdownServer |
|
1439 delete sd |
|
1440 [Endtest] |
|
1441 |
|
1442 [Test] |
|
1443 title Property: Get all properties |
|
1444 create SensorTestModule testClass |
|
1445 |
|
1446 oomignorefailure ON |
|
1447 loop KNumberToRepeatOOMTest |
|
1448 oomheapfailnext 5 |
|
1449 |
|
1450 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1451 testClass SetPSValue KSensrvGetAllPropertyCount 10 |
|
1452 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1453 testClass GetAllProperties |
|
1454 testClass CloseChannel |
|
1455 |
|
1456 endloop |
|
1457 oomignorefailure OFF |
|
1458 oomheaptonormal |
|
1459 |
|
1460 delete testClass |
|
1461 create SensorTestModule sd |
|
1462 sd ShutdownServer |
|
1463 delete sd |
|
1464 [Endtest] |
|
1465 |
|
1466 [Test] |
|
1467 title Property: Get all properties ( Requery ) |
|
1468 create SensorTestModule testClass |
|
1469 |
|
1470 oomignorefailure ON |
|
1471 loop KNumberToRepeatOOMTest |
|
1472 oomheapfailnext 5 |
|
1473 |
|
1474 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1475 testClass SetPSValue KSensrvGetAllPropertyCount 50 |
|
1476 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1477 testClass GetAllProperties |
|
1478 testClass CloseChannel |
|
1479 |
|
1480 endloop |
|
1481 oomignorefailure OFF |
|
1482 oomheaptonormal |
|
1483 |
|
1484 delete testClass |
|
1485 create SensorTestModule sd |
|
1486 sd ShutdownServer |
|
1487 delete sd |
|
1488 [Endtest] |
|
1489 |
|
1490 [Test] |
|
1491 title Property: Get array property |
|
1492 create SensorTestModule testClass |
|
1493 |
|
1494 oomignorefailure ON |
|
1495 loop KNumberToRepeatOOMTest |
|
1496 oomheapfailnext 5 |
|
1497 |
|
1498 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1499 testClass SetPSValue KSensrvSetPropertyArray 3 |
|
1500 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1501 testClass GetAllPropertiesWithPropertyId |
|
1502 testClass GetAllPropertiesWithArrayIndex |
|
1503 testClass CloseChannel |
|
1504 |
|
1505 endloop |
|
1506 oomignorefailure OFF |
|
1507 oomheaptonormal |
|
1508 |
|
1509 delete testClass |
|
1510 create SensorTestModule sd |
|
1511 sd ShutdownServer |
|
1512 delete sd |
|
1513 [Endtest] |
|
1514 |
|
1515 [Test] |
|
1516 title Property Listening: Start and stop property listening |
|
1517 create SensorTestModule testClass |
|
1518 |
|
1519 oomignorefailure ON |
|
1520 loop KNumberToRepeatOOMTest |
|
1521 oomheapfailnext 5 |
|
1522 |
|
1523 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1524 testClass SetPSValue KSensrvPropertyChanged 500 ms |
|
1525 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1526 testClass StartPropertyListening |
|
1527 pause 2000 // pause for 2 seconds |
|
1528 testClass StopPropertyListening |
|
1529 testClass CheckPropertyChangedCount |
|
1530 testClass CloseChannel |
|
1531 |
|
1532 endloop |
|
1533 oomignorefailure OFF |
|
1534 oomheaptonormal |
|
1535 |
|
1536 delete testClass |
|
1537 create SensorTestModule sd |
|
1538 sd ShutdownServer |
|
1539 delete sd |
|
1540 [Endtest] |
|
1541 |
|
1542 [Test] |
|
1543 title Property Listening: Start property listening twice |
|
1544 create SensorTestModule testClass |
|
1545 |
|
1546 oomignorefailure ON |
|
1547 loop KNumberToRepeatOOMTest |
|
1548 oomheapfailnext 5 |
|
1549 |
|
1550 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1551 testClass SetPSValue KSensrvPropertyChanged 500 ms |
|
1552 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1553 testClass StartPropertyListening |
|
1554 allownextresult KErrAlreadyExists |
|
1555 testClass StartPropertyListening |
|
1556 pause 2000 // pause for 2 seconds |
|
1557 testClass StopPropertyListening |
|
1558 testClass CheckPropertyChangedCount |
|
1559 testClass CloseChannel |
|
1560 |
|
1561 endloop |
|
1562 oomignorefailure OFF |
|
1563 oomheaptonormal |
|
1564 |
|
1565 delete testClass |
|
1566 create SensorTestModule sd |
|
1567 sd ShutdownServer |
|
1568 delete sd |
|
1569 [Endtest] |
|
1570 |
|
1571 [Test] |
|
1572 title Property Listening: Start and stop property and data listening |
|
1573 create SensorTestModule testClass |
|
1574 |
|
1575 oomignorefailure ON |
|
1576 loop KNumberToRepeatOOMTest |
|
1577 oomheapfailnext 5 |
|
1578 |
|
1579 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1580 testClass SetPSValue KSensrvPropertyChanged 500 ms |
|
1581 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1582 testClass StartDataListening 20 10000 30 |
|
1583 testClass StartPropertyListening |
|
1584 pause 2000 // pause for 2 seconds |
|
1585 testClass StopPropertyListening |
|
1586 testClass WaitCompletedKey |
|
1587 testClass CheckPropertyChangedCount |
|
1588 testClass CloseChannel |
|
1589 |
|
1590 endloop |
|
1591 oomignorefailure OFF |
|
1592 oomheaptonormal |
|
1593 |
|
1594 delete testClass |
|
1595 create SensorTestModule sd |
|
1596 sd ShutdownServer |
|
1597 delete sd |
|
1598 [Endtest] |
|
1599 |
|
1600 [Test] |
|
1601 title Property Listening: Restart property listening |
|
1602 create SensorTestModule testClass |
|
1603 |
|
1604 oomignorefailure ON |
|
1605 loop KNumberToRepeatOOMTest |
|
1606 oomheapfailnext 5 |
|
1607 |
|
1608 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1609 testClass SetPSValue KSensrvPropertyChanged 200 ms |
|
1610 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1611 testClass StartDataListening 20 10000 30 |
|
1612 testClass StartPropertyListening |
|
1613 pause 1000 // pause for 1 seconds |
|
1614 testClass StopPropertyListening |
|
1615 testClass CheckPropertyChangedCount |
|
1616 pause 1000 // pause for 1 seconds |
|
1617 testClass CheckPropertyChangedCount 0 |
|
1618 testClass StartPropertyListening |
|
1619 pause 1000 // pause for 1 seconds |
|
1620 testClass StopPropertyListening |
|
1621 testClass CheckPropertyChangedCount |
|
1622 testClass WaitCompletedKey |
|
1623 testClass CloseChannel |
|
1624 |
|
1625 endloop |
|
1626 oomignorefailure OFF |
|
1627 oomheaptonormal |
|
1628 |
|
1629 delete testClass |
|
1630 create SensorTestModule sd |
|
1631 sd ShutdownServer |
|
1632 delete sd |
|
1633 [Endtest] |
|
1634 |
|
1635 [Test] |
|
1636 title Property Listening: Three clients listening |
|
1637 create SensorTestModule testClass1 |
|
1638 testClass1 SetCompletedKey KSensorTestModuleComplete1 |
|
1639 create SensorTestModule testClass2 |
|
1640 testClass2 SetCompletedKey KSensorTestModuleComplete2 |
|
1641 create SensorTestModule testClass3 |
|
1642 |
|
1643 oomignorefailure ON |
|
1644 loop KNumberToRepeatOOMTest |
|
1645 oomheapfailnext 5 |
|
1646 |
|
1647 testClass3 SetCompletedKey KSensorTestModuleComplete3 |
|
1648 testClass1 OpenChannel 0 0 0 0 0 First0 VendorFirst |
|
1649 testClass2 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1650 testClass3 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
1651 testClass1 StartDataListening 10 10000 30 |
|
1652 testClass2 StartDataListening 10 10000 30 |
|
1653 testClass3 StartDataListening 10 10000 30 |
|
1654 testClass1 StartPropertyListening |
|
1655 testClass2 StartPropertyListening |
|
1656 testClass3 StartPropertyListening |
|
1657 testClass1 SetProperty KSensrvPropIdDataRate 1 200 |
|
1658 testClass1 SetProperty KSensrvPropIdMeasureRange 1 200 |
|
1659 testClass1 SetProperty KSensrvSensorDescription 1 test |
|
1660 testClass2 SetProperty KSensrvPropIdDataRate 1 200 |
|
1661 testClass2 SetProperty KSensrvPropIdMeasureRange 1 200 |
|
1662 testClass2 SetProperty KSensrvSensorDescription 1 test |
|
1663 testClass3 SetProperty KSensrvPropIdDataRate 1 200 |
|
1664 testClass3 SetProperty KSensrvPropIdMeasureRange 1 200 |
|
1665 testClass3 SetProperty KSensrvSensorDescription 1 test |
|
1666 pause 1000 // pause for 1 seconds |
|
1667 testClass1 CheckPropertyChangedCount 6 |
|
1668 testClass2 CheckPropertyChangedCount 6 |
|
1669 testClass3 CheckPropertyChangedCount 6 |
|
1670 testClass1 StopPropertyListening |
|
1671 testClass2 StopPropertyListening |
|
1672 testClass3 StopPropertyListening |
|
1673 testClass1 WaitCompletedKey |
|
1674 testClass2 WaitCompletedKey |
|
1675 testClass3 WaitCompletedKey |
|
1676 testClass1 CloseChannel |
|
1677 testClass2 CloseChannel |
|
1678 testClass3 CloseChannel |
|
1679 |
|
1680 endloop |
|
1681 oomignorefailure OFF |
|
1682 oomheaptonormal |
|
1683 |
|
1684 delete testClass1 |
|
1685 delete testClass2 |
|
1686 delete testClass3 |
|
1687 create SensorTestModule sd |
|
1688 sd ShutdownServer |
|
1689 delete sd |
|
1690 [Endtest] |
|
1691 |
|
1692 [Test] |
|
1693 title Property: SetProperty Leave |
|
1694 create SensorTestModule testClass |
|
1695 |
|
1696 oomignorefailure ON |
|
1697 loop KNumberToRepeatOOMTest |
|
1698 oomheapfailnext 5 |
|
1699 |
|
1700 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1701 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1702 testClass SetPSValue KSensrvSetPropertyLeave KErrPermissionDenied |
|
1703 allownextresult KErrPermissionDenied |
|
1704 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1705 testClass SetPSValue KSensrvSetPropertyLeave 0 |
|
1706 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1707 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1708 testClass StartDataListening 10 10000 5 |
|
1709 testClass WaitCompletedKey |
|
1710 testClass CloseChannel |
|
1711 |
|
1712 endloop |
|
1713 oomignorefailure OFF |
|
1714 oomheaptonormal |
|
1715 |
|
1716 delete testClass |
|
1717 create SensorTestModule sd |
|
1718 sd ShutdownServer |
|
1719 delete sd |
|
1720 [Endtest] |
|
1721 |
|
1722 [Test] |
|
1723 title Property: SetProperty Leave when data listening and property listening |
|
1724 create SensorTestModule testClass |
|
1725 |
|
1726 oomignorefailure ON |
|
1727 loop KNumberToRepeatOOMTest |
|
1728 oomheapfailnext 5 |
|
1729 |
|
1730 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1731 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1732 testClass StartDataListening 20 10000 30 |
|
1733 testClass StartPropertyListening |
|
1734 testClass SetPSValue KSensrvSetPropertyLeave KErrPermissionDenied |
|
1735 allownextresult KErrPermissionDenied |
|
1736 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1737 testClass SetPSValue KSensrvSetPropertyLeave 0 |
|
1738 create SensorTestModule testClass1 |
|
1739 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
1740 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1741 testClass1 StartPropertyListening |
|
1742 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1743 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1744 testClass CheckPropertyChangedCount 0 |
|
1745 testClass1 CheckPropertyChangedCount 1 |
|
1746 testClass StopPropertyListening |
|
1747 testClass1 StopPropertyListening |
|
1748 testClass WaitCompletedKey |
|
1749 testClass CloseChannel |
|
1750 testClass1 CloseChannel |
|
1751 |
|
1752 endloop |
|
1753 oomignorefailure OFF |
|
1754 oomheaptonormal |
|
1755 |
|
1756 delete testClass |
|
1757 delete testClass1 |
|
1758 create SensorTestModule sd |
|
1759 sd ShutdownServer |
|
1760 delete sd |
|
1761 [Endtest] |
|
1762 |
|
1763 [Test] |
|
1764 title Property: GetProperty Leave |
|
1765 create SensorTestModule testClass |
|
1766 |
|
1767 oomignorefailure ON |
|
1768 loop KNumberToRepeatOOMTest |
|
1769 oomheapfailnext 5 |
|
1770 |
|
1771 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1772 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1773 testClass SetPSValue KSensrvGetPropertyLeave KErrPermissionDenied |
|
1774 allownextresult KErrPermissionDenied |
|
1775 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1776 testClass SetPSValue KSensrvGetPropertyLeave 0 |
|
1777 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1778 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1779 testClass StartDataListening 10 10000 5 |
|
1780 testClass WaitCompletedKey |
|
1781 testClass CloseChannel |
|
1782 |
|
1783 endloop |
|
1784 oomignorefailure OFF |
|
1785 oomheaptonormal |
|
1786 |
|
1787 delete testClass |
|
1788 create SensorTestModule sd |
|
1789 sd ShutdownServer |
|
1790 delete sd |
|
1791 [Endtest] |
|
1792 |
|
1793 [Test] |
|
1794 title Property: GetProperty Leave when data listening and property listening |
|
1795 create SensorTestModule testClass |
|
1796 |
|
1797 oomignorefailure ON |
|
1798 loop KNumberToRepeatOOMTest |
|
1799 oomheapfailnext 5 |
|
1800 |
|
1801 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1802 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1803 testClass StartDataListening 30 10000 30 |
|
1804 testClass StartPropertyListening |
|
1805 testClass SetPSValue KSensrvGetPropertyLeave KErrPermissionDenied |
|
1806 allownextresult KErrPermissionDenied |
|
1807 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1808 testClass SetPSValue KSensrvGetPropertyLeave 0 |
|
1809 create SensorTestModule testClass1 |
|
1810 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
1811 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1812 testClass1 StartPropertyListening |
|
1813 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1814 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1815 testClass CheckPropertyChangedCount 0 |
|
1816 testClass1 CheckPropertyChangedCount 1 |
|
1817 testClass StopPropertyListening |
|
1818 testClass1 StopPropertyListening |
|
1819 testClass WaitCompletedKey |
|
1820 testClass CloseChannel |
|
1821 testClass1 CloseChannel |
|
1822 |
|
1823 endloop |
|
1824 oomignorefailure OFF |
|
1825 oomheaptonormal |
|
1826 |
|
1827 delete testClass |
|
1828 delete testClass1 |
|
1829 create SensorTestModule sd |
|
1830 sd ShutdownServer |
|
1831 delete sd |
|
1832 [Endtest] |
|
1833 |
|
1834 [Test] |
|
1835 title Property: GetAllProperties Leave |
|
1836 create SensorTestModule testClass |
|
1837 |
|
1838 oomignorefailure ON |
|
1839 loop KNumberToRepeatOOMTest |
|
1840 oomheapfailnext 5 |
|
1841 |
|
1842 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1843 testClass SetPSValue KSensrvGetAllPropertyCount 10 |
|
1844 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1845 testClass SetPSValue KSensrvGetAllPropertiesLeave KErrPermissionDenied |
|
1846 allownextresult KErrPermissionDenied |
|
1847 testClass GetAllProperties |
|
1848 testClass SetPSValue KSensrvGetAllPropertiesLeave 0 |
|
1849 testClass StartDataListening 10 10000 10 |
|
1850 testClass GetAllProperties |
|
1851 testClass WaitCompletedKey |
|
1852 testClass CloseChannel |
|
1853 |
|
1854 endloop |
|
1855 oomignorefailure OFF |
|
1856 oomheaptonormal |
|
1857 |
|
1858 delete testClass |
|
1859 create SensorTestModule sd |
|
1860 sd ShutdownServer |
|
1861 delete sd |
|
1862 [Endtest] |
|
1863 |
|
1864 [Test] |
|
1865 title Property: GetAllProperties Leave when data listening and property listening |
|
1866 create SensorTestModule testClass |
|
1867 |
|
1868 oomignorefailure ON |
|
1869 loop KNumberToRepeatOOMTest |
|
1870 oomheapfailnext 5 |
|
1871 |
|
1872 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1873 testClass SetPSValue KSensrvGetAllPropertyCount 10 |
|
1874 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1875 testClass StartDataListening 20 10000 30 |
|
1876 testClass StartPropertyListening |
|
1877 testClass SetPSValue KSensrvGetAllPropertiesLeave KErrPermissionDenied |
|
1878 allownextresult KErrPermissionDenied |
|
1879 testClass GetAllProperties |
|
1880 testClass SetPSValue KSensrvGetAllPropertiesLeave 0 |
|
1881 create SensorTestModule testClass1 |
|
1882 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
1883 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1884 testClass1 StartPropertyListening |
|
1885 testClass GetAllProperties |
|
1886 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1887 pause 2000 |
|
1888 testClass CheckPropertyChangedCount 0 |
|
1889 testClass1 CheckPropertyChangedCount 1 |
|
1890 testClass StopPropertyListening |
|
1891 testClass1 StopPropertyListening |
|
1892 testClass WaitCompletedKey |
|
1893 testClass CloseChannel |
|
1894 testClass1 CloseChannel |
|
1895 |
|
1896 endloop |
|
1897 oomignorefailure OFF |
|
1898 oomheaptonormal |
|
1899 |
|
1900 delete testClass |
|
1901 delete testClass1 |
|
1902 create SensorTestModule sd |
|
1903 sd ShutdownServer |
|
1904 delete sd |
|
1905 [Endtest] |
|
1906 |
|
1907 [Test] |
|
1908 title Property: CheckPropertyDependenciesL Leave |
|
1909 create SensorTestModule testClass |
|
1910 |
|
1911 oomignorefailure ON |
|
1912 loop KNumberToRepeatOOMTest |
|
1913 oomheapfailnext 5 |
|
1914 |
|
1915 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1916 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1917 testClass SetPSValue KSensrvCheckPropertyDependenciesLeave KErrArgument |
|
1918 allownextresult KErrArgument |
|
1919 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1920 testClass SetPSValue KSensrvCheckPropertyDependenciesLeave 0 |
|
1921 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1922 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1923 testClass StartDataListening 10 10000 5 |
|
1924 testClass WaitCompletedKey |
|
1925 testClass CloseChannel |
|
1926 |
|
1927 endloop |
|
1928 oomignorefailure OFF |
|
1929 oomheaptonormal |
|
1930 |
|
1931 delete testClass |
|
1932 create SensorTestModule sd |
|
1933 sd ShutdownServer |
|
1934 delete sd |
|
1935 [Endtest] |
|
1936 |
|
1937 [Test] |
|
1938 title Property: CheckPropertyDependenciesL Leave when data listening and property listening |
|
1939 create SensorTestModule testClass |
|
1940 |
|
1941 oomignorefailure ON |
|
1942 loop KNumberToRepeatOOMTest |
|
1943 oomheapfailnext 5 |
|
1944 |
|
1945 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1946 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1947 testClass StartDataListening 20 10000 30 |
|
1948 testClass StartPropertyListening |
|
1949 testClass SetPSValue KSensrvCheckPropertyDependenciesLeave KErrArgument |
|
1950 allownextresult KErrArgument |
|
1951 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1952 testClass SetPSValue KSensrvCheckPropertyDependenciesLeave 0 |
|
1953 create SensorTestModule testClass1 |
|
1954 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
1955 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1956 testClass1 StartPropertyListening |
|
1957 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1958 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1959 testClass CheckPropertyChangedCount 0 |
|
1960 testClass1 CheckPropertyChangedCount 1 |
|
1961 testClass StopPropertyListening |
|
1962 testClass1 StopPropertyListening |
|
1963 testClass WaitCompletedKey |
|
1964 testClass CloseChannel |
|
1965 testClass1 CloseChannel |
|
1966 |
|
1967 endloop |
|
1968 oomignorefailure OFF |
|
1969 oomheaptonormal |
|
1970 |
|
1971 delete testClass |
|
1972 delete testClass1 |
|
1973 create SensorTestModule sd |
|
1974 sd ShutdownServer |
|
1975 delete sd |
|
1976 [Endtest] |
|
1977 |
|
1978 [Test] |
|
1979 title Property: SetProperty - Capability test |
|
1980 create SensorTestModule testClass |
|
1981 create SensorTestModule testClass1 |
|
1982 |
|
1983 oomignorefailure ON |
|
1984 loop KNumberToRepeatOOMTest |
|
1985 oomheapfailnext 5 |
|
1986 |
|
1987 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
1988 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1989 testClass StartPropertyListening |
|
1990 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
1991 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
1992 testClass1 StartPropertyListening |
|
1993 allownextresult KErrPermissionDenied |
|
1994 testClass SetProperty KSensrvPropIdChannelScale 1 200 |
|
1995 testClass SetProperty KSensrvPropIdDataRate 1 200 |
|
1996 testClass GetProperty KSensrvPropIdDataRate 1 200 |
|
1997 testClass StartDataListening 10 10000 5 |
|
1998 testClass WaitCompletedKey |
|
1999 testClass CheckPropertyChangedCount 0 |
|
2000 testClass1 CheckPropertyChangedCount 1 |
|
2001 testClass CloseChannel |
|
2002 testClass1 CloseChannel |
|
2003 |
|
2004 endloop |
|
2005 oomignorefailure OFF |
|
2006 oomheaptonormal |
|
2007 |
|
2008 delete testClass |
|
2009 delete testClass1 |
|
2010 create SensorTestModule sd |
|
2011 sd ShutdownServer |
|
2012 delete sd |
|
2013 [Endtest] |
|
2014 |
|
2015 [Test] |
|
2016 title Property: Set a property from multiple processes, set is denyed for process 2. |
|
2017 create SensorTestModule testClass |
|
2018 |
|
2019 oomignorefailure ON |
|
2020 loop KNumberToRepeatOOMTest |
|
2021 oomheapfailnext 5 |
|
2022 |
|
2023 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2024 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2025 testClass CreateNewProcess 2 |
|
2026 testClass SetProcessPSValue 1 KProcessCommandOpenChannel 0 0 0 0 |
|
2027 testClass WaitCompletedKey |
|
2028 testClass SetProcessPSValue 2 KProcessCommandOpenChannel 0 0 0 0 |
|
2029 testClass WaitCompletedKey |
|
2030 testClass SetProcessPSValue 1 KProcessCommandSetProperty 0 KSensrvPropIdDataRate 1 200 |
|
2031 testClass WaitCompletedKey |
|
2032 testClass SetProcessPSValue 2 KProcessCommandSetProperty -21 KSensrvPropIdDataRate 1 200 |
|
2033 testClass WaitCompletedKey |
|
2034 testClass SetProcessPSValue 1 KProcessCommandCloseChannel 0 0 0 0 |
|
2035 testClass WaitCompletedKey |
|
2036 testClass SetProcessPSValue 2 KProcessCommandCloseChannel 0 0 0 0 |
|
2037 testClass WaitCompletedKey |
|
2038 testClass KillProcess |
|
2039 testClass CloseChannel |
|
2040 |
|
2041 endloop |
|
2042 oomignorefailure OFF |
|
2043 oomheaptonormal |
|
2044 |
|
2045 delete testClass |
|
2046 create SensorTestModule sd |
|
2047 sd ShutdownServer |
|
2048 delete sd |
|
2049 [Endtest] |
|
2050 |
|
2051 [Test] |
|
2052 title Reg: SSY registers and removes new channels |
|
2053 create SensorTestModule testClass |
|
2054 create SensorTestModule testClass1 |
|
2055 |
|
2056 oomignorefailure ON |
|
2057 loop KNumberToRepeatOOMTest |
|
2058 oomheapfailnext 5 |
|
2059 |
|
2060 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2061 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2062 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2063 testClass1 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
2064 testClass CloseChannel |
|
2065 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2066 testClass CheckFoundChannelCount 0 |
|
2067 testClass StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2068 testClass AdjustChannels 4 VendorNew KSensrvCreateNewChannelsFirst |
|
2069 testClass WaitCompletedKey |
|
2070 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2071 testClass CheckFoundChannelCount 4 |
|
2072 testClass OpenChannel 0 0 0 0 0 NULL VendorNew |
|
2073 testClass StartDataListening 15 10000 3 |
|
2074 testClass WaitCompletedKey |
|
2075 testClass CloseChannel |
|
2076 testClass AdjustChannels 2 VendorNew KSensrvRemoveNewChannelsFirst |
|
2077 testClass SetPSValue KSensrvWaitTestCompletion 1 |
|
2078 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2079 testClass CheckFoundChannelCount 2 |
|
2080 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2081 testClass1 CloseChannel |
|
2082 |
|
2083 endloop |
|
2084 oomignorefailure OFF |
|
2085 oomheaptonormal |
|
2086 |
|
2087 delete testClass |
|
2088 delete testClass1 |
|
2089 create SensorTestModule sd |
|
2090 sd ShutdownServer |
|
2091 delete sd |
|
2092 [Endtest] |
|
2093 |
|
2094 [Test] |
|
2095 title Reg: Restart listening after stopping it. |
|
2096 create SensorTestModule testClass |
|
2097 |
|
2098 oomignorefailure ON |
|
2099 loop KNumberToRepeatOOMTest |
|
2100 oomheapfailnext 5 |
|
2101 |
|
2102 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2103 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2104 testClass CloseChannel |
|
2105 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2106 testClass CheckFoundChannelCount 0 |
|
2107 testClass StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2108 testClass AdjustChannels 4 VendorNew KSensrvCreateNewChannelsFirst |
|
2109 testClass WaitCompletedKey |
|
2110 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2111 testClass CheckFoundChannelCount 4 |
|
2112 testClass AdjustChannels 2 VendorNew KSensrvRemoveNewChannelsFirst |
|
2113 testClass WaitCompletedKey |
|
2114 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2115 testClass CheckFoundChannelCount 2 |
|
2116 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2117 testClass AdjustChannels 5 VendorNew KSensrvCreateNewChannelsFirst |
|
2118 pause 100 //0.1s |
|
2119 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2120 testClass CheckFoundChannelCount 7 |
|
2121 testClass StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2122 testClass AdjustChannels 4 VendorNew KSensrvRemoveNewChannelsFirst |
|
2123 testClass WaitCompletedKey |
|
2124 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2125 testClass CheckFoundChannelCount 3 |
|
2126 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2127 |
|
2128 endloop |
|
2129 oomignorefailure OFF |
|
2130 oomheaptonormal |
|
2131 |
|
2132 delete testClass |
|
2133 create SensorTestModule sd |
|
2134 sd ShutdownServer |
|
2135 delete sd |
|
2136 [Endtest] |
|
2137 |
|
2138 [Test] |
|
2139 title Reg: Two SSYs register and remove new channels, with two listeners |
|
2140 create SensorTestModule testClass |
|
2141 create SensorTestModule testClass1 |
|
2142 |
|
2143 oomignorefailure ON |
|
2144 loop KNumberToRepeatOOMTest |
|
2145 oomheapfailnext 5 |
|
2146 |
|
2147 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2148 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2149 testClass CloseChannel |
|
2150 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2151 testClass1 OpenChannel 0 0 0 0 0 Second1 VendorSecond |
|
2152 testClass1 CloseChannel |
|
2153 testClass StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2154 testClass1 StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2155 pause 500 |
|
2156 testClass AdjustChannels 7 VendorNew KSensrvCreateNewChannelsFirst 4 |
|
2157 testClass1 AdjustChannels 7 VendorNew KSensrvCreateNewChannelsSecond 3 |
|
2158 testClass WaitCompletedKey |
|
2159 testClass1 WaitCompletedKey |
|
2160 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2161 testClass CheckFoundChannelCount 7 |
|
2162 testClass AdjustChannels 4 VendorNew KSensrvRemoveNewChannelsFirst 2 |
|
2163 testClass1 AdjustChannels 4 VendorNew KSensrvRemoveNewChannelsSecond 2 |
|
2164 testClass WaitCompletedKey |
|
2165 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2166 testClass CheckFoundChannelCount 3 |
|
2167 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2168 testClass1 StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2169 |
|
2170 endloop |
|
2171 oomignorefailure OFF |
|
2172 oomheaptonormal |
|
2173 |
|
2174 delete testClass |
|
2175 delete testClass1 |
|
2176 create SensorTestModule sd |
|
2177 sd ShutdownServer |
|
2178 delete sd |
|
2179 [Endtest] |
|
2180 |
|
2181 [Test] |
|
2182 title Reg: SSY unregisters an active channel |
|
2183 create SensorTestModule testClass |
|
2184 create SensorTestModule testClass1 |
|
2185 |
|
2186 oomignorefailure ON |
|
2187 loop KNumberToRepeatOOMTest |
|
2188 oomheapfailnext 5 |
|
2189 |
|
2190 testClass SetPSValue KSensrvSamplingInterval 100 |
|
2191 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2192 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2193 testClass CloseChannel |
|
2194 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2195 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2196 testClass1 CloseChannel |
|
2197 testClass1 FindChannels 0 0 0 0 0 NULL VendorNew |
|
2198 testClass1 CheckFoundChannelCount 0 |
|
2199 testClass1 AdjustChannels 1 VendorNew KSensrvCreateNewChannelsFirst |
|
2200 pause 500 |
|
2201 testClass1 StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2202 testClass OpenChannel 0 0 0 0 0 NULL VendorNew |
|
2203 testClass StartDataListening 3 10000 30 |
|
2204 pause 500 |
|
2205 testClass1 AdjustChannels 1 VendorNew KSensrvRemoveNewChannelsFirst |
|
2206 // Since the failure to open proxy completes quite fast, |
|
2207 // it might be that minor error completion is not yet handled, |
|
2208 // when fatal comes, so allow both results for the wait |
|
2209 allownextresult ESensrvMinor |
|
2210 allownextresult ESensrvFatal |
|
2211 testClass WaitCompletedKey |
|
2212 testClass1 WaitCompletedKey |
|
2213 testClass1 FindChannels 0 0 0 0 0 NULL VendorNew |
|
2214 testClass1 CheckFoundChannelCount 0 |
|
2215 testClass1 StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2216 allownextresult KErrNotFound |
|
2217 testClass OpenChannel 0 0 0 0 0 NULL VendorNew |
|
2218 |
|
2219 endloop |
|
2220 oomignorefailure OFF |
|
2221 oomheaptonormal |
|
2222 |
|
2223 delete testClass |
|
2224 delete testClass1 |
|
2225 create SensorTestModule sd |
|
2226 sd ShutdownServer |
|
2227 delete sd |
|
2228 [Endtest] |
|
2229 |
|
2230 [Test] |
|
2231 title Reg: Previously registered and removed channels get correct id upon re-registration |
|
2232 create SensorTestModule testClass |
|
2233 |
|
2234 oomignorefailure ON |
|
2235 loop KNumberToRepeatOOMTest |
|
2236 oomheapfailnext 5 |
|
2237 |
|
2238 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2239 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2240 testClass CloseChannel |
|
2241 testClass StartChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2242 pause 500 |
|
2243 testClass AdjustChannels 20 VendorNew KSensrvCreateNewChannelsFirst |
|
2244 testClass WaitCompletedKey |
|
2245 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2246 testClass CheckFoundChannelCount 20 |
|
2247 testClass StoreFoundChannels 1 |
|
2248 testClass AdjustChannels 6 VendorNew KSensrvRemoveNewChannelsFirst |
|
2249 testClass WaitCompletedKey |
|
2250 testClass AdjustChannels 10 VendorNew KSensrvCreateNewChannelsFirst |
|
2251 testClass WaitCompletedKey |
|
2252 testClass AdjustChannels 21 VendorNew KSensrvRemoveNewChannelsFirst |
|
2253 testClass WaitCompletedKey |
|
2254 testClass AdjustChannels 3 VendorNew KSensrvRemoveNewChannelsFirst |
|
2255 testClass WaitCompletedKey |
|
2256 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2257 testClass CheckFoundChannelCount 0 |
|
2258 testClass AdjustChannels 11 VendorNew KSensrvCreateNewChannelsFirst |
|
2259 testClass WaitCompletedKey |
|
2260 testClass AdjustChannels 2 VendorNew KSensrvRemoveNewChannelsFirst |
|
2261 testClass WaitCompletedKey |
|
2262 testClass AdjustChannels 11 VendorNew KSensrvCreateNewChannelsFirst |
|
2263 testClass WaitCompletedKey |
|
2264 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2265 testClass CheckFoundChannelCount 20 |
|
2266 testClass StoreFoundChannels 0 |
|
2267 testClass AdjustChannels 20 VendorNew KSensrvRemoveNewChannelsFirst |
|
2268 testClass WaitCompletedKey |
|
2269 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2270 testClass CheckFoundChannelCount 0 |
|
2271 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorNew |
|
2272 |
|
2273 endloop |
|
2274 oomignorefailure OFF |
|
2275 oomheaptonormal |
|
2276 |
|
2277 delete testClass |
|
2278 create SensorTestModule sd |
|
2279 sd ShutdownServer |
|
2280 delete sd |
|
2281 [Endtest] |
|
2282 |
|
2283 [Test] |
|
2284 title Property: Start listening set success indicator, listener with same priority appears |
|
2285 create SensorTestModule testClass |
|
2286 |
|
2287 oomignorefailure ON |
|
2288 loop KNumberToRepeatOOMTest |
|
2289 oomheapfailnext 5 |
|
2290 |
|
2291 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2292 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2293 testClass StartPropertyListening |
|
2294 testClass CreateNewProcess 1 |
|
2295 testClass SetProcessPSValue 1 KProcessCommandOpenChannel 0 0 0 0 |
|
2296 testClass WaitCompletedKey |
|
2297 testClass CheckListenedSetPropertySuccessIndicator ESetPropertyIndicationPossible 1 |
|
2298 testClass SetProcessPSValue 1 KProcessCommandSetProperty 0 KSensrvPropIdDataRate 1 200 |
|
2299 testClass WaitCompletedKey |
|
2300 testClass CheckListenedSetPropertySuccessIndicator ESetPropertyIndicationUnavailable 1 |
|
2301 //testClass WaitCompletedKey |
|
2302 testClass StopPropertyListening |
|
2303 testClass SetProcessPSValue 1 KProcessCommandCloseChannel 0 0 0 0 |
|
2304 testClass WaitCompletedKey |
|
2305 testClass KillProcess |
|
2306 testClass CloseChannel |
|
2307 |
|
2308 endloop |
|
2309 oomignorefailure OFF |
|
2310 oomheaptonormal |
|
2311 |
|
2312 delete testClass |
|
2313 create SensorTestModule sd |
|
2314 sd ShutdownServer |
|
2315 delete sd |
|
2316 [Endtest] |
|
2317 |
|
2318 [Test] |
|
2319 title Property: Start listening set success indicator, listener with same priority disappears |
|
2320 create SensorTestModule testClass |
|
2321 |
|
2322 oomignorefailure ON |
|
2323 loop KNumberToRepeatOOMTest |
|
2324 oomheapfailnext 5 |
|
2325 |
|
2326 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2327 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2328 testClass StartPropertyListening |
|
2329 testClass CreateNewProcess 1 |
|
2330 testClass SetProcessPSValue 1 KProcessCommandOpenChannel 0 0 0 0 |
|
2331 pause 2000 |
|
2332 testClass SetProcessPSValue 1 KProcessCommandCloseChannel 0 0 0 0 |
|
2333 pause 2000 |
|
2334 testClass CheckListenedSetPropertySuccessIndicator ESetPropertyIndicationAvailable 2 |
|
2335 testClass StopPropertyListening |
|
2336 testClass KillProcess |
|
2337 testClass CloseChannel |
|
2338 |
|
2339 endloop |
|
2340 oomignorefailure OFF |
|
2341 oomheaptonormal |
|
2342 |
|
2343 delete testClass |
|
2344 create SensorTestModule sd |
|
2345 sd ShutdownServer |
|
2346 delete sd |
|
2347 [Endtest] |
|
2348 |
|
2349 [Test] |
|
2350 title Property: Start listening set success indicator, listener with lower priority appears |
|
2351 create SensorTestModule testClass |
|
2352 |
|
2353 oomignorefailure ON |
|
2354 loop KNumberToRepeatOOMTest |
|
2355 oomheapfailnext 5 |
|
2356 |
|
2357 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2358 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2359 testClass StartPropertyListening |
|
2360 testClass CreateNewProcess 2 |
|
2361 testClass SetProcessPSValue 2 KProcessCommandOpenChannel 0 0 0 0 |
|
2362 testClass WaitCompletedKey |
|
2363 testClass SetProcessPSValue 2 KProcessCommandSetProperty -21 KSensrvPropIdDataRate 1 200 |
|
2364 testClass WaitCompletedKey |
|
2365 testClass CheckListenedSetPropertySuccessIndicator -1 0 |
|
2366 testClass StopPropertyListening |
|
2367 testClass SetProcessPSValue 2 KProcessCommandCloseChannel 0 0 0 0 |
|
2368 testClass WaitCompletedKey |
|
2369 testClass KillProcess |
|
2370 testClass CloseChannel |
|
2371 |
|
2372 endloop |
|
2373 oomignorefailure OFF |
|
2374 oomheaptonormal |
|
2375 |
|
2376 delete testClass |
|
2377 create SensorTestModule sd |
|
2378 sd ShutdownServer |
|
2379 delete sd |
|
2380 [Endtest] |
|
2381 |
|
2382 [Test] |
|
2383 title Property: Start listening set success indicator, listener with lower priority disappears |
|
2384 create SensorTestModule testClass |
|
2385 |
|
2386 oomignorefailure ON |
|
2387 loop KNumberToRepeatOOMTest |
|
2388 oomheapfailnext 5 |
|
2389 |
|
2390 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2391 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2392 testClass StartPropertyListening |
|
2393 testClass CreateNewProcess 2 |
|
2394 testClass SetProcessPSValue 2 KProcessCommandOpenChannel 0 0 0 0 |
|
2395 pause 2000 |
|
2396 testClass SetProcessPSValue 2 KProcessCommandCloseChannel 0 0 0 0 |
|
2397 pause 2000 |
|
2398 testClass CheckListenedSetPropertySuccessIndicator -1 0 |
|
2399 testClass StopPropertyListening |
|
2400 testClass KillProcess |
|
2401 testClass CloseChannel |
|
2402 |
|
2403 endloop |
|
2404 oomignorefailure OFF |
|
2405 oomheaptonormal |
|
2406 |
|
2407 delete testClass |
|
2408 create SensorTestModule sd |
|
2409 sd ShutdownServer |
|
2410 delete sd |
|
2411 [Endtest] |
|
2412 |
|
2413 [Test] |
|
2414 title Property: Start listening set success indicator, listener with higher priority appears |
|
2415 create SensorTestModule testClass |
|
2416 |
|
2417 oomignorefailure ON |
|
2418 loop KNumberToRepeatOOMTest |
|
2419 oomheapfailnext 5 |
|
2420 |
|
2421 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2422 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2423 testClass StartPropertyListening |
|
2424 testClass CreateNewProcess 3 |
|
2425 testClass SetProcessPSValue 3 KProcessCommandOpenChannel 0 0 0 0 |
|
2426 testClass SetProcessPSValue 3 KProcessCommandSetProperty 0 KSensrvPropIdDataRate 1 200 |
|
2427 testClass WaitCompletedKey |
|
2428 testClass CheckListenedSetPropertySuccessIndicator ESetPropertyIndicationUnavailable 1 |
|
2429 testClass StopPropertyListening |
|
2430 testClass SetProcessPSValue 3 KProcessCommandCloseChannel 0 0 0 0 |
|
2431 testClass WaitCompletedKey |
|
2432 testClass KillProcess |
|
2433 testClass CloseChannel |
|
2434 |
|
2435 endloop |
|
2436 oomignorefailure OFF |
|
2437 oomheaptonormal |
|
2438 |
|
2439 delete testClass |
|
2440 create SensorTestModule sd |
|
2441 sd ShutdownServer |
|
2442 delete sd |
|
2443 [Endtest] |
|
2444 |
|
2445 [Test] |
|
2446 title Property: Start listening set success indicator, listener with higher priority disappears |
|
2447 create SensorTestModule testClass |
|
2448 |
|
2449 oomignorefailure ON |
|
2450 loop KNumberToRepeatOOMTest |
|
2451 oomheapfailnext 5 |
|
2452 |
|
2453 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2454 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2455 testClass StartPropertyListening |
|
2456 testClass CreateNewProcess 3 |
|
2457 testClass SetProcessPSValue 3 KProcessCommandOpenChannel 0 0 0 0 |
|
2458 pause 2000 |
|
2459 testClass SetProcessPSValue 3 KProcessCommandCloseChannel 0 0 0 0 |
|
2460 pause 2000 |
|
2461 testClass CheckListenedSetPropertySuccessIndicator ESetPropertyIndicationAvailable 2 |
|
2462 testClass StopPropertyListening |
|
2463 testClass KillProcess |
|
2464 testClass CloseChannel |
|
2465 |
|
2466 endloop |
|
2467 oomignorefailure OFF |
|
2468 oomheaptonormal |
|
2469 |
|
2470 delete testClass |
|
2471 create SensorTestModule sd |
|
2472 sd ShutdownServer |
|
2473 delete sd |
|
2474 [Endtest] |
|
2475 |
|
2476 [Test] |
|
2477 title Property: Start listening set success indicator, listener with higher priority disappears but same remains |
|
2478 create SensorTestModule testClass |
|
2479 |
|
2480 oomignorefailure ON |
|
2481 loop KNumberToRepeatOOMTest |
|
2482 oomheapfailnext 5 |
|
2483 |
|
2484 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2485 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2486 testClass StartPropertyListening |
|
2487 testClass CreateNewProcess 3 |
|
2488 testClass SetProcessPSValue 3 KProcessCommandOpenChannel 0 0 0 0 |
|
2489 pause 2000 |
|
2490 testClass CreateNewProcess 1 |
|
2491 testClass SetProcessPSValue 1 KProcessCommandOpenChannel 0 0 0 0 |
|
2492 pause 2000 |
|
2493 testClass SetProcessPSValue 3 KProcessCommandCloseChannel 0 0 0 0 |
|
2494 pause 2000 |
|
2495 testClass CheckListenedSetPropertySuccessIndicator ESetPropertyIndicationPossible 2 |
|
2496 testClass SetProcessPSValue 1 KProcessCommandCloseChannel 0 0 0 0 |
|
2497 testClass StopPropertyListening |
|
2498 testClass KillProcess |
|
2499 testClass CloseChannel |
|
2500 |
|
2501 endloop |
|
2502 oomignorefailure OFF |
|
2503 oomheaptonormal |
|
2504 |
|
2505 delete testClass |
|
2506 create SensorTestModule sd |
|
2507 sd ShutdownServer |
|
2508 delete sd |
|
2509 [Endtest] |
|
2510 |
|
2511 [Test] |
|
2512 title Auto-shutdown: start first client |
|
2513 create SensorTestModule testClass |
|
2514 |
|
2515 oomignorefailure ON |
|
2516 loop KNumberToRepeatOOMTest |
|
2517 oomheapfailnext 5 |
|
2518 |
|
2519 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2520 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2521 pause 2000 |
|
2522 testClass CheckServerAlive 1 |
|
2523 testClass CloseChannel |
|
2524 |
|
2525 endloop |
|
2526 oomignorefailure OFF |
|
2527 oomheaptonormal |
|
2528 |
|
2529 delete testClass |
|
2530 create SensorTestModule sd |
|
2531 sd ShutdownServer |
|
2532 delete sd |
|
2533 [Endtest] |
|
2534 |
|
2535 [Test] |
|
2536 title Auto-shutdown: start second client |
|
2537 create SensorTestModule testClass |
|
2538 |
|
2539 oomignorefailure ON |
|
2540 loop KNumberToRepeatOOMTest |
|
2541 oomheapfailnext 5 |
|
2542 |
|
2543 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2544 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2545 allownextresult KErrAlreadyExists |
|
2546 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2547 testClass CheckServerAlive 1 |
|
2548 testClass CloseChannel |
|
2549 |
|
2550 endloop |
|
2551 oomignorefailure OFF |
|
2552 oomheaptonormal |
|
2553 |
|
2554 delete testClass |
|
2555 create SensorTestModule sd |
|
2556 sd ShutdownServer |
|
2557 delete sd |
|
2558 [Endtest] |
|
2559 |
|
2560 [Test] |
|
2561 title Auto-shutdown: shutdown first client |
|
2562 create SensorTestModule testClass |
|
2563 create SensorTestModule testClass1 |
|
2564 |
|
2565 oomignorefailure ON |
|
2566 loop KNumberToRepeatOOMTest |
|
2567 oomheapfailnext 5 |
|
2568 |
|
2569 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2570 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2571 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2572 testClass1 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
2573 testClass1 CloseChannel |
|
2574 delete testClass1 |
|
2575 pause 5000 |
|
2576 testClass CheckServerAlive 1 |
|
2577 testClass CloseChannel |
|
2578 |
|
2579 endloop |
|
2580 oomignorefailure OFF |
|
2581 oomheaptonormal |
|
2582 |
|
2583 delete testClass |
|
2584 create SensorTestModule sd |
|
2585 sd ShutdownServer |
|
2586 delete sd |
|
2587 [Endtest] |
|
2588 |
|
2589 [Test] |
|
2590 title Auto-shutdown: shutdown second client |
|
2591 create SensorTestModule testClass |
|
2592 create SensorTestModule testClass1 |
|
2593 |
|
2594 oomignorefailure ON |
|
2595 loop KNumberToRepeatOOMTest |
|
2596 oomheapfailnext 5 |
|
2597 |
|
2598 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2599 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2600 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2601 testClass1 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
2602 testClass1 CloseChannel |
|
2603 testClass CloseChannel |
|
2604 pause 10000 |
|
2605 testClass CheckServerAlive 0 |
|
2606 |
|
2607 endloop |
|
2608 oomignorefailure OFF |
|
2609 oomheaptonormal |
|
2610 |
|
2611 delete testClass1 |
|
2612 delete testClass |
|
2613 create SensorTestModule sd |
|
2614 sd ShutdownServer |
|
2615 delete sd |
|
2616 [Endtest] |
|
2617 |
|
2618 [Test] |
|
2619 title DynChannels: SSY loaded for query channels, channel is available |
|
2620 create SensorTestModule testClass |
|
2621 |
|
2622 oomignorefailure ON |
|
2623 loop KNumberToRepeatOOMTest |
|
2624 oomheapfailnext 5 |
|
2625 |
|
2626 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2627 testClass SetPSValue KSensrvFirstStubChannelCount 11 |
|
2628 pause 100 |
|
2629 testClass SetPSValue KSensrvWaitTestCompletion 0 |
|
2630 testClass FindChannels 0 0 0 0 0 First10 VendorFirst |
|
2631 testClass WaitCompletedKey |
|
2632 testClass CheckFoundChannelCount 1 |
|
2633 |
|
2634 endloop |
|
2635 oomignorefailure OFF |
|
2636 oomheaptonormal |
|
2637 |
|
2638 delete testClass |
|
2639 create SensorTestModule sd |
|
2640 sd ShutdownServer |
|
2641 delete sd |
|
2642 [Endtest] |
|
2643 |
|
2644 [Test] |
|
2645 title DynChannels: SSY loaded for query channels, channel is unavailable |
|
2646 create SensorTestModule testClass |
|
2647 |
|
2648 oomignorefailure ON |
|
2649 loop KNumberToRepeatOOMTest |
|
2650 oomheapfailnext 5 |
|
2651 |
|
2652 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2653 testClass SetPSValue KSensrvFirstStubChannelCount 10 |
|
2654 pause 100 |
|
2655 testClass SetPSValue KSensrvWaitTestCompletion 0 |
|
2656 testClass FindChannels 0 0 0 0 0 First10 VendorFirst |
|
2657 testClass WaitCompletedKey |
|
2658 testClass CheckFoundChannelCount 0 |
|
2659 |
|
2660 endloop |
|
2661 oomignorefailure OFF |
|
2662 oomheaptonormal |
|
2663 |
|
2664 delete testClass |
|
2665 create SensorTestModule sd |
|
2666 sd ShutdownServer |
|
2667 delete sd |
|
2668 [Endtest] |
|
2669 |
|
2670 [Test] |
|
2671 title DynChannels: SSY loaded for change listening |
|
2672 create SensorTestModule testClass |
|
2673 |
|
2674 oomignorefailure ON |
|
2675 loop KNumberToRepeatOOMTest |
|
2676 oomheapfailnext 5 |
|
2677 |
|
2678 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2679 testClass GetPSValue KSensrvCheckPluginLoaded 0 |
|
2680 testClass StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2681 pause 100 |
|
2682 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2683 testClass GetPSValue KSensrvCheckPluginLoaded 1 |
|
2684 |
|
2685 endloop |
|
2686 oomignorefailure OFF |
|
2687 oomheaptonormal |
|
2688 |
|
2689 delete testClass |
|
2690 create SensorTestModule sd |
|
2691 sd ShutdownServer |
|
2692 delete sd |
|
2693 [Endtest] |
|
2694 |
|
2695 [Test] |
|
2696 title DynChannels: Change listening, SSY unload is denied |
|
2697 create SensorTestModule testClass |
|
2698 |
|
2699 oomignorefailure ON |
|
2700 loop KNumberToRepeatOOMTest |
|
2701 oomheapfailnext 5 |
|
2702 |
|
2703 testClass GetPSValue KSensrvCheckPluginLoaded 0 |
|
2704 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2705 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2706 testClass GetPSValue KSensrvCheckPluginLoaded 1 |
|
2707 testClass CloseChannel |
|
2708 testClass StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2709 testClass WaitSSYUnloading 0 |
|
2710 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2711 |
|
2712 endloop |
|
2713 oomignorefailure OFF |
|
2714 oomheaptonormal |
|
2715 |
|
2716 delete testClass |
|
2717 create SensorTestModule sd |
|
2718 sd ShutdownServer |
|
2719 delete sd |
|
2720 [Endtest] |
|
2721 |
|
2722 [Test] |
|
2723 title DynChannels: Change listening, SSY unload is allowed |
|
2724 create SensorTestModule testClass |
|
2725 |
|
2726 oomignorefailure ON |
|
2727 loop KNumberToRepeatOOMTest |
|
2728 oomheapfailnext 5 |
|
2729 |
|
2730 testClass GetPSValue KSensrvCheckPluginLoaded 0 |
|
2731 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2732 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2733 testClass GetPSValue KSensrvCheckPluginLoaded 1 |
|
2734 testClass CloseChannel |
|
2735 testClass StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2736 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2737 testClass WaitSSYUnloading 1 |
|
2738 |
|
2739 endloop |
|
2740 oomignorefailure OFF |
|
2741 oomheaptonormal |
|
2742 |
|
2743 delete testClass |
|
2744 create SensorTestModule sd |
|
2745 sd ShutdownServer |
|
2746 delete sd |
|
2747 [Endtest] |
|
2748 |
|
2749 [Test] |
|
2750 title DynChannels: Two clients change listening, SSY unload is denied |
|
2751 create SensorTestModule testClass |
|
2752 create SensorTestModule testClass1 |
|
2753 |
|
2754 oomignorefailure ON |
|
2755 loop KNumberToRepeatOOMTest |
|
2756 oomheapfailnext 5 |
|
2757 |
|
2758 testClass GetPSValue KSensrvCheckPluginLoaded 0 |
|
2759 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2760 testClass1 SetCompletedKey KSensorTestModuleComplete1 |
|
2761 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2762 testClass GetPSValue KSensrvCheckPluginLoaded 1 |
|
2763 testClass CloseChannel |
|
2764 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2765 testClass1 CloseChannel |
|
2766 testClass StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2767 testClass1 StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2768 testClass WaitSSYUnloading 0 |
|
2769 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2770 testClass1 StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2771 |
|
2772 endloop |
|
2773 oomignorefailure OFF |
|
2774 oomheaptonormal |
|
2775 |
|
2776 delete testClass |
|
2777 delete testClass1 |
|
2778 create SensorTestModule sd |
|
2779 sd ShutdownServer |
|
2780 delete sd |
|
2781 [Endtest] |
|
2782 |
|
2783 [Test] |
|
2784 title DynChannels: Two clients change listening, SSY unload is allowed |
|
2785 create SensorTestModule testClass |
|
2786 create SensorTestModule testClass1 |
|
2787 |
|
2788 oomignorefailure ON |
|
2789 loop KNumberToRepeatOOMTest |
|
2790 oomheapfailnext 5 |
|
2791 |
|
2792 testClass GetPSValue KSensrvCheckPluginLoaded 0 |
|
2793 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2794 |
|
2795 testClass1 SetCompletedKey KSensorTestModuleComplete1 |
|
2796 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2797 testClass GetPSValue KSensrvCheckPluginLoaded 1 |
|
2798 testClass CloseChannel |
|
2799 testClass1 OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2800 testClass1 CloseChannel |
|
2801 testClass StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2802 testClass1 StartChannelChangeListening 0 0 0 0 0 First10 VendorFirst |
|
2803 testClass StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2804 testClass1 StopChannelChangeListening 0 0 0 0 0 NULL VendorFirst |
|
2805 testClass WaitSSYUnloading 1 |
|
2806 |
|
2807 endloop |
|
2808 oomignorefailure OFF |
|
2809 oomheaptonormal |
|
2810 |
|
2811 delete testClass |
|
2812 delete testClass1 |
|
2813 create SensorTestModule sd |
|
2814 sd ShutdownServer |
|
2815 delete sd |
|
2816 [Endtest] |
|
2817 |
|
2818 [Test] |
|
2819 title Dependent Channels: Open and Close two channels |
|
2820 create SensorTestModule testClass |
|
2821 create SensorTestModule testClass1 |
|
2822 |
|
2823 oomignorefailure ON |
|
2824 loop KNumberToRepeatOOMTest |
|
2825 oomheapfailnext 5 |
|
2826 |
|
2827 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2828 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2829 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2830 testClass1 SetPSValue KSensrvChannelOpenedError KErrNotSupported |
|
2831 testClass1 OpenChannel 0 0 0 0 0 First2 VendorFirst |
|
2832 testClass GetProperty KSensrvPropIdAvailability 1 1 |
|
2833 testClass1 GetProperty KSensrvPropIdAvailability 1 0 |
|
2834 testClass CloseChannel |
|
2835 testClass1 GetProperty KSensrvPropIdAvailability 1 1 |
|
2836 testClass1 CloseChannel |
|
2837 |
|
2838 endloop |
|
2839 oomignorefailure OFF |
|
2840 oomheaptonormal |
|
2841 |
|
2842 delete testClass |
|
2843 delete testClass1 |
|
2844 create SensorTestModule sd |
|
2845 sd ShutdownServer |
|
2846 delete sd |
|
2847 [Endtest] |
|
2848 |
|
2849 [Test] |
|
2850 title Dependent Channels: Three dependent channels, listener with higher priority appears for the unavailable channel |
|
2851 create SensorTestModule testClass |
|
2852 create SensorTestModule testClass1 |
|
2853 create SensorTestModule testClass2 |
|
2854 |
|
2855 oomignorefailure ON |
|
2856 loop KNumberToRepeatOOMTest |
|
2857 oomheapfailnext 5 |
|
2858 |
|
2859 testClass2 SetCompletedKey KSensorTestModuleComplete3 |
|
2860 testClass2 OpenChannel 0 0 0 0 0 First2 VendorFirst 1 |
|
2861 testClass1 SetCompletedKey KSensorTestModuleComplete2 |
|
2862 testClass1 OpenChannel 0 0 0 0 0 First0 VendorFirst 1 |
|
2863 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2864 testClass SetPSValue KSensrvChannelOpenedError KErrNotSupported |
|
2865 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst 0 |
|
2866 testClass GetProperty KSensrvPropIdAvailability 1 0 |
|
2867 testClass1 GetProperty KSensrvPropIdAvailability 1 1 |
|
2868 testClass2 GetProperty KSensrvPropIdAvailability 1 1 |
|
2869 testClass CreateNewProcess 3 |
|
2870 testClass SetProcessPSValue 3 KProcessCommandOpenChannel 0 0 0 0 |
|
2871 testClass GetProperty KSensrvPropIdAvailability 1 0 |
|
2872 testClass1 GetProperty KSensrvPropIdAvailability 1 1 |
|
2873 testClass SetProcessPSValue 3 KProcessCommandCloseChannel 0 0 0 0 |
|
2874 testClass WaitCompletedKey |
|
2875 testClass GetProperty KSensrvPropIdAvailability 1 1 |
|
2876 testClass1 GetProperty KSensrvPropIdAvailability 1 1 |
|
2877 testClass CloseChannel |
|
2878 testClass1 GetProperty KSensrvPropIdAvailability 1 1 |
|
2879 testClass1 CloseChannel |
|
2880 testClass KillProcess |
|
2881 |
|
2882 endloop |
|
2883 oomignorefailure OFF |
|
2884 oomheaptonormal |
|
2885 |
|
2886 delete testClass |
|
2887 delete testClass1 |
|
2888 create SensorTestModule sd |
|
2889 sd ShutdownServer |
|
2890 delete sd |
|
2891 [Endtest] |
|
2892 |
|
2893 // This case panics intensionally in debug builds |
|
2894 [Test] |
|
2895 title Reg: SSY registers zero channels (UDEB panics!) |
|
2896 create SensorTestModule testClass |
|
2897 |
|
2898 oomignorefailure ON |
|
2899 loop KNumberToRepeatOOMTest |
|
2900 oomheapfailnext 5 |
|
2901 |
|
2902 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2903 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2904 testClass CloseChannel |
|
2905 testClass SetPSValue KSensrvRegisterZeroChannels 0 |
|
2906 pause 500 |
|
2907 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2908 testClass CheckFoundChannelCount 0 |
|
2909 allownextresult KErrArgument |
|
2910 testClass GetPsResult KSensrvRegisterZeroChannels |
|
2911 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2912 testClass CheckFoundChannelCount 0 |
|
2913 |
|
2914 endloop |
|
2915 oomignorefailure OFF |
|
2916 oomheaptonormal |
|
2917 |
|
2918 delete testClass |
|
2919 create SensorTestModule sd |
|
2920 sd ShutdownServer |
|
2921 delete sd |
|
2922 [Endtest] |
|
2923 |
|
2924 // This case panics intensionally in debug builds |
|
2925 [Test] |
|
2926 title Reg: SSY registers invalid channels (UDEB panics!) |
|
2927 create SensorTestModule testClass |
|
2928 |
|
2929 oomignorefailure ON |
|
2930 loop KNumberToRepeatOOMTest |
|
2931 oomheapfailnext 5 |
|
2932 |
|
2933 testClass SetCompletedKey KSensorTestModuleComplete1 |
|
2934 testClass OpenChannel 0 0 0 0 0 First1 VendorFirst |
|
2935 testClass CloseChannel |
|
2936 testClass SetPSValue KSensrvRegisterInvalidChannels 0 |
|
2937 pause 500 |
|
2938 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2939 testClass CheckFoundChannelCount 0 |
|
2940 allownextresult KErrArgument |
|
2941 testClass GetPsResult KSensrvRegisterInvalidChannels |
|
2942 testClass FindChannels 0 0 0 0 0 NULL VendorNew |
|
2943 testClass CheckFoundChannelCount 0 |
|
2944 |
|
2945 endloop |
|
2946 oomignorefailure OFF |
|
2947 oomheaptonormal |
|
2948 |
|
2949 delete testClass |
|
2950 create SensorTestModule sd |
|
2951 sd ShutdownServer |
|
2952 delete sd |
|
2953 [Endtest] |