|
1 // |
|
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 |
|
18 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\ |
|
19 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\tbtsockAPI\ |
|
20 |
|
21 LOAD_SUITE UCCControlTE |
|
22 LOAD_SUITE T_BTSockAPI -SharedData |
|
23 DELAY 2000 |
|
24 |
|
25 |
|
26 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncService |
|
27 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartTDService |
|
28 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini BuildRunPassiveSlave |
|
29 DELAY 20000 |
|
30 //! @file |
|
31 //! @SYMTestSuiteName BT-USER-SOCK-PublicAPI-Active-Master |
|
32 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
33 |
|
34 |
|
35 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses |
|
36 |
|
37 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
38 SHARED_ACTIVE_SCHEDULER |
|
39 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
40 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
41 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
42 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0001command2NewL |
|
43 COMMAND TBTServiceSecurity1 Construct |
|
44 STORE CBluetoothSocket1 |
|
45 STORE TBTServiceSecurity1 |
|
46 STORE_ACTIVE_SCHEDULER |
|
47 END_TEST_BLOCK |
|
48 |
|
49 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
50 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
51 SHARED_ACTIVE_SCHEDULER |
|
52 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
53 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
54 CREATE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
55 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
56 COMMAND TBTDevAddrRemote Construct |
|
57 COMMAND TBTDevAddrRemote OpenHostResolver BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command3OpenHostResolver |
|
58 COMMAND TBTDevAddrRemote SetHostNameL BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command4SetHostNameL |
|
59 COMMAND TBTDevAddrRemote GetDeviceAddress BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command5GetDeviceAddress |
|
60 OUTSTANDING |
|
61 COMMAND TRfcommSockAddr1 Construct |
|
62 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command8SetSecurity |
|
63 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command9SetBTAddr |
|
64 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command10BTAddr |
|
65 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0002command11SetPort |
|
66 STORE CBluetoothSocket1 |
|
67 STORE TRfcommSockAddr1 |
|
68 STORE TBTDevAddrRemote |
|
69 STORE_ACTIVE_SCHEDULER |
|
70 END_TEST_BLOCK |
|
71 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
72 SHARED_ACTIVE_SCHEDULER |
|
73 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
74 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
75 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0003command1Connect |
|
76 OUTSTANDING |
|
77 STORE CBluetoothSocket1 |
|
78 STORE_ACTIVE_SCHEDULER |
|
79 END_TEST_BLOCK |
|
80 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
81 |
|
82 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
83 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
84 SHARED_ACTIVE_SCHEDULER |
|
85 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
86 CREATE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
87 COMMAND TBTDevAddrLocal Construct |
|
88 COMMAND TBTDevAddrLocal SetBTAddr BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0004command3SetBTAddr |
|
89 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0004command5Send |
|
90 OUTSTANDING |
|
91 STORE CBluetoothSocket1 |
|
92 STORE TBTDevAddrLocal |
|
93 STORE_ACTIVE_SCHEDULER |
|
94 END_TEST_BLOCK |
|
95 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
96 |
|
97 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
98 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
99 SHARED_ACTIVE_SCHEDULER |
|
100 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
101 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-SetBTAddresses-0005command1Shutdown |
|
102 OUTSTANDING |
|
103 COMMAND CBluetoothSocket1 ~ |
|
104 COMMAND CBluetoothSocket1 RSocketServerClose |
|
105 END_TEST_BLOCK |
|
106 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
107 |
|
108 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-SetBTAddresses |
|
109 |
|
110 |
|
111 DELAY 2000 |
|
112 |
|
113 |
|
114 // **************************************************************************** |
|
115 // CBluetoothSocket |
|
116 // **************************************************************************** |
|
117 |
|
118 //Connected tests |
|
119 |
|
120 |
|
121 |
|
122 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001 |
|
123 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0001 |
|
124 //! @SYMAPI CBluetoothSocket |
|
125 //! @SYMAuthor Johan Eriksson |
|
126 //! @SYMCreationDate 27/03/2006 |
|
127 //! @SYMTestCaseDesc Send data over a BT socket changing the event notifier |
|
128 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, SetNotifier, Send()1, |
|
129 //! HandleSendCompleteL |
|
130 //! @SYMTestActions 1. Order slave to set up connection |
|
131 //! 2. Get result from slave to wait for it to be ready |
|
132 //! 3. Create a connection to the RSocket server |
|
133 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
134 //! 5. Create an empty TBTServiceSecurity object |
|
135 //! 6. Create a TRfcommSockAddr object |
|
136 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
137 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
138 //! 9. Set the port to the specific one of the protocol we use |
|
139 //! 10. Verify the set BT Address |
|
140 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
141 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
142 //! 13. Get result from slave |
|
143 //! 14. Use SetNotifier to change the notifier of events (A special notifier implementation will be used) |
|
144 //! 15. Send data to the socket using Send()1 |
|
145 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
146 //! 17. Get result from slave |
|
147 //! 18. Order slave to cleanup |
|
148 //! 19. Wait for slave |
|
149 //! 20. Do socket cleanup |
|
150 //! 21. delete CBluetoothSocket object |
|
151 //! @SYMTestStatus Implemented |
|
152 //! @SYMTestPriority Critical |
|
153 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
154 //! @SYMTestType CIT |
|
155 |
|
156 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
157 SHARED_ACTIVE_SCHEDULER |
|
158 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
159 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
160 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
161 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
162 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
163 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0001-0001command2NewL |
|
164 COMMAND TBTServiceSecurity1 Construct |
|
165 COMMAND TRfcommSockAddr1 Construct |
|
166 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0001-0001command7SetSecurity |
|
167 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0001-0001command8SetBTAddr |
|
168 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0001-0001command9SetPort |
|
169 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0001-0001command10BTAddr |
|
170 STORE CBluetoothSocket1 |
|
171 STORE TRfcommSockAddr1 |
|
172 STORE TBTDevAddrRemote |
|
173 STORE_ACTIVE_SCHEDULER |
|
174 END_TEST_BLOCK |
|
175 |
|
176 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
177 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
178 SHARED_ACTIVE_SCHEDULER |
|
179 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
180 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
181 COMMAND CBluetoothSocket1 SetNotifier BT-USER-SOCK-PublicAPI-Active-0001-0002command1SetNotifier |
|
182 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0001-0002command2Connect |
|
183 OUTSTANDING |
|
184 STORE CBluetoothSocket1 |
|
185 STORE_ACTIVE_SCHEDULER |
|
186 END_TEST_BLOCK |
|
187 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
188 |
|
189 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
190 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
191 SHARED_ACTIVE_SCHEDULER |
|
192 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
193 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0001-0003command1Send |
|
194 OUTSTANDING |
|
195 STORE CBluetoothSocket1 |
|
196 STORE_ACTIVE_SCHEDULER |
|
197 END_TEST_BLOCK |
|
198 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
199 |
|
200 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
201 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
202 SHARED_ACTIVE_SCHEDULER |
|
203 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
204 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0001-0004command1Shutdown |
|
205 OUTSTANDING |
|
206 COMMAND CBluetoothSocket1 ~ |
|
207 COMMAND CBluetoothSocket1 RSocketServerClose |
|
208 END_TEST_BLOCK |
|
209 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
210 |
|
211 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0001 |
|
212 |
|
213 |
|
214 DELAY 2000 |
|
215 |
|
216 |
|
217 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002 |
|
218 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0002 |
|
219 //! @SYMAPI CBluetoothSocket |
|
220 //! @SYMAuthor Johan Eriksson |
|
221 //! @SYMCreationDate 27/03/2006 |
|
222 //! @SYMTestCaseDesc Send data over a BT socket |
|
223 //! Uses API elements: NewLC()1, Connect()2, HandleConnectCompleteL, Send()2, HandleSendCompleteL, LocalName(), RemoteName() |
|
224 //! @SYMTestActions 1. Order slave to set up connection |
|
225 //! 2. Get result from slave to wait for it to be ready |
|
226 //! 3. Create a connection to the RSocket server |
|
227 //! 4. Create the CBluetoothSocket object using NewLC()1 (Standard constructor) |
|
228 //! 5. Create an empty TBTServiceSecurity object |
|
229 //! 6. Create a TRfcommSockAddr object |
|
230 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
231 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
232 //! 9. Set the port to the specific one of the protocol we use |
|
233 //! 10. Verify the set BT Address |
|
234 //! 11. Use the TRfcommSockAddr in the connect()2 of the CBluetooth object |
|
235 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
236 //! 13. Get result from slave |
|
237 //! 14. Get the address of the local device |
|
238 //! 15. Get the address of the remote device |
|
239 //! 16. Send data to the socket using Send()2 |
|
240 //! 17. HandleSendCompleteL gets called verify that there is no error code |
|
241 //! 18. Get result from slave |
|
242 //! 19. Order slave to cleanup |
|
243 //! 20. Wait for slave |
|
244 //! 21. Do socket cleanup |
|
245 //! 22. delete CBluetoothSocket object |
|
246 //! @SYMTestStatus Implemented |
|
247 //! @SYMTestPriority Critical |
|
248 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
249 //! @SYMTestType CIT |
|
250 |
|
251 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
252 SHARED_ACTIVE_SCHEDULER |
|
253 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
254 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
255 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
256 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
257 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
258 COMMAND CBluetoothSocket1 NewLC BT-USER-SOCK-PublicAPI-Active-0002-0001command2NewLC |
|
259 COMMAND TBTServiceSecurity1 Construct |
|
260 COMMAND TRfcommSockAddr1 Construct |
|
261 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0002-0001command7SetSecurity |
|
262 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0002-0001command8SetBTAddr |
|
263 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0002-0001command9SetPort |
|
264 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0002-0001command10BTAddr |
|
265 STORE CBluetoothSocket1 |
|
266 STORE TRfcommSockAddr1 |
|
267 STORE TBTDevAddrRemote |
|
268 STORE_ACTIVE_SCHEDULER |
|
269 END_TEST_BLOCK |
|
270 |
|
271 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
272 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
273 SHARED_ACTIVE_SCHEDULER |
|
274 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
275 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
276 COMMAND CBluetoothSocket1 SetOpt BT-USER-SOCK-PublicAPI-Active-0002-0002command1SetOpt |
|
277 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0002-0002command2Connect |
|
278 OUTSTANDING |
|
279 STORE CBluetoothSocket1 |
|
280 STORE_ACTIVE_SCHEDULER |
|
281 END_TEST_BLOCK |
|
282 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
283 |
|
284 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
285 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
286 SHARED_ACTIVE_SCHEDULER |
|
287 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
288 RESTORE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
289 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
290 COMMAND CBluetoothSocket1 LocalName BT-USER-SOCK-PublicAPI-Active-0002-0003command1LocalName |
|
291 COMMAND CBluetoothSocket1 RemoteName BT-USER-SOCK-PublicAPI-Active-0002-0003command2RemoteName |
|
292 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0002-0003command3Send |
|
293 OUTSTANDING |
|
294 STORE CBluetoothSocket1 |
|
295 STORE TBTDevAddrLocal |
|
296 STORE TBTDevAddrRemote |
|
297 STORE_ACTIVE_SCHEDULER |
|
298 END_TEST_BLOCK |
|
299 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
300 |
|
301 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
302 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
303 SHARED_ACTIVE_SCHEDULER |
|
304 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
305 COMMAND CBluetoothSocket1 ~ |
|
306 COMMAND CBluetoothSocket1 RSocketServerClose |
|
307 END_TEST_BLOCK |
|
308 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
309 |
|
310 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0002 |
|
311 |
|
312 |
|
313 DELAY 2000 |
|
314 |
|
315 |
|
316 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004 |
|
317 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0004 |
|
318 //! @SYMAPI CBluetoothSocket |
|
319 //! @SYMAuthor Johan Eriksson |
|
320 //! @SYMCreationDate 27/03/2006 |
|
321 //! @SYMTestCaseDesc Send data over a BT socket |
|
322 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
323 //! @SYMTestActions 1. Order slave to set up connection |
|
324 //! 2. Get result from slave to wait for it to be ready |
|
325 //! 3. Create a connection to the RSocket server |
|
326 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
327 //! 5. Create an empty TBTServiceSecurity object |
|
328 //! 6. Create a TRfcommSockAddr object |
|
329 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
330 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
331 //! 9. Set the port to the specific one of the protocol we use |
|
332 //! 10. Verify the set BT Address |
|
333 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
334 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
335 //! 13. Get result from slave |
|
336 //! 14. Send data to the socket using Send()1 |
|
337 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
338 //! 16. Get result from slave |
|
339 //! 17. Order slave to cleanup |
|
340 //! 18. Wait for slave |
|
341 //! 19. Do socket cleanup |
|
342 //! 20. delete CBluetoothSocket object |
|
343 //! @SYMTestStatus Implemented |
|
344 //! @SYMTestPriority Critical |
|
345 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
346 //! @SYMTestType CIT |
|
347 |
|
348 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
349 SHARED_ACTIVE_SCHEDULER |
|
350 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
351 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
352 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
353 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
354 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
355 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0004-0001command2NewL |
|
356 COMMAND TBTServiceSecurity1 Construct |
|
357 COMMAND TRfcommSockAddr1 Construct |
|
358 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0004-0001command7SetSecurity |
|
359 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0004-0001command8SetBTAddr |
|
360 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0004-0001command9SetPort |
|
361 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0004-0001command10BTAddr |
|
362 STORE CBluetoothSocket1 |
|
363 STORE TRfcommSockAddr1 |
|
364 STORE TBTDevAddrRemote |
|
365 STORE_ACTIVE_SCHEDULER |
|
366 END_TEST_BLOCK |
|
367 |
|
368 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
369 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
370 SHARED_ACTIVE_SCHEDULER |
|
371 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
372 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
373 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0004-0002command1Connect |
|
374 OUTSTANDING |
|
375 STORE CBluetoothSocket1 |
|
376 STORE_ACTIVE_SCHEDULER |
|
377 END_TEST_BLOCK |
|
378 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
379 |
|
380 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
381 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
382 SHARED_ACTIVE_SCHEDULER |
|
383 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
384 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0004-0003command1Send |
|
385 OUTSTANDING |
|
386 STORE CBluetoothSocket1 |
|
387 STORE_ACTIVE_SCHEDULER |
|
388 END_TEST_BLOCK |
|
389 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
390 |
|
391 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
392 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
393 SHARED_ACTIVE_SCHEDULER |
|
394 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
395 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0004-0004command1Shutdown |
|
396 OUTSTANDING |
|
397 COMMAND CBluetoothSocket1 ~ |
|
398 COMMAND CBluetoothSocket1 RSocketServerClose |
|
399 END_TEST_BLOCK |
|
400 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
401 |
|
402 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0004 |
|
403 |
|
404 |
|
405 DELAY 2000 |
|
406 |
|
407 |
|
408 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006 |
|
409 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0006 |
|
410 //! @SYMAPI CBluetoothSocket |
|
411 //! @SYMAuthor Johan Eriksson |
|
412 //! @SYMCreationDate 05/04/2006 |
|
413 //! @SYMTestCaseDesc Configure Outgoing MTU |
|
414 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Ioctl()2, |
|
415 //! HandleIoctlCompleteL |
|
416 //! @SYMTestActions 1. Order slave to set up connection |
|
417 //! 2. Get result from slave to wait for it to be ready |
|
418 //! 3. Create a connection to the RSocket server |
|
419 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
420 //! 5. Create an empty TBTServiceSecurity object |
|
421 //! 6. Create a TRfcommSockAddr object |
|
422 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
423 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
424 //! 9. Set the port to the specific one of the protocol we use |
|
425 //! 10. Verify the set BT Address |
|
426 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
427 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
428 //! 13. Get result from slave |
|
429 //! 14. Send data to the socket using Send()1 |
|
430 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
431 //! 16. Get result from slave |
|
432 //! 17. Call Ioctl()2 with KL2CAPOutgoingMTUIoctl, Buffer, KSolBtL2CAP |
|
433 //! 18. HandleIoctlCompleteL gets called when operation completes |
|
434 //! 19. Order slave to cleanup |
|
435 //! 20. Wait for slave |
|
436 //! 21. Do socket cleanup |
|
437 //! 22. delete CBluetoothSocket object |
|
438 //! @SYMTestStatus Implemented |
|
439 //! @SYMTestPriority Critical |
|
440 //! @SYMTestExpectedResults Connection setup successfully and MTU configured |
|
441 //! @SYMTestType CIT |
|
442 |
|
443 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
444 SHARED_ACTIVE_SCHEDULER |
|
445 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
446 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
447 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
448 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
449 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
450 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0006-0001command2NewL |
|
451 COMMAND TBTServiceSecurity1 Construct |
|
452 COMMAND TRfcommSockAddr1 Construct |
|
453 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0006-0001command7SetSecurity |
|
454 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0006-0001command8SetBTAddr |
|
455 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0006-0001command9SetPort |
|
456 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0006-0001command10BTAddr |
|
457 STORE CBluetoothSocket1 |
|
458 STORE TRfcommSockAddr1 |
|
459 STORE TBTDevAddrRemote |
|
460 STORE_ACTIVE_SCHEDULER |
|
461 END_TEST_BLOCK |
|
462 |
|
463 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
464 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
465 SHARED_ACTIVE_SCHEDULER |
|
466 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
467 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
468 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0006-0002command1Connect |
|
469 OUTSTANDING |
|
470 STORE CBluetoothSocket1 |
|
471 STORE_ACTIVE_SCHEDULER |
|
472 END_TEST_BLOCK |
|
473 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
474 |
|
475 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
476 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
477 SHARED_ACTIVE_SCHEDULER |
|
478 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
479 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0006-0003command1Send |
|
480 OUTSTANDING |
|
481 STORE CBluetoothSocket1 |
|
482 STORE_ACTIVE_SCHEDULER |
|
483 END_TEST_BLOCK |
|
484 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
485 |
|
486 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
487 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
488 SHARED_ACTIVE_SCHEDULER |
|
489 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
490 COMMAND CBluetoothSocket1 Ioctl BT-USER-SOCK-PublicAPI-Active-0006-0004command1Ioctl |
|
491 OUTSTANDING |
|
492 STORE CBluetoothSocket1 |
|
493 STORE_ACTIVE_SCHEDULER |
|
494 END_TEST_BLOCK |
|
495 DELAY 2000 |
|
496 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
497 SHARED_ACTIVE_SCHEDULER |
|
498 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
499 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0006-0005command1Shutdown |
|
500 OUTSTANDING |
|
501 COMMAND CBluetoothSocket1 ~ |
|
502 COMMAND CBluetoothSocket1 RSocketServerClose |
|
503 END_TEST_BLOCK |
|
504 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
505 |
|
506 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0006 |
|
507 |
|
508 |
|
509 DELAY 2000 |
|
510 |
|
511 |
|
512 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007 |
|
513 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0007 |
|
514 //! @SYMAPI CBluetoothSocket |
|
515 //! @SYMAuthor Johan Eriksson |
|
516 //! @SYMCreationDate 05/04/2006 |
|
517 //! @SYMTestCaseDesc Configure Outgoing MTU, followed by cancel |
|
518 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Ioctl()2, |
|
519 //! CancelIoctl, HandleIoctlCompleteL |
|
520 //! @SYMTestActions 1. Order slave to set up connection |
|
521 //! 2. Get result from slave to wait for it to be ready |
|
522 //! 3. Create a connection to the RSocket server |
|
523 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
524 //! 5. Create an empty TBTServiceSecurity object |
|
525 //! 6. Create a TRfcommSockAddr object |
|
526 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
527 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
528 //! 9. Set the port to the specific one of the protocol we use |
|
529 //! 10. Verify the set BT Address |
|
530 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
531 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
532 //! 13. Get result from slave |
|
533 //! 14. Send data to the socket using Send()1 |
|
534 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
535 //! 16. Call Ioctl()2 with KL2CAPOutgoingMTUIoctl, Buffer, KSolBtL2CAP |
|
536 //! 17. Call CancelIoctl (Bundle with Ioctl()2 to make sure it is cancelled?) |
|
537 //! 18. HandleIoctlCompleteL gets called when Ioctl operation is cancelled |
|
538 //! 19. Get result from slave |
|
539 //! 20. Order slave to cleanup |
|
540 //! 21. Wait for slave |
|
541 //! 22. Do socket cleanup |
|
542 //! 23. delete CBluetoothSocket object |
|
543 //! @SYMTestStatus Implemented |
|
544 //! @SYMTestPriority Critical |
|
545 //! @SYMTestExpectedResults Connection setup successfully and Ioctlt request cancelled |
|
546 //! @SYMTestType CIT |
|
547 |
|
548 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
549 SHARED_ACTIVE_SCHEDULER |
|
550 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
551 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
552 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
553 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
554 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
555 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0007-0001command2NewL |
|
556 COMMAND TBTServiceSecurity1 Construct |
|
557 COMMAND TRfcommSockAddr1 Construct |
|
558 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0007-0001command7SetSecurity |
|
559 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0007-0001command8SetBTAddr |
|
560 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0007-0001command9SetPort |
|
561 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0007-0001command10BTAddr |
|
562 STORE CBluetoothSocket1 |
|
563 STORE TRfcommSockAddr1 |
|
564 STORE TBTDevAddrRemote |
|
565 STORE_ACTIVE_SCHEDULER |
|
566 END_TEST_BLOCK |
|
567 |
|
568 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
569 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
570 SHARED_ACTIVE_SCHEDULER |
|
571 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
572 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
573 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0007-0002command1Connect |
|
574 OUTSTANDING |
|
575 STORE CBluetoothSocket1 |
|
576 STORE_ACTIVE_SCHEDULER |
|
577 END_TEST_BLOCK |
|
578 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
579 |
|
580 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
581 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
582 SHARED_ACTIVE_SCHEDULER |
|
583 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
584 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0007-0003command1Send |
|
585 OUTSTANDING |
|
586 STORE CBluetoothSocket1 |
|
587 STORE_ACTIVE_SCHEDULER |
|
588 END_TEST_BLOCK |
|
589 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
590 |
|
591 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
592 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
593 SHARED_ACTIVE_SCHEDULER |
|
594 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
595 DELAY 1000 |
|
596 COMMAND CBluetoothSocket1 Ioctl BT-USER-SOCK-PublicAPI-Active-0007-0004command2Ioctl |
|
597 COMMAND CBluetoothSocket1 CancelIoctl |
|
598 OUTSTANDING |
|
599 STORE CBluetoothSocket1 |
|
600 STORE_ACTIVE_SCHEDULER |
|
601 END_TEST_BLOCK |
|
602 DELAY 2000 |
|
603 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
604 SHARED_ACTIVE_SCHEDULER |
|
605 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
606 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0007-0005command1Shutdown |
|
607 OUTSTANDING |
|
608 COMMAND CBluetoothSocket1 ~ |
|
609 COMMAND CBluetoothSocket1 RSocketServerClose |
|
610 END_TEST_BLOCK |
|
611 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
612 |
|
613 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0007 |
|
614 |
|
615 |
|
616 DELAY 2000 |
|
617 |
|
618 |
|
619 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008 |
|
620 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0008 |
|
621 //! @SYMAPI CBluetoothSocket |
|
622 //! @SYMAuthor Johan Eriksson |
|
623 //! @SYMCreationDate 05/04/2006 |
|
624 //! @SYMTestCaseDesc Configure Outgoing MTU |
|
625 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Ioctl()1, |
|
626 //! HandleIoctlCompleteL |
|
627 //! @SYMTestActions 1. Order slave to set up connection |
|
628 //! 2. Get result from slave to wait for it to be ready |
|
629 //! 3. Create a connection to the RSocket server |
|
630 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
631 //! 5. Create an empty TBTServiceSecurity object |
|
632 //! 6. Create a TRfcommSockAddr object |
|
633 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
634 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
635 //! 9. Set the port to the specific one of the protocol we use |
|
636 //! 10. Verify the set BT Address |
|
637 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
638 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
639 //! 13. Get result from slave |
|
640 //! 14. Send data to the socket using Send()1 |
|
641 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
642 //! 16. Get result from slave |
|
643 //! 17. Call Ioctl()1 with KSolBtL2CAP, KL2CAPOutgoingMTUIoctl, Buffer, |
|
644 //! 18. HandleIoctlCompleteL gets called when operation completes |
|
645 //! 19. Order slave to cleanup |
|
646 //! 20. Wait for slave |
|
647 //! 21. Do socket cleanup |
|
648 //! 22. delete CBluetoothSocket object |
|
649 //! @SYMTestStatus Implemented |
|
650 //! @SYMTestPriority Critical |
|
651 //! @SYMTestExpectedResults Connection setup successfully Ioctl request successful |
|
652 //! @SYMTestType CIT |
|
653 |
|
654 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
655 SHARED_ACTIVE_SCHEDULER |
|
656 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
657 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
658 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
659 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
660 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
661 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0008-0001command2NewL |
|
662 COMMAND TBTServiceSecurity1 Construct |
|
663 COMMAND TRfcommSockAddr1 Construct |
|
664 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0008-0001command7SetSecurity |
|
665 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0008-0001command8SetBTAddr |
|
666 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0008-0001command9SetPort |
|
667 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0008-0001command10BTAddr |
|
668 STORE CBluetoothSocket1 |
|
669 STORE TRfcommSockAddr1 |
|
670 STORE TBTDevAddrRemote |
|
671 STORE_ACTIVE_SCHEDULER |
|
672 END_TEST_BLOCK |
|
673 |
|
674 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
675 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
676 SHARED_ACTIVE_SCHEDULER |
|
677 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
678 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
679 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0008-0002command1Connect |
|
680 OUTSTANDING |
|
681 STORE CBluetoothSocket1 |
|
682 STORE_ACTIVE_SCHEDULER |
|
683 END_TEST_BLOCK |
|
684 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
685 |
|
686 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
687 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
688 SHARED_ACTIVE_SCHEDULER |
|
689 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
690 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0008-0003command1Send |
|
691 OUTSTANDING |
|
692 STORE CBluetoothSocket1 |
|
693 STORE_ACTIVE_SCHEDULER |
|
694 END_TEST_BLOCK |
|
695 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
696 |
|
697 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
698 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
699 SHARED_ACTIVE_SCHEDULER |
|
700 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
701 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0008-0004command1Shutdown |
|
702 OUTSTANDING |
|
703 COMMAND CBluetoothSocket1 ~ |
|
704 COMMAND CBluetoothSocket1 RSocketServerClose |
|
705 END_TEST_BLOCK |
|
706 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
707 |
|
708 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0008 |
|
709 |
|
710 |
|
711 DELAY 2000 |
|
712 |
|
713 |
|
714 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009 |
|
715 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0009 |
|
716 //! @SYMAPI CBluetoothSocket |
|
717 //! @SYMAuthor Johan Eriksson |
|
718 //! @SYMCreationDate 05/04/2006 |
|
719 //! @SYMTestCaseDesc Client side to Configure Incoming MTU on server side |
|
720 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Ioctl()1, |
|
721 //! @SYMTestActions 1. Order slave to set up connection |
|
722 //! 2. Get result from slave to wait for it to be ready |
|
723 //! 3. Create a connection to the RSocket server |
|
724 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
725 //! 5. Create an empty TBTServiceSecurity object |
|
726 //! 6. Create a TRfcommSockAddr object |
|
727 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
728 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
729 //! 9. Set the port to the specific one of the protocol we use |
|
730 //! 10. Verify the set BT Address |
|
731 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
732 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
733 //! 13. Get result from slave |
|
734 //! 14. Send data to the socket using Send()1 |
|
735 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
736 //! 16. Get result from slave |
|
737 //! 17. Order slave to cleanup |
|
738 //! 18. Wait for slave |
|
739 //! 19. Do socket cleanup |
|
740 //! 20. delete CBluetoothSocket object |
|
741 //! Synchronization point |
|
742 //! @SYMTestStatus Implemented |
|
743 //! @SYMTestPriority Critical |
|
744 //! @SYMTestExpectedResults Connection setup successfully Ioctl request successful on slave side |
|
745 //! @SYMTestType CIT |
|
746 |
|
747 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
748 SHARED_ACTIVE_SCHEDULER |
|
749 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
750 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
751 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
752 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
753 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
754 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0009-0001command2NewL |
|
755 COMMAND TBTServiceSecurity1 Construct |
|
756 COMMAND TRfcommSockAddr1 Construct |
|
757 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0009-0001command7SetSecurity |
|
758 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0009-0001command8SetBTAddr |
|
759 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0009-0001command9SetPort |
|
760 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0009-0001command10BTAddr |
|
761 STORE CBluetoothSocket1 |
|
762 STORE TRfcommSockAddr1 |
|
763 STORE TBTDevAddrRemote |
|
764 STORE_ACTIVE_SCHEDULER |
|
765 END_TEST_BLOCK |
|
766 |
|
767 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
768 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
769 SHARED_ACTIVE_SCHEDULER |
|
770 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
771 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
772 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0009-0002command1Connect |
|
773 OUTSTANDING |
|
774 STORE CBluetoothSocket1 |
|
775 STORE_ACTIVE_SCHEDULER |
|
776 END_TEST_BLOCK |
|
777 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
778 |
|
779 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
780 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
781 SHARED_ACTIVE_SCHEDULER |
|
782 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
783 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0009-0003command1Send |
|
784 OUTSTANDING |
|
785 STORE CBluetoothSocket1 |
|
786 STORE_ACTIVE_SCHEDULER |
|
787 END_TEST_BLOCK |
|
788 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
789 |
|
790 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
791 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
792 SHARED_ACTIVE_SCHEDULER |
|
793 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
794 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0009-0004command1Shutdown |
|
795 OUTSTANDING |
|
796 COMMAND CBluetoothSocket1 ~ |
|
797 COMMAND CBluetoothSocket1 RSocketServerClose |
|
798 END_TEST_BLOCK |
|
799 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
800 |
|
801 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0009 |
|
802 |
|
803 |
|
804 DELAY 2000 |
|
805 |
|
806 |
|
807 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010 |
|
808 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0010 |
|
809 //! @SYMAPI CBluetoothSocket |
|
810 //! @SYMAuthor Johan Eriksson |
|
811 //! @SYMCreationDate 05/04/2006 |
|
812 //! @SYMTestCaseDesc Test low power switching |
|
813 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, AllowLowPowerModes, |
|
814 //! CancelLowPowerModeRequester, PreventLowPowerModes |
|
815 //! @SYMTestActions 1. Order slave to set up connection |
|
816 //! 2. Get result from slave to wait for it to be ready |
|
817 //! 3. Create a connection to the RSocket server |
|
818 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
819 //! 5. Create an empty TBTServiceSecurity object |
|
820 //! 6. Create a TRfcommSockAddr object |
|
821 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
822 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
823 //! 9. Set the port to the specific one of the protocol we use |
|
824 //! 10. Verify the set BT Address |
|
825 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
826 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
827 //! 13. Get result from slave |
|
828 //! 14. Call AllowLowPowerModes |
|
829 //! 15. Call CancelLowPowerModeRequester |
|
830 //! 16. Call PreventLowPowerModes |
|
831 //! 17. Send data to the socket using Send()1 |
|
832 //! 18. HandleSendCompleteL gets called verify that there is no error code |
|
833 //! 19. Get result from slave |
|
834 //! 20. Order slave to cleanup |
|
835 //! 21. Wait for slave |
|
836 //! 22. Do socket cleanup |
|
837 //! 23. delete CBluetoothSocket object |
|
838 //! @SYMTestStatus Implemented |
|
839 //! @SYMTestPriority Critical |
|
840 //! @SYMTestExpectedResults Connection setup successfully and lowpower switching is successful |
|
841 //! @SYMTestType CIT |
|
842 |
|
843 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
844 SHARED_ACTIVE_SCHEDULER |
|
845 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
846 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
847 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
848 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
849 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
850 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0010-0001command2NewL |
|
851 COMMAND TBTServiceSecurity1 Construct |
|
852 COMMAND TRfcommSockAddr1 Construct |
|
853 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0010-0001command7SetSecurity |
|
854 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0010-0001command8SetBTAddr |
|
855 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0010-0001command9SetPort |
|
856 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0010-0001command10BTAddr |
|
857 STORE CBluetoothSocket1 |
|
858 STORE TRfcommSockAddr1 |
|
859 STORE TBTDevAddrRemote |
|
860 STORE_ACTIVE_SCHEDULER |
|
861 END_TEST_BLOCK |
|
862 |
|
863 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
864 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
865 SHARED_ACTIVE_SCHEDULER |
|
866 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
867 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
868 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0010-0002command1Connect |
|
869 OUTSTANDING |
|
870 STORE CBluetoothSocket1 |
|
871 STORE_ACTIVE_SCHEDULER |
|
872 END_TEST_BLOCK |
|
873 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
874 |
|
875 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
876 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
877 SHARED_ACTIVE_SCHEDULER |
|
878 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
879 COMMAND CBluetoothSocket1 AllowLowPowerModes |
|
880 COMMAND CBluetoothSocket1 CancelLowPowerModeRequester |
|
881 COMMAND CBluetoothSocket1 PreventLowPowerModes |
|
882 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0010-0003command4Send |
|
883 OUTSTANDING |
|
884 STORE CBluetoothSocket1 |
|
885 STORE_ACTIVE_SCHEDULER |
|
886 END_TEST_BLOCK |
|
887 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
888 |
|
889 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
890 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
891 SHARED_ACTIVE_SCHEDULER |
|
892 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
893 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0010-0004command1Shutdown |
|
894 OUTSTANDING |
|
895 COMMAND CBluetoothSocket1 ~ |
|
896 COMMAND CBluetoothSocket1 RSocketServerClose |
|
897 END_TEST_BLOCK |
|
898 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
899 |
|
900 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0010 |
|
901 |
|
902 |
|
903 DELAY 7000 |
|
904 |
|
905 |
|
906 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011 |
|
907 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0011 |
|
908 //! @SYMAPI CBluetoothSocket |
|
909 //! @SYMAuthor Johan Eriksson |
|
910 //! @SYMCreationDate 05/04/2006 |
|
911 //! @SYMTestCaseDesc Verify Baseband notifier functionality |
|
912 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
913 //! ActivateBasebandEventNotifier, HandleActivateBasebandEventNotifierCompleteL, |
|
914 //! PhysicalLinkState, CancelBasebandEventNotifier |
|
915 //! @SYMTestActions 1. Order slave to set up connection |
|
916 //! 2. Get result from slave to wait for it to be ready |
|
917 //! 3. Create a connection to the RSocket server |
|
918 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
919 //! 5. Create an empty TBTServiceSecurity object |
|
920 //! 6. Create a TRfcommSockAddr object |
|
921 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
922 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
923 //! 9. Set the port to the specific one of the protocol we use |
|
924 //! 10. Verify the set BT Address |
|
925 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
926 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
927 //! 13. Get result from slave |
|
928 //! 14. Call ActivateBasebandEventNotifier |
|
929 //! 15. HandleActivateBasebandEventNotifierCompleteL will get called with status info |
|
930 //! 16. Call PhysicalLinkState |
|
931 //! 17. HandleActivateBasebandEventNotifierCompleteL will get called with status info |
|
932 //! 18. Call CancelBasebandEventNotifier |
|
933 //! 19. Call PhysicalLinkState |
|
934 //! 20. HandleActivateBasebandEventNotifierCompleteL should not get called (see if this can be verified here, otherwise separate test) |
|
935 //! 21. Get result from slave |
|
936 //! 22. Order slave to cleanup |
|
937 //! 23. Wait for slave |
|
938 //! 24. Do socket cleanup |
|
939 //! 25. delete CBluetoothSocket object |
|
940 //! @SYMTestStatus Implemented |
|
941 //! @SYMTestPriority Critical |
|
942 //! @SYMTestExpectedResults Connection setup successfully and baseband notification switching is successful |
|
943 //! @SYMTestType CIT |
|
944 |
|
945 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
946 SHARED_ACTIVE_SCHEDULER |
|
947 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
948 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
949 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
950 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
951 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
952 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0011-0001command2NewL |
|
953 COMMAND TBTServiceSecurity1 Construct |
|
954 COMMAND TRfcommSockAddr1 Construct |
|
955 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0011-0001command7SetSecurity |
|
956 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0011-0001command8SetBTAddr |
|
957 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0011-0001command9SetPort |
|
958 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0011-0001command10BTAddr |
|
959 STORE CBluetoothSocket1 |
|
960 STORE TRfcommSockAddr1 |
|
961 STORE TBTDevAddrRemote |
|
962 STORE_ACTIVE_SCHEDULER |
|
963 END_TEST_BLOCK |
|
964 |
|
965 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
966 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
967 SHARED_ACTIVE_SCHEDULER |
|
968 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
969 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
970 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0011-0002command1Connect |
|
971 OUTSTANDING |
|
972 STORE CBluetoothSocket1 |
|
973 STORE_ACTIVE_SCHEDULER |
|
974 END_TEST_BLOCK |
|
975 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
976 |
|
977 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
978 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
979 SHARED_ACTIVE_SCHEDULER |
|
980 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
981 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0011-0003command1Send |
|
982 OUTSTANDING |
|
983 COMMAND CBluetoothSocket1 ActivateBasebandEventNotifier BT-USER-SOCK-PublicAPI-Active-0011-0003command2ActivateBasebandEventNotifier |
|
984 OUTSTANDING |
|
985 COMMAND CBluetoothSocket1 PhysicalLinkState BT-USER-SOCK-PublicAPI-Active-0011-0003command3PhysicalLinkState |
|
986 COMMAND CBluetoothSocket1 CancelBasebandEventNotifier |
|
987 COMMAND CBluetoothSocket1 PhysicalLinkState |
|
988 STORE CBluetoothSocket1 |
|
989 STORE_ACTIVE_SCHEDULER |
|
990 END_TEST_BLOCK |
|
991 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
992 |
|
993 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
994 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
995 SHARED_ACTIVE_SCHEDULER |
|
996 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
997 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0011-0004command1Shutdown |
|
998 OUTSTANDING |
|
999 COMMAND CBluetoothSocket1 ~ |
|
1000 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1001 END_TEST_BLOCK |
|
1002 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1003 |
|
1004 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0011 |
|
1005 |
|
1006 |
|
1007 DELAY 2000 |
|
1008 |
|
1009 |
|
1010 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012 |
|
1011 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0012 |
|
1012 //! @SYMAPI CBluetoothSocket |
|
1013 //! @SYMAuthor Johan Eriksson |
|
1014 //! @SYMCreationDate 05/04/2006 |
|
1015 //! @SYMTestCaseDesc Verify role switching functionality |
|
1016 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, PreventRoleSwitch, |
|
1017 //! AllowRoleSwitch, RequestSlaveRole, RequestMasterRole |
|
1018 //! @SYMTestActions 1. Order slave to set up connection |
|
1019 //! 2. Get result from slave to wait for it to be ready |
|
1020 //! 3. Create a connection to the RSocket server |
|
1021 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1022 //! 5. Create an empty TBTServiceSecurity object |
|
1023 //! 6. Create a TRfcommSockAddr object |
|
1024 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1025 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1026 //! 9. Set the port to the specific one of the protocol we use |
|
1027 //! 10. Verify the set BT Address |
|
1028 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1029 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1030 //! 13. Get result from slave |
|
1031 //! 11. Call PreventRoleSwitch and verify return value |
|
1032 //! 12. Call AllowRoleSwitch and verify return value |
|
1033 //! 13. Call RequestSlaveRole and verify return value |
|
1034 //! 14. Call RequestMasterRole and verify return value |
|
1035 //! 16. Get result from slave |
|
1036 //! 17. Order slave to cleanup |
|
1037 //! 18. Wait for slave |
|
1038 //! 19. Do socket cleanup |
|
1039 //! 20. delete CBluetoothSocket object |
|
1040 //! @SYMTestStatus Implemented |
|
1041 //! @SYMTestPriority Critical |
|
1042 //! @SYMTestExpectedResults Connection setup successfully and role switching is correct |
|
1043 //! @SYMTestType CIT |
|
1044 |
|
1045 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1046 SHARED_ACTIVE_SCHEDULER |
|
1047 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1048 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1049 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1050 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1051 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1052 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0012-0001command2NewL |
|
1053 COMMAND TBTServiceSecurity1 Construct |
|
1054 COMMAND TRfcommSockAddr1 Construct |
|
1055 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0012-0001command7SetSecurity |
|
1056 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0012-0001command8SetBTAddr |
|
1057 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0012-0001command9SetPort |
|
1058 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0012-0001command10BTAddr |
|
1059 STORE CBluetoothSocket1 |
|
1060 STORE TRfcommSockAddr1 |
|
1061 STORE TBTDevAddrRemote |
|
1062 STORE_ACTIVE_SCHEDULER |
|
1063 END_TEST_BLOCK |
|
1064 |
|
1065 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1066 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1067 SHARED_ACTIVE_SCHEDULER |
|
1068 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1069 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1070 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0012-0002command1Connect |
|
1071 OUTSTANDING |
|
1072 STORE CBluetoothSocket1 |
|
1073 STORE_ACTIVE_SCHEDULER |
|
1074 END_TEST_BLOCK |
|
1075 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1076 |
|
1077 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1078 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1079 SHARED_ACTIVE_SCHEDULER |
|
1080 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1081 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0012-0003command1Send |
|
1082 OUTSTANDING |
|
1083 COMMAND CBluetoothSocket1 PreventRoleSwitch |
|
1084 COMMAND CBluetoothSocket1 AllowRoleSwitch |
|
1085 COMMAND CBluetoothSocket1 RequestSlaveRole |
|
1086 COMMAND CBluetoothSocket1 RequestMasterRole |
|
1087 STORE CBluetoothSocket1 |
|
1088 STORE_ACTIVE_SCHEDULER |
|
1089 END_TEST_BLOCK |
|
1090 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1091 |
|
1092 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1093 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1094 SHARED_ACTIVE_SCHEDULER |
|
1095 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1096 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0012-0004command1Shutdown |
|
1097 OUTSTANDING |
|
1098 COMMAND CBluetoothSocket1 ~ |
|
1099 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1100 END_TEST_BLOCK |
|
1101 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1102 |
|
1103 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0012 |
|
1104 |
|
1105 |
|
1106 DELAY 2000 |
|
1107 |
|
1108 |
|
1109 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013 |
|
1110 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0013 |
|
1111 //! @SYMAPI CBluetoothSocket |
|
1112 //! @SYMAuthor Johan Eriksson |
|
1113 //! @SYMCreationDate 05/04/2006 |
|
1114 //! @SYMTestCaseDesc Verify park and sniff requester calls |
|
1115 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
1116 //! ActivateSniffRequester, ActivateParkRequester |
|
1117 //! @SYMTestActions 1. Order slave to set up connection |
|
1118 //! 2. Get result from slave to wait for it to be ready |
|
1119 //! 3. Create a connection to the RSocket server |
|
1120 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1121 //! 5. Create an empty TBTServiceSecurity object |
|
1122 //! 6. Create a TRfcommSockAddr object |
|
1123 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1124 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1125 //! 9. Set the port to the specific one of the protocol we use |
|
1126 //! 10. Verify the set BT Address |
|
1127 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1128 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1129 //! 13. Get result from slave |
|
1130 //! 14. Call ActivateSniffRequester and verify return value |
|
1131 //! 15. Call ActivateParkRequester and verify return value//! 16. Get result from slave |
|
1132 //! 16. Order slave to cleanup |
|
1133 //! 17. Wait for slave |
|
1134 //! 18. Do socket cleanup |
|
1135 //! 19. delete CBluetoothSocket object |
|
1136 //! @SYMTestStatus Implemented |
|
1137 //! @SYMTestPriority Critical |
|
1138 //! @SYMTestExpectedResults Connection setup successfully, park and sniff requester calls correctly |
|
1139 //! @SYMTestType CIT |
|
1140 |
|
1141 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1142 SHARED_ACTIVE_SCHEDULER |
|
1143 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1144 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1145 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1146 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1147 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1148 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0013-0001command2NewL |
|
1149 COMMAND TBTServiceSecurity1 Construct |
|
1150 COMMAND TRfcommSockAddr1 Construct |
|
1151 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0013-0001command7SetSecurity |
|
1152 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0013-0001command8SetBTAddr |
|
1153 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0013-0001command9SetPort |
|
1154 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0013-0001command10BTAddr |
|
1155 STORE CBluetoothSocket1 |
|
1156 STORE TRfcommSockAddr1 |
|
1157 STORE TBTDevAddrRemote |
|
1158 STORE_ACTIVE_SCHEDULER |
|
1159 END_TEST_BLOCK |
|
1160 |
|
1161 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1162 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1163 SHARED_ACTIVE_SCHEDULER |
|
1164 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1165 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1166 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0013-0002command1Connect |
|
1167 OUTSTANDING |
|
1168 STORE CBluetoothSocket1 |
|
1169 STORE_ACTIVE_SCHEDULER |
|
1170 END_TEST_BLOCK |
|
1171 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1172 |
|
1173 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1174 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1175 SHARED_ACTIVE_SCHEDULER |
|
1176 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1177 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0013-0003command1Send |
|
1178 OUTSTANDING |
|
1179 COMMAND CBluetoothSocket1 ActivateSniffRequester |
|
1180 COMMAND CBluetoothSocket1 ActivateParkRequester |
|
1181 STORE CBluetoothSocket1 |
|
1182 STORE_ACTIVE_SCHEDULER |
|
1183 END_TEST_BLOCK |
|
1184 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1185 |
|
1186 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1187 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1188 SHARED_ACTIVE_SCHEDULER |
|
1189 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1190 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0013-0004command1Shutdown |
|
1191 OUTSTANDING |
|
1192 COMMAND CBluetoothSocket1 ~ |
|
1193 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1194 END_TEST_BLOCK |
|
1195 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1196 |
|
1197 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0013 |
|
1198 |
|
1199 |
|
1200 DELAY 2000 |
|
1201 |
|
1202 |
|
1203 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014 |
|
1204 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0014 |
|
1205 //! @SYMAPI CBluetoothSocket |
|
1206 //! @SYMAuthor Johan Eriksson |
|
1207 //! @SYMCreationDate 05/04/2006 |
|
1208 //! @SYMTestCaseDesc Cancel send of data over a BT socket |
|
1209 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, CancelSend, |
|
1210 //! HandleSendCompleteL |
|
1211 //! @SYMTestActions 1. Order slave to set up connection |
|
1212 //! 2. Get result from slave to wait for it to be ready |
|
1213 //! 3. Create a connection to the RSocket server |
|
1214 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1215 //! 5. Create an empty TBTServiceSecurity object |
|
1216 //! 6. Create a TRfcommSockAddr object |
|
1217 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1218 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1219 //! 9. Set the port to the specific one of the protocol we use |
|
1220 //! 10. Verify the set BT Address |
|
1221 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1222 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1223 //! 13. Get result from slave |
|
1224 //! 14. Send data to the socket using Send()1 |
|
1225 //! 15. Call CancelSend before the send operation is completed |
|
1226 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
1227 //! 17. Get result from slave |
|
1228 //! 18. Order slave to cleanup |
|
1229 //! 19. Wait for slave |
|
1230 //! 20. Do socket cleanup |
|
1231 //! 21. delete CBluetoothSocket object |
|
1232 //! @SYMTestStatus Implemented |
|
1233 //! @SYMTestPriority Critical |
|
1234 //! @SYMTestExpectedResults Connection setup successfully and data send is cancelled |
|
1235 //! @SYMTestType CIT |
|
1236 |
|
1237 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1238 SHARED_ACTIVE_SCHEDULER |
|
1239 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1240 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1241 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1242 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1243 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1244 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0014-0001command2NewL |
|
1245 COMMAND TBTServiceSecurity1 Construct |
|
1246 COMMAND TRfcommSockAddr1 Construct |
|
1247 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0014-0001command7SetSecurity |
|
1248 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0014-0001command8SetBTAddr |
|
1249 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0014-0001command9SetPort |
|
1250 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0014-0001command10BTAddr |
|
1251 STORE CBluetoothSocket1 |
|
1252 STORE TRfcommSockAddr1 |
|
1253 STORE TBTDevAddrRemote |
|
1254 STORE_ACTIVE_SCHEDULER |
|
1255 END_TEST_BLOCK |
|
1256 |
|
1257 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1258 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1259 SHARED_ACTIVE_SCHEDULER |
|
1260 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1261 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1262 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0014-0002command1Connect |
|
1263 OUTSTANDING |
|
1264 STORE CBluetoothSocket1 |
|
1265 STORE_ACTIVE_SCHEDULER |
|
1266 END_TEST_BLOCK |
|
1267 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1268 |
|
1269 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1270 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1271 SHARED_ACTIVE_SCHEDULER |
|
1272 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1273 DELAY 1000 |
|
1274 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0014-0003command2Send |
|
1275 COMMAND CBluetoothSocket1 CancelSend |
|
1276 OUTSTANDING |
|
1277 STORE CBluetoothSocket1 |
|
1278 STORE_ACTIVE_SCHEDULER |
|
1279 END_TEST_BLOCK |
|
1280 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1281 |
|
1282 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1283 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1284 SHARED_ACTIVE_SCHEDULER |
|
1285 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1286 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0014-0004command1Shutdown |
|
1287 OUTSTANDING |
|
1288 COMMAND CBluetoothSocket1 ~ |
|
1289 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1290 END_TEST_BLOCK |
|
1291 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1292 |
|
1293 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0014 |
|
1294 |
|
1295 |
|
1296 DELAY 2000 |
|
1297 |
|
1298 |
|
1299 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015 |
|
1300 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0015 |
|
1301 //! @SYMAPI CBluetoothSocket |
|
1302 //! @SYMAuthor Johan Eriksson |
|
1303 //! @SYMCreationDate 05/04/2006 |
|
1304 //! @SYMTestCaseDesc Cancel send of data over a BT socket |
|
1305 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, CancelAll, |
|
1306 //! HandleSendCompleteL |
|
1307 //! @SYMTestActions 1. Order slave to set up connection |
|
1308 //! 2. Get result from slave to wait for it to be ready |
|
1309 //! 3. Create a connection to the RSocket server |
|
1310 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1311 //! 5. Create an empty TBTServiceSecurity object |
|
1312 //! 6. Create a TRfcommSockAddr object |
|
1313 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1314 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1315 //! 9. Set the port to the specific one of the protocol we use |
|
1316 //! 10. Verify the set BT Address |
|
1317 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1318 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1319 //! 13. Get result from slave |
|
1320 //! 14. Send data to the socket using Send()1 |
|
1321 //! 15. Call CancelAll before the send operation is completed |
|
1322 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
1323 //! 17. Get result from slave |
|
1324 //! 18. Order slave to cleanup |
|
1325 //! 19. Wait for slave |
|
1326 //! 20. Do socket cleanup |
|
1327 //! 21. delete CBluetoothSocket object |
|
1328 //! @SYMTestStatus Implemented |
|
1329 //! @SYMTestPriority Critical |
|
1330 //! @SYMTestExpectedResults Connection setup successfully and data send is cancelled |
|
1331 //! @SYMTestType CIT |
|
1332 |
|
1333 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1334 SHARED_ACTIVE_SCHEDULER |
|
1335 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1336 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1337 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1338 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1339 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1340 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0015-0001command2NewL |
|
1341 COMMAND TBTServiceSecurity1 Construct |
|
1342 COMMAND TRfcommSockAddr1 Construct |
|
1343 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0015-0001command7SetSecurity |
|
1344 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0015-0001command8SetBTAddr |
|
1345 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0015-0001command9SetPort |
|
1346 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0015-0001command10BTAddr |
|
1347 STORE CBluetoothSocket1 |
|
1348 STORE TRfcommSockAddr1 |
|
1349 STORE TBTDevAddrRemote |
|
1350 STORE_ACTIVE_SCHEDULER |
|
1351 END_TEST_BLOCK |
|
1352 |
|
1353 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1354 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1355 SHARED_ACTIVE_SCHEDULER |
|
1356 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1357 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1358 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0015-0002command1Connect |
|
1359 OUTSTANDING |
|
1360 STORE CBluetoothSocket1 |
|
1361 STORE_ACTIVE_SCHEDULER |
|
1362 END_TEST_BLOCK |
|
1363 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1364 |
|
1365 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1366 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1367 SHARED_ACTIVE_SCHEDULER |
|
1368 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1369 DELAY 10000 |
|
1370 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0015-0003command2Send |
|
1371 COMMAND CBluetoothSocket1 CancelAll |
|
1372 OUTSTANDING |
|
1373 STORE CBluetoothSocket1 |
|
1374 STORE_ACTIVE_SCHEDULER |
|
1375 END_TEST_BLOCK |
|
1376 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1377 |
|
1378 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1379 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1380 SHARED_ACTIVE_SCHEDULER |
|
1381 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1382 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0015-0004command1Shutdown |
|
1383 OUTSTANDING |
|
1384 COMMAND CBluetoothSocket1 ~ |
|
1385 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1386 END_TEST_BLOCK |
|
1387 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1388 |
|
1389 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0015 |
|
1390 |
|
1391 |
|
1392 DELAY 2000 |
|
1393 |
|
1394 |
|
1395 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016 |
|
1396 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0016 |
|
1397 //! @SYMAPI CBluetoothSocket |
|
1398 //! @SYMAuthor Johan Eriksson |
|
1399 //! @SYMCreationDate 05/04/2006 |
|
1400 //! @SYMTestCaseDesc Send data over a BT socket, recovery is cancelled on passive side |
|
1401 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, |
|
1402 //! HandleSendCompleteL |
|
1403 //! @SYMTestActions 1. Order slave to set up connection |
|
1404 //! 2. Get result from slave to wait for it to be ready |
|
1405 //! 3. Create a connection to the RSocket server |
|
1406 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1407 //! 5. Create an empty TBTServiceSecurity object |
|
1408 //! 6. Create a TRfcommSockAddr object |
|
1409 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1410 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1411 //! 9. Set the port to the specific one of the protocol we use |
|
1412 //! 10. Verify the set BT Address |
|
1413 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1414 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1415 //! 13. Get result from slave |
|
1416 //! 14. Send data to the socket using Send()1 |
|
1417 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
1418 //! 16. Get result from slave |
|
1419 //! 17. Order slave to cleanup |
|
1420 //! 18. Wait for slave |
|
1421 //! 19. Do socket cleanup |
|
1422 //! 20. delete CBluetoothSocket object |
|
1423 //! @SYMTestStatus Implemented |
|
1424 //! @SYMTestPriority Critical |
|
1425 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully, recovery is cancelled on passive side |
|
1426 //! @SYMTestType CIT |
|
1427 |
|
1428 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1429 SHARED_ACTIVE_SCHEDULER |
|
1430 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1431 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1432 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1433 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1434 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1435 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0016-0001command2NewL |
|
1436 COMMAND TBTServiceSecurity1 Construct |
|
1437 COMMAND TRfcommSockAddr1 Construct |
|
1438 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0016-0001command7SetSecurity |
|
1439 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0016-0001command8SetBTAddr |
|
1440 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0016-0001command9SetPort |
|
1441 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0016-0001command10BTAddr |
|
1442 STORE CBluetoothSocket1 |
|
1443 STORE TRfcommSockAddr1 |
|
1444 STORE TBTDevAddrRemote |
|
1445 STORE_ACTIVE_SCHEDULER |
|
1446 END_TEST_BLOCK |
|
1447 |
|
1448 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1449 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1450 SHARED_ACTIVE_SCHEDULER |
|
1451 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1452 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1453 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0016-0002command1Connect |
|
1454 OUTSTANDING |
|
1455 STORE CBluetoothSocket1 |
|
1456 STORE_ACTIVE_SCHEDULER |
|
1457 END_TEST_BLOCK |
|
1458 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1459 |
|
1460 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1461 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1462 SHARED_ACTIVE_SCHEDULER |
|
1463 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1464 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0016-0003command1Send |
|
1465 OUTSTANDING |
|
1466 STORE CBluetoothSocket1 |
|
1467 STORE_ACTIVE_SCHEDULER |
|
1468 END_TEST_BLOCK |
|
1469 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1470 |
|
1471 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1472 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1473 SHARED_ACTIVE_SCHEDULER |
|
1474 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1475 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0016-0004command1Shutdown |
|
1476 OUTSTANDING |
|
1477 COMMAND CBluetoothSocket1 ~ |
|
1478 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1479 END_TEST_BLOCK |
|
1480 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1481 |
|
1482 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0016 |
|
1483 |
|
1484 |
|
1485 DELAY 2000 |
|
1486 |
|
1487 |
|
1488 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017 |
|
1489 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0017 |
|
1490 //! @SYMAPI CBluetoothSocket |
|
1491 //! @SYMAuthor Johan Eriksson |
|
1492 //! @SYMCreationDate 05/04/2006 |
|
1493 //! @SYMTestCaseDesc Send data over a BT socket |
|
1494 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Write, |
|
1495 //! HandleSendCompleteL |
|
1496 //! @SYMTestActions 1. Order slave to set up connection |
|
1497 //! 2. Get result from slave to wait for it to be ready |
|
1498 //! 3. Create a connection to the RSocket server |
|
1499 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1500 //! 5. Create an empty TBTServiceSecurity object |
|
1501 //! 6. Create a TRfcommSockAddr object |
|
1502 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1503 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1504 //! 9. Set the port to the specific one of the protocol we use |
|
1505 //! 10. Verify the set BT Address |
|
1506 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1507 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1508 //! 13. Get result from slave |
|
1509 //! 14. Send data to the socket using write |
|
1510 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
1511 //! 16. Get result from slave |
|
1512 //! 17. Order slave to cleanup |
|
1513 //! 18. Wait for slave |
|
1514 //! 19. Do socket cleanup |
|
1515 //! 20. delete CBluetoothSocket object |
|
1516 //! @SYMTestStatus Implemented |
|
1517 //! @SYMTestPriority Critical |
|
1518 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
1519 //! @SYMTestType CIT |
|
1520 |
|
1521 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1522 SHARED_ACTIVE_SCHEDULER |
|
1523 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1524 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1525 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1526 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1527 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1528 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0017-0001command2NewL |
|
1529 COMMAND TBTServiceSecurity1 Construct |
|
1530 COMMAND TRfcommSockAddr1 Construct |
|
1531 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0017-0001command7SetSecurity |
|
1532 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0017-0001command8SetBTAddr |
|
1533 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0017-0001command9SetPort |
|
1534 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0017-0001command10BTAddr |
|
1535 STORE CBluetoothSocket1 |
|
1536 STORE TRfcommSockAddr1 |
|
1537 STORE TBTDevAddrRemote |
|
1538 STORE_ACTIVE_SCHEDULER |
|
1539 END_TEST_BLOCK |
|
1540 |
|
1541 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1542 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1543 SHARED_ACTIVE_SCHEDULER |
|
1544 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1545 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1546 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0017-0002command1Connect |
|
1547 OUTSTANDING |
|
1548 STORE CBluetoothSocket1 |
|
1549 STORE_ACTIVE_SCHEDULER |
|
1550 END_TEST_BLOCK |
|
1551 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1552 |
|
1553 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1554 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1555 SHARED_ACTIVE_SCHEDULER |
|
1556 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1557 COMMAND CBluetoothSocket1 Write BT-USER-SOCK-PublicAPI-Active-0017-0003command1Write |
|
1558 OUTSTANDING |
|
1559 STORE CBluetoothSocket1 |
|
1560 STORE_ACTIVE_SCHEDULER |
|
1561 END_TEST_BLOCK |
|
1562 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1563 |
|
1564 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1565 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1566 SHARED_ACTIVE_SCHEDULER |
|
1567 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1568 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0017-0004command1Shutdown |
|
1569 OUTSTANDING |
|
1570 COMMAND CBluetoothSocket1 ~ |
|
1571 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1572 END_TEST_BLOCK |
|
1573 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1574 |
|
1575 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0017 |
|
1576 |
|
1577 |
|
1578 DELAY 2000 |
|
1579 |
|
1580 |
|
1581 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018 |
|
1582 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0018 |
|
1583 //! @SYMAPI CBluetoothSocket |
|
1584 //! @SYMAuthor Johan Eriksson |
|
1585 //! @SYMCreationDate 05/04/2006 |
|
1586 //! @SYMTestCaseDesc Cancel send of data over a BT socket |
|
1587 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Write, CancelWrite, |
|
1588 //! HandleSendCompleteL |
|
1589 //! @SYMTestActions 1. Order slave to set up connection |
|
1590 //! 2. Get result from slave to wait for it to be ready |
|
1591 //! 3. Create a connection to the RSocket server |
|
1592 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1593 //! 5. Create an empty TBTServiceSecurity object |
|
1594 //! 6. Create a TRfcommSockAddr object |
|
1595 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1596 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1597 //! 9. Set the port to the specific one of the protocol we use |
|
1598 //! 10. Verify the set BT Address |
|
1599 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1600 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1601 //! 13. Get result from slave |
|
1602 //! 14. Send data to the socket using Write |
|
1603 //! 15. Call CancelWrite to cancel the write operation |
|
1604 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
1605 //! 17. Get result from slave |
|
1606 //! 18. Order slave to cleanup |
|
1607 //! 19. Wait for slave |
|
1608 //! 20. Do socket cleanup |
|
1609 //! 21. delete CBluetoothSocket object |
|
1610 //! @SYMTestStatus Implemented |
|
1611 //! @SYMTestPriority Critical |
|
1612 //! @SYMTestExpectedResults Connection setup successfully and data send cancelled successfully |
|
1613 //! @SYMTestType CIT |
|
1614 |
|
1615 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1616 SHARED_ACTIVE_SCHEDULER |
|
1617 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1618 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1619 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1620 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1621 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1622 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0018-0001command2NewL |
|
1623 COMMAND TBTServiceSecurity1 Construct |
|
1624 COMMAND TRfcommSockAddr1 Construct |
|
1625 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0018-0001command7SetSecurity |
|
1626 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0018-0001command8SetBTAddr |
|
1627 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0018-0001command9SetPort |
|
1628 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0018-0001command10BTAddr |
|
1629 STORE CBluetoothSocket1 |
|
1630 STORE TRfcommSockAddr1 |
|
1631 STORE TBTDevAddrRemote |
|
1632 STORE_ACTIVE_SCHEDULER |
|
1633 END_TEST_BLOCK |
|
1634 |
|
1635 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1636 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1637 SHARED_ACTIVE_SCHEDULER |
|
1638 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1639 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1640 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0018-0002command1Connect |
|
1641 OUTSTANDING |
|
1642 STORE CBluetoothSocket1 |
|
1643 STORE_ACTIVE_SCHEDULER |
|
1644 END_TEST_BLOCK |
|
1645 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1646 |
|
1647 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1648 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1649 SHARED_ACTIVE_SCHEDULER |
|
1650 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1651 DELAY 1000 |
|
1652 COMMAND CBluetoothSocket1 Write BT-USER-SOCK-PublicAPI-Active-0018-0003command2Write |
|
1653 COMMAND CBluetoothSocket1 CancelWrite |
|
1654 OUTSTANDING |
|
1655 STORE CBluetoothSocket1 |
|
1656 STORE_ACTIVE_SCHEDULER |
|
1657 END_TEST_BLOCK |
|
1658 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1659 |
|
1660 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1661 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1662 SHARED_ACTIVE_SCHEDULER |
|
1663 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1664 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0018-0004command1Shutdown |
|
1665 OUTSTANDING |
|
1666 COMMAND CBluetoothSocket1 ~ |
|
1667 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1668 END_TEST_BLOCK |
|
1669 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1670 |
|
1671 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0018 |
|
1672 |
|
1673 |
|
1674 DELAY 2000 |
|
1675 |
|
1676 |
|
1677 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019 |
|
1678 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0019 |
|
1679 //! @SYMAPI CBluetoothSocket |
|
1680 //! @SYMAuthor Johan Eriksson |
|
1681 //! @SYMCreationDate 05/04/2006 |
|
1682 //! @SYMTestCaseDesc Send data over a BT socket, read will be cancelled on passive side |
|
1683 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Write, |
|
1684 //! HandleSendCompleteL |
|
1685 //! @SYMTestActions 1. Order slave to set up connection |
|
1686 //! 2. Get result from slave to wait for it to be ready |
|
1687 //! 3. Create a connection to the RSocket server |
|
1688 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1689 //! 5. Create an empty TBTServiceSecurity object |
|
1690 //! 6. Create a TRfcommSockAddr object |
|
1691 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1692 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1693 //! 9. Set the port to the specific one of the protocol we use |
|
1694 //! 10. Verify the set BT Address |
|
1695 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1696 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1697 //! 13. Get result from slave |
|
1698 //! 14. Send data to the socket using write |
|
1699 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
1700 //! 16. Get result from slave |
|
1701 //! 17. Order slave to cleanup |
|
1702 //! 18. Wait for slave |
|
1703 //! 19. Do socket cleanup |
|
1704 //! 20. delete CBluetoothSocket object |
|
1705 //! @SYMTestStatus Implemented |
|
1706 //! @SYMTestPriority Critical |
|
1707 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully, read will be cancelled on passive side |
|
1708 //! @SYMTestType CIT |
|
1709 |
|
1710 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1711 SHARED_ACTIVE_SCHEDULER |
|
1712 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1713 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1714 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1715 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1716 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1717 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0019-0001command2NewL |
|
1718 COMMAND TBTServiceSecurity1 Construct |
|
1719 COMMAND TRfcommSockAddr1 Construct |
|
1720 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0019-0001command7SetSecurity |
|
1721 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0019-0001command8SetBTAddr |
|
1722 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0019-0001command9SetPort |
|
1723 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0019-0001command10BTAddr |
|
1724 STORE CBluetoothSocket1 |
|
1725 STORE TRfcommSockAddr1 |
|
1726 STORE TBTDevAddrRemote |
|
1727 STORE_ACTIVE_SCHEDULER |
|
1728 END_TEST_BLOCK |
|
1729 |
|
1730 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1731 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1732 SHARED_ACTIVE_SCHEDULER |
|
1733 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1734 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1735 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0019-0002command1Connect |
|
1736 OUTSTANDING |
|
1737 STORE CBluetoothSocket1 |
|
1738 STORE_ACTIVE_SCHEDULER |
|
1739 END_TEST_BLOCK |
|
1740 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1741 |
|
1742 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1743 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1744 SHARED_ACTIVE_SCHEDULER |
|
1745 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1746 COMMAND CBluetoothSocket1 Write BT-USER-SOCK-PublicAPI-Active-0019-0003command1Write |
|
1747 OUTSTANDING |
|
1748 STORE CBluetoothSocket1 |
|
1749 STORE_ACTIVE_SCHEDULER |
|
1750 END_TEST_BLOCK |
|
1751 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1752 |
|
1753 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1754 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1755 SHARED_ACTIVE_SCHEDULER |
|
1756 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1757 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0019-0004command1Shutdown |
|
1758 OUTSTANDING |
|
1759 COMMAND CBluetoothSocket1 ~ |
|
1760 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1761 END_TEST_BLOCK |
|
1762 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1763 |
|
1764 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0019 |
|
1765 |
|
1766 |
|
1767 DELAY 2000 |
|
1768 |
|
1769 |
|
1770 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020 |
|
1771 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0020 |
|
1772 //! @SYMAPI CBluetoothSocket |
|
1773 //! @SYMAuthor Johan Eriksson |
|
1774 //! @SYMCreationDate 05/04/2006 |
|
1775 //! @SYMTestCaseDesc Send data over a BT socket so that RecvOneOrMore can be verified on passive side |
|
1776 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, |
|
1777 //! HandleSendCompleteL |
|
1778 //! @SYMTestActions 1. Order slave to set up connection |
|
1779 //! 2. Get result from slave to wait for it to be ready |
|
1780 //! 3. Create a connection to the RSocket server |
|
1781 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1782 //! 5. Create an empty TBTServiceSecurity object |
|
1783 //! 6. Create a TRfcommSockAddr object |
|
1784 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1785 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1786 //! 9. Set the port to the specific one of the protocol we use |
|
1787 //! 10. Verify the set BT Address |
|
1788 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1789 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1790 //! 13. Get result from slave |
|
1791 //! 14. Send data to the socket using Send()1 |
|
1792 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
1793 //! 16. Get result from slave |
|
1794 //! 17. Order slave to cleanup |
|
1795 //! 18. Wait for slave |
|
1796 //! 19. Do socket cleanup |
|
1797 //! 20. delete CBluetoothSocket object |
|
1798 //! @SYMTestStatus Implemented |
|
1799 //! @SYMTestPriority Critical |
|
1800 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
1801 //! @SYMTestType CIT |
|
1802 |
|
1803 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1804 SHARED_ACTIVE_SCHEDULER |
|
1805 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1806 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1807 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1808 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1809 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1810 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0020-0001command2NewL |
|
1811 COMMAND TBTServiceSecurity1 Construct |
|
1812 COMMAND TRfcommSockAddr1 Construct |
|
1813 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0020-0001command7SetSecurity |
|
1814 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0020-0001command8SetBTAddr |
|
1815 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0020-0001command9SetPort |
|
1816 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0020-0001command10BTAddr |
|
1817 STORE CBluetoothSocket1 |
|
1818 STORE TRfcommSockAddr1 |
|
1819 STORE TBTDevAddrRemote |
|
1820 STORE_ACTIVE_SCHEDULER |
|
1821 END_TEST_BLOCK |
|
1822 |
|
1823 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1824 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1825 SHARED_ACTIVE_SCHEDULER |
|
1826 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1827 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1828 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0020-0002command1Connect |
|
1829 OUTSTANDING |
|
1830 STORE CBluetoothSocket1 |
|
1831 STORE_ACTIVE_SCHEDULER |
|
1832 END_TEST_BLOCK |
|
1833 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1834 |
|
1835 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1836 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1837 SHARED_ACTIVE_SCHEDULER |
|
1838 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1839 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0020-0003command1Send |
|
1840 OUTSTANDING |
|
1841 STORE CBluetoothSocket1 |
|
1842 STORE_ACTIVE_SCHEDULER |
|
1843 END_TEST_BLOCK |
|
1844 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1845 |
|
1846 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1847 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1848 SHARED_ACTIVE_SCHEDULER |
|
1849 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1850 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0020-0004command1Shutdown |
|
1851 OUTSTANDING |
|
1852 COMMAND CBluetoothSocket1 ~ |
|
1853 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1854 END_TEST_BLOCK |
|
1855 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1856 |
|
1857 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0020 |
|
1858 |
|
1859 |
|
1860 DELAY 2000 |
|
1861 |
|
1862 |
|
1863 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021 |
|
1864 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0021 |
|
1865 //! @SYMAPI CBluetoothSocket |
|
1866 //! @SYMAuthor Johan Eriksson |
|
1867 //! @SYMCreationDate 06/04/2006 |
|
1868 //! @SYMTestCaseDesc Connection setup successfully to test GetDisconnectData method |
|
1869 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, GetDisconnectData |
|
1870 //! @SYMTestActions 1. Order slave to set up connection |
|
1871 //! 2. Get result from slave to wait for it to be ready |
|
1872 //! 3. Create a connection to the RSocket server |
|
1873 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1874 //! 5. Create an empty TBTServiceSecurity object |
|
1875 //! 6. Create a TRfcommSockAddr object |
|
1876 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1877 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1878 //! 9. Set the port to the specific one of the protocol we use |
|
1879 //! 10. Verify the set BT Address |
|
1880 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1881 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1882 //! 13. Get result from slave |
|
1883 //! 14. Send data to the socket using Send()1 |
|
1884 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
1885 //! 16. Get result from slave |
|
1886 //! 17. Order slave to cleanup |
|
1887 //! 18. Wait for slave |
|
1888 //! 19. Call GetDisconnectData to see if any disconnect data is available (protocol specific if there is or not) |
|
1889 //! 20. Do socket cleanup |
|
1890 //! 21. delete CBluetoothSocket object |
|
1891 //! @SYMTestStatus Implemented |
|
1892 //! @SYMTestPriority Critical |
|
1893 //! @SYMTestExpectedResults Connection setup successfully to test GetDisconnectData method |
|
1894 //! @SYMTestType CIT |
|
1895 |
|
1896 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1897 SHARED_ACTIVE_SCHEDULER |
|
1898 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1899 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1900 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1901 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1902 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1903 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0021-0001command2NewL |
|
1904 COMMAND TBTServiceSecurity1 Construct |
|
1905 COMMAND TRfcommSockAddr1 Construct |
|
1906 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0021-0001command7SetSecurity |
|
1907 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0021-0001command8SetBTAddr |
|
1908 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0021-0001command9SetPort |
|
1909 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0021-0001command10BTAddr |
|
1910 STORE CBluetoothSocket1 |
|
1911 STORE TRfcommSockAddr1 |
|
1912 STORE TBTDevAddrRemote |
|
1913 STORE_ACTIVE_SCHEDULER |
|
1914 END_TEST_BLOCK |
|
1915 |
|
1916 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1917 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1918 SHARED_ACTIVE_SCHEDULER |
|
1919 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1920 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1921 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0021-0002command1Connect |
|
1922 OUTSTANDING |
|
1923 STORE CBluetoothSocket1 |
|
1924 STORE_ACTIVE_SCHEDULER |
|
1925 END_TEST_BLOCK |
|
1926 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1927 |
|
1928 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1929 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1930 SHARED_ACTIVE_SCHEDULER |
|
1931 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1932 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0021-0003command1Send |
|
1933 OUTSTANDING |
|
1934 STORE CBluetoothSocket1 |
|
1935 STORE_ACTIVE_SCHEDULER |
|
1936 END_TEST_BLOCK |
|
1937 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1938 |
|
1939 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
1940 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1941 SHARED_ACTIVE_SCHEDULER |
|
1942 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1943 COMMAND !Error=-5 CBluetoothSocket1 GetDisconnectData |
|
1944 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0021-0004command2Shutdown |
|
1945 OUTSTANDING |
|
1946 COMMAND CBluetoothSocket1 ~ |
|
1947 COMMAND CBluetoothSocket1 RSocketServerClose |
|
1948 END_TEST_BLOCK |
|
1949 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
1950 |
|
1951 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0021 |
|
1952 |
|
1953 |
|
1954 DELAY 2000 |
|
1955 |
|
1956 |
|
1957 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022 |
|
1958 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0022 |
|
1959 //! @SYMAPI CBluetoothSocket |
|
1960 //! @SYMAuthor Johan Eriksson |
|
1961 //! @SYMCreationDate 06/04/2006 |
|
1962 //! @SYMTestCaseDesc Test RequestChangeSupportedPacketTypes method |
|
1963 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
1964 //! RequestChangeSupportedPacketTypes, GetDisconnectData |
|
1965 //! @SYMTestActions 1. Order slave to set up connection |
|
1966 //! 2. Get result from slave to wait for it to be ready |
|
1967 //! 3. Create a connection to the RSocket server |
|
1968 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
1969 //! 5. Create an empty TBTServiceSecurity object |
|
1970 //! 6. Create a TRfcommSockAddr object |
|
1971 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
1972 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
1973 //! 9. Set the port to the specific one of the protocol we use |
|
1974 //! 10. Verify the set BT Address |
|
1975 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
1976 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
1977 //! 13. Get result from slave |
|
1978 //! 14. Call RequestChangeSupportedPacketTypes with a bad packet type |
|
1979 //! 15. Send data to the socket using Send()1 |
|
1980 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
1981 //! 17. Get result from slave |
|
1982 //! 18. Order slave to cleanup |
|
1983 //! 19. Wait for slave |
|
1984 //! 20. Do socket cleanup |
|
1985 //! 21. delete CBluetoothSocket object |
|
1986 //! @SYMTestStatus Implemented |
|
1987 //! @SYMTestPriority Critical |
|
1988 //! @SYMTestExpectedResults RequestChangeSupportedPacketTypes fails with error KErrArgument (-6) |
|
1989 //! @SYMTestType CIT |
|
1990 |
|
1991 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
1992 SHARED_ACTIVE_SCHEDULER |
|
1993 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1994 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1995 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1996 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1997 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
1998 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0022-0001command2NewL |
|
1999 COMMAND TBTServiceSecurity1 Construct |
|
2000 COMMAND TRfcommSockAddr1 Construct |
|
2001 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0022-0001command7SetSecurity |
|
2002 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0022-0001command8SetBTAddr |
|
2003 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0022-0001command9SetPort |
|
2004 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0022-0001command10BTAddr |
|
2005 STORE CBluetoothSocket1 |
|
2006 STORE TRfcommSockAddr1 |
|
2007 STORE TBTDevAddrRemote |
|
2008 STORE_ACTIVE_SCHEDULER |
|
2009 END_TEST_BLOCK |
|
2010 |
|
2011 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2012 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2013 SHARED_ACTIVE_SCHEDULER |
|
2014 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2015 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2016 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0022-0002command1Connect |
|
2017 OUTSTANDING |
|
2018 STORE CBluetoothSocket1 |
|
2019 STORE_ACTIVE_SCHEDULER |
|
2020 END_TEST_BLOCK |
|
2021 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2022 |
|
2023 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2024 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2025 SHARED_ACTIVE_SCHEDULER |
|
2026 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2027 COMMAND !Error=-6 CBluetoothSocket1 RequestChangeSupportedPacketTypes BT-USER-SOCK-PublicAPI-Active-0022-0003command1RequestChangeSupportedPacketTypes |
|
2028 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0022-0003command2Send |
|
2029 OUTSTANDING |
|
2030 STORE CBluetoothSocket1 |
|
2031 STORE_ACTIVE_SCHEDULER |
|
2032 END_TEST_BLOCK |
|
2033 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2034 |
|
2035 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2036 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2037 SHARED_ACTIVE_SCHEDULER |
|
2038 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2039 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0022-0004command1Shutdown |
|
2040 OUTSTANDING |
|
2041 COMMAND CBluetoothSocket1 ~ |
|
2042 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2043 END_TEST_BLOCK |
|
2044 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2045 |
|
2046 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0022 |
|
2047 |
|
2048 |
|
2049 |
|
2050 DELAY 2000 |
|
2051 |
|
2052 |
|
2053 |
|
2054 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023 |
|
2055 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0023 |
|
2056 //! @SYMAPI CBluetoothSocket |
|
2057 //! @SYMAuthor James Mechen |
|
2058 //! @SYMCreationDate 07/08/2006 |
|
2059 //! @SYMTestCaseDesc Try to send data over a BT socket while already sending |
|
2060 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2061 //! @SYMTestActions 1. Order slave to set up connection |
|
2062 //! 2. Get result from slave to wait for it to be ready |
|
2063 //! 3. Create a connection to the RSocket server |
|
2064 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2065 //! 5. Create an empty TBTServiceSecurity object |
|
2066 //! 6. Create a TRfcommSockAddr object |
|
2067 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2068 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2069 //! 9. Set the port to the specific one of the protocol we use |
|
2070 //! 10. Verify the set BT Address |
|
2071 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2072 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2073 //! 13. Get result from slave |
|
2074 //! 14. Send data to the socket using Send()1 |
|
2075 //! 15. Immediately send data to the socket again, using Send()1 |
|
2076 //! 16. HandleSendCompleteL gets called verify that there is error code KErrInUse |
|
2077 //! 17. Get result from slave |
|
2078 //! 18. Order slave to cleanup |
|
2079 //! 19. Wait for slave |
|
2080 //! 20. Do socket cleanup |
|
2081 //! 21. delete CBluetoothSocket object |
|
2082 //! @SYMTestStatus Implemented |
|
2083 //! @SYMTestPriority Critical |
|
2084 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully but second send returns KErrInUse (-14) |
|
2085 //! @SYMTestType CIT |
|
2086 |
|
2087 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2088 SHARED_ACTIVE_SCHEDULER |
|
2089 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2090 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2091 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2092 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2093 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2094 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0023-0001command2NewL |
|
2095 COMMAND TBTServiceSecurity1 Construct |
|
2096 COMMAND TRfcommSockAddr1 Construct |
|
2097 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0023-0001command7SetSecurity |
|
2098 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0023-0001command8SetBTAddr |
|
2099 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0023-0001command9SetPort |
|
2100 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0023-0001command10BTAddr |
|
2101 STORE CBluetoothSocket1 |
|
2102 STORE TRfcommSockAddr1 |
|
2103 STORE TBTDevAddrRemote |
|
2104 STORE_ACTIVE_SCHEDULER |
|
2105 END_TEST_BLOCK |
|
2106 |
|
2107 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2108 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2109 SHARED_ACTIVE_SCHEDULER |
|
2110 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2111 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2112 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0023-0002command1Connect |
|
2113 OUTSTANDING |
|
2114 STORE CBluetoothSocket1 |
|
2115 STORE_ACTIVE_SCHEDULER |
|
2116 END_TEST_BLOCK |
|
2117 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2118 |
|
2119 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2120 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2121 SHARED_ACTIVE_SCHEDULER |
|
2122 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2123 COMMAND !Error=-14 CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0023-0003command1Send |
|
2124 OUTSTANDING |
|
2125 STORE CBluetoothSocket1 |
|
2126 STORE_ACTIVE_SCHEDULER |
|
2127 END_TEST_BLOCK |
|
2128 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2129 |
|
2130 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2131 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2132 SHARED_ACTIVE_SCHEDULER |
|
2133 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2134 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0023-0004command1Shutdown |
|
2135 OUTSTANDING |
|
2136 COMMAND CBluetoothSocket1 ~ |
|
2137 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2138 END_TEST_BLOCK |
|
2139 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2140 |
|
2141 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0023 |
|
2142 |
|
2143 |
|
2144 DELAY 2000 |
|
2145 |
|
2146 |
|
2147 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024 |
|
2148 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0024 |
|
2149 //! @SYMAPI CBluetoothSocket |
|
2150 //! @SYMAuthor James Mechen |
|
2151 //! @SYMCreationDate 07/08/2006 |
|
2152 //! @SYMTestCaseDesc Try to send data over a BT socket while already sending |
|
2153 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()2, HandleSendCompleteL |
|
2154 //! @SYMTestActions 1. Order slave to set up connection |
|
2155 //! 2. Get result from slave to wait for it to be ready |
|
2156 //! 3. Create a connection to the RSocket server |
|
2157 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2158 //! 5. Create an empty TBTServiceSecurity object |
|
2159 //! 6. Create a TRfcommSockAddr object |
|
2160 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2161 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2162 //! 9. Set the port to the specific one of the protocol we use |
|
2163 //! 10. Verify the set BT Address |
|
2164 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2165 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2166 //! 13. Get result from slave |
|
2167 //! 14. Send data to the socket using Send()2 |
|
2168 //! 15. Immediately send data to the socket again, using Send()2 |
|
2169 //! 16. HandleSendCompleteL gets called verify that there is error code KErrInUse |
|
2170 //! 17. Get result from slave |
|
2171 //! 18. Order slave to cleanup |
|
2172 //! 19. Wait for slave |
|
2173 //! 20. Do socket cleanup |
|
2174 //! 21. delete CBluetoothSocket object |
|
2175 //! @SYMTestStatus Implemented |
|
2176 //! @SYMTestPriority Critical |
|
2177 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully but second send returns KErrInUse (-14) |
|
2178 //! @SYMTestType CIT |
|
2179 |
|
2180 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2181 SHARED_ACTIVE_SCHEDULER |
|
2182 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2183 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2184 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2185 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2186 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2187 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0024-0001command2NewL |
|
2188 COMMAND TBTServiceSecurity1 Construct |
|
2189 COMMAND TRfcommSockAddr1 Construct |
|
2190 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0024-0001command7SetSecurity |
|
2191 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0024-0001command8SetBTAddr |
|
2192 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0024-0001command9SetPort |
|
2193 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0024-0001command10BTAddr |
|
2194 STORE CBluetoothSocket1 |
|
2195 STORE TRfcommSockAddr1 |
|
2196 STORE TBTDevAddrRemote |
|
2197 STORE_ACTIVE_SCHEDULER |
|
2198 END_TEST_BLOCK |
|
2199 |
|
2200 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2201 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2202 SHARED_ACTIVE_SCHEDULER |
|
2203 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2204 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2205 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0024-0002command1Connect |
|
2206 OUTSTANDING |
|
2207 STORE CBluetoothSocket1 |
|
2208 STORE_ACTIVE_SCHEDULER |
|
2209 END_TEST_BLOCK |
|
2210 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2211 |
|
2212 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2213 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2214 SHARED_ACTIVE_SCHEDULER |
|
2215 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2216 COMMAND !Error=-14 CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0024-0003command1Send |
|
2217 OUTSTANDING |
|
2218 STORE CBluetoothSocket1 |
|
2219 STORE_ACTIVE_SCHEDULER |
|
2220 END_TEST_BLOCK |
|
2221 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2222 |
|
2223 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2224 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2225 SHARED_ACTIVE_SCHEDULER |
|
2226 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2227 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0024-0004command1Shutdown |
|
2228 OUTSTANDING |
|
2229 COMMAND CBluetoothSocket1 ~ |
|
2230 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2231 END_TEST_BLOCK |
|
2232 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2233 |
|
2234 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0024 |
|
2235 |
|
2236 |
|
2237 DELAY 2000 |
|
2238 |
|
2239 |
|
2240 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025 |
|
2241 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0025 |
|
2242 //! @SYMAPI CBluetoothSocket |
|
2243 //! @SYMAuthor James Mechen |
|
2244 //! @SYMCreationDate 07/08/2006 |
|
2245 //! @SYMTestCaseDesc Cancel send of data over a BT socket without first sending any data |
|
2246 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, CancelSend, |
|
2247 //! HandleSendCompleteL |
|
2248 //! @SYMTestActions 1. Order slave to set up connection |
|
2249 //! 2. Get result from slave to wait for it to be ready |
|
2250 //! 3. Create a connection to the RSocket server |
|
2251 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2252 //! 5. Create an empty TBTServiceSecurity object |
|
2253 //! 6. Create a TRfcommSockAddr object |
|
2254 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2255 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2256 //! 9. Set the port to the specific one of the protocol we use |
|
2257 //! 10. Verify the set BT Address |
|
2258 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2259 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2260 //! 13. Get result from slave |
|
2261 //! 14. Call CancelSend before calling the send operation |
|
2262 //! 15. Send data to the socket using Send()1 |
|
2263 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
2264 //! 17. Get result from slave |
|
2265 //! 18. Order slave to cleanup |
|
2266 //! 19. Wait for slave |
|
2267 //! 20. Do socket cleanup |
|
2268 //! 21. delete CBluetoothSocket object |
|
2269 //! @SYMTestStatus Implemented |
|
2270 //! @SYMTestPriority Critical |
|
2271 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2272 //! @SYMTestType CIT |
|
2273 |
|
2274 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2275 SHARED_ACTIVE_SCHEDULER |
|
2276 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2277 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2278 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2279 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2280 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2281 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0025-0001command2NewL |
|
2282 COMMAND TBTServiceSecurity1 Construct |
|
2283 COMMAND TRfcommSockAddr1 Construct |
|
2284 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0025-0001command7SetSecurity |
|
2285 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0025-0001command8SetBTAddr |
|
2286 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0025-0001command9SetPort |
|
2287 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0025-0001command10BTAddr |
|
2288 STORE CBluetoothSocket1 |
|
2289 STORE TRfcommSockAddr1 |
|
2290 STORE TBTDevAddrRemote |
|
2291 STORE_ACTIVE_SCHEDULER |
|
2292 END_TEST_BLOCK |
|
2293 |
|
2294 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2295 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2296 SHARED_ACTIVE_SCHEDULER |
|
2297 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2298 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2299 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0025-0002command1Connect |
|
2300 OUTSTANDING |
|
2301 STORE CBluetoothSocket1 |
|
2302 STORE_ACTIVE_SCHEDULER |
|
2303 END_TEST_BLOCK |
|
2304 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2305 |
|
2306 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2307 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2308 SHARED_ACTIVE_SCHEDULER |
|
2309 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2310 COMMAND CBluetoothSocket1 CancelSend |
|
2311 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0025-0003command2Send |
|
2312 OUTSTANDING |
|
2313 STORE CBluetoothSocket1 |
|
2314 STORE_ACTIVE_SCHEDULER |
|
2315 END_TEST_BLOCK |
|
2316 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2317 |
|
2318 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2319 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2320 SHARED_ACTIVE_SCHEDULER |
|
2321 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2322 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0025-0004command1Shutdown |
|
2323 OUTSTANDING |
|
2324 COMMAND CBluetoothSocket1 ~ |
|
2325 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2326 END_TEST_BLOCK |
|
2327 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2328 |
|
2329 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0025 |
|
2330 |
|
2331 |
|
2332 DELAY 2000 |
|
2333 |
|
2334 |
|
2335 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026 |
|
2336 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0026 |
|
2337 //! @SYMAPI CBluetoothSocket |
|
2338 //! @SYMAuthor James Mechen |
|
2339 //! @SYMCreationDate 07/08/2006 |
|
2340 //! @SYMTestCaseDesc Send data over a BT socket |
|
2341 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2342 //! @SYMTestActions 1. Order slave to set up connection |
|
2343 //! 2. Get result from slave to wait for it to be ready |
|
2344 //! 3. Create a connection to the RSocket server |
|
2345 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2346 //! 5. Create an empty TBTServiceSecurity object |
|
2347 //! 6. Create a TRfcommSockAddr object |
|
2348 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2349 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2350 //! 9. Set the port to the specific one of the protocol we use |
|
2351 //! 10. Verify the set BT Address |
|
2352 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2353 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2354 //! 13. Get result from slave |
|
2355 //! 14. Send data to the socket using Send()1 |
|
2356 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
2357 //! 16. Get result from slave |
|
2358 //! 17. Order slave to cleanup |
|
2359 //! 18. Wait for slave |
|
2360 //! 19. Do socket cleanup |
|
2361 //! 20. delete CBluetoothSocket object |
|
2362 //! @SYMTestStatus Implemented |
|
2363 //! @SYMTestPriority Critical |
|
2364 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2365 //! @SYMTestType CIT |
|
2366 |
|
2367 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2368 SHARED_ACTIVE_SCHEDULER |
|
2369 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2370 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2371 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2372 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2373 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2374 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0026-0001command2NewL |
|
2375 COMMAND TBTServiceSecurity1 Construct |
|
2376 COMMAND TRfcommSockAddr1 Construct |
|
2377 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0026-0001command7SetSecurity |
|
2378 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0026-0001command8SetBTAddr |
|
2379 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0026-0001command9SetPort |
|
2380 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0026-0001command10BTAddr |
|
2381 STORE CBluetoothSocket1 |
|
2382 STORE TRfcommSockAddr1 |
|
2383 STORE TBTDevAddrRemote |
|
2384 STORE_ACTIVE_SCHEDULER |
|
2385 END_TEST_BLOCK |
|
2386 |
|
2387 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2388 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2389 SHARED_ACTIVE_SCHEDULER |
|
2390 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2391 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2392 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0026-0002command1Connect |
|
2393 OUTSTANDING |
|
2394 STORE CBluetoothSocket1 |
|
2395 STORE_ACTIVE_SCHEDULER |
|
2396 END_TEST_BLOCK |
|
2397 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2398 |
|
2399 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2400 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2401 SHARED_ACTIVE_SCHEDULER |
|
2402 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2403 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0026-0003command1Send |
|
2404 OUTSTANDING |
|
2405 STORE CBluetoothSocket1 |
|
2406 STORE_ACTIVE_SCHEDULER |
|
2407 END_TEST_BLOCK |
|
2408 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2409 |
|
2410 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2411 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2412 SHARED_ACTIVE_SCHEDULER |
|
2413 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2414 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0026-0004command1Shutdown |
|
2415 OUTSTANDING |
|
2416 COMMAND CBluetoothSocket1 ~ |
|
2417 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2418 END_TEST_BLOCK |
|
2419 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2420 |
|
2421 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0026 |
|
2422 |
|
2423 |
|
2424 DELAY 2000 |
|
2425 |
|
2426 |
|
2427 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027 |
|
2428 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0027 |
|
2429 //! @SYMAPI CBluetoothSocket |
|
2430 //! @SYMAuthor James Mechen |
|
2431 //! @SYMCreationDate 07/08/2006 |
|
2432 //! @SYMTestCaseDesc Send data over a BT socket |
|
2433 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2434 //! @SYMTestActions 1. Order slave to set up connection |
|
2435 //! 2. Get result from slave to wait for it to be ready |
|
2436 //! 3. Create a connection to the RSocket server |
|
2437 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2438 //! 5. Create an empty TBTServiceSecurity object |
|
2439 //! 6. Create a TRfcommSockAddr object |
|
2440 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2441 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2442 //! 9. Set the port to the specific one of the protocol we use |
|
2443 //! 10. Verify the set BT Address |
|
2444 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2445 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2446 //! 13. Get result from slave |
|
2447 //! 14. Send data to the socket using Send()1 |
|
2448 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
2449 //! 16. Get result from slave |
|
2450 //! 17. Order slave to cleanup |
|
2451 //! 18. Wait for slave |
|
2452 //! 19. Do socket cleanup |
|
2453 //! 20. delete CBluetoothSocket object |
|
2454 //! @SYMTestStatus Implemented |
|
2455 //! @SYMTestPriority Critical |
|
2456 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2457 //! @SYMTestType CIT |
|
2458 |
|
2459 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2460 SHARED_ACTIVE_SCHEDULER |
|
2461 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2462 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2463 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2464 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2465 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2466 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0027-0001command2NewL |
|
2467 COMMAND TBTServiceSecurity1 Construct |
|
2468 COMMAND TRfcommSockAddr1 Construct |
|
2469 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0027-0001command7SetSecurity |
|
2470 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0027-0001command8SetBTAddr |
|
2471 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0027-0001command9SetPort |
|
2472 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0027-0001command10BTAddr |
|
2473 STORE CBluetoothSocket1 |
|
2474 STORE TRfcommSockAddr1 |
|
2475 STORE TBTDevAddrRemote |
|
2476 STORE_ACTIVE_SCHEDULER |
|
2477 END_TEST_BLOCK |
|
2478 |
|
2479 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2480 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2481 SHARED_ACTIVE_SCHEDULER |
|
2482 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2483 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2484 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0027-0002command1Connect |
|
2485 OUTSTANDING |
|
2486 STORE CBluetoothSocket1 |
|
2487 STORE_ACTIVE_SCHEDULER |
|
2488 END_TEST_BLOCK |
|
2489 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2490 |
|
2491 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2492 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2493 SHARED_ACTIVE_SCHEDULER |
|
2494 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2495 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0027-0003command1Send |
|
2496 OUTSTANDING |
|
2497 STORE CBluetoothSocket1 |
|
2498 STORE_ACTIVE_SCHEDULER |
|
2499 END_TEST_BLOCK |
|
2500 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2501 |
|
2502 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2503 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2504 SHARED_ACTIVE_SCHEDULER |
|
2505 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2506 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0027-0004command1Shutdown |
|
2507 OUTSTANDING |
|
2508 COMMAND CBluetoothSocket1 ~ |
|
2509 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2510 END_TEST_BLOCK |
|
2511 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2512 |
|
2513 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0027 |
|
2514 |
|
2515 |
|
2516 DELAY 2000 |
|
2517 |
|
2518 |
|
2519 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028 |
|
2520 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0028 |
|
2521 //! @SYMAPI CBluetoothSocket |
|
2522 //! @SYMAuthor James Mechen |
|
2523 //! @SYMCreationDate 07/08/2006 |
|
2524 //! @SYMTestCaseDesc Send data over a BT socket |
|
2525 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2526 //! @SYMTestActions 1. Order slave to set up connection |
|
2527 //! 2. Get result from slave to wait for it to be ready |
|
2528 //! 3. Create a connection to the RSocket server |
|
2529 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2530 //! 5. Create an empty TBTServiceSecurity object |
|
2531 //! 6. Create a TRfcommSockAddr object |
|
2532 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2533 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2534 //! 9. Set the port to the specific one of the protocol we use |
|
2535 //! 10. Verify the set BT Address |
|
2536 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2537 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2538 //! 13. Get result from slave |
|
2539 //! 14. Send data to the socket using Send()1 |
|
2540 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
2541 //! 16. Get result from slave |
|
2542 //! 17. Order slave to cleanup |
|
2543 //! 18. Wait for slave |
|
2544 //! 19. Do socket cleanup |
|
2545 //! 20. delete CBluetoothSocket object |
|
2546 //! @SYMTestStatus Implemented |
|
2547 //! @SYMTestPriority Critical |
|
2548 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2549 //! @SYMTestType CIT |
|
2550 |
|
2551 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2552 SHARED_ACTIVE_SCHEDULER |
|
2553 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2554 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2555 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2556 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2557 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2558 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0028-0001command2NewL |
|
2559 COMMAND TBTServiceSecurity1 Construct |
|
2560 COMMAND TRfcommSockAddr1 Construct |
|
2561 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0028-0001command7SetSecurity |
|
2562 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0028-0001command8SetBTAddr |
|
2563 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0028-0001command9SetPort |
|
2564 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0028-0001command10BTAddr |
|
2565 STORE CBluetoothSocket1 |
|
2566 STORE TRfcommSockAddr1 |
|
2567 STORE TBTDevAddrRemote |
|
2568 STORE_ACTIVE_SCHEDULER |
|
2569 END_TEST_BLOCK |
|
2570 |
|
2571 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2572 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2573 SHARED_ACTIVE_SCHEDULER |
|
2574 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2575 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2576 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0028-0002command1Connect |
|
2577 OUTSTANDING |
|
2578 STORE CBluetoothSocket1 |
|
2579 STORE_ACTIVE_SCHEDULER |
|
2580 END_TEST_BLOCK |
|
2581 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2582 |
|
2583 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2584 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2585 SHARED_ACTIVE_SCHEDULER |
|
2586 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2587 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0028-0003command1Send |
|
2588 OUTSTANDING |
|
2589 STORE CBluetoothSocket1 |
|
2590 STORE_ACTIVE_SCHEDULER |
|
2591 END_TEST_BLOCK |
|
2592 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2593 |
|
2594 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2595 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2596 SHARED_ACTIVE_SCHEDULER |
|
2597 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2598 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0028-0004command1Shutdown |
|
2599 OUTSTANDING |
|
2600 COMMAND CBluetoothSocket1 ~ |
|
2601 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2602 END_TEST_BLOCK |
|
2603 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2604 |
|
2605 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0028 |
|
2606 |
|
2607 |
|
2608 DELAY 2000 |
|
2609 |
|
2610 |
|
2611 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029 |
|
2612 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0029 |
|
2613 //! @SYMAPI CBluetoothSocket |
|
2614 //! @SYMAuthor James Mechen |
|
2615 //! @SYMCreationDate 07/08/2006 |
|
2616 //! @SYMTestCaseDesc Send data over a BT socket |
|
2617 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2618 //! @SYMTestActions 1. Order slave to set up connection |
|
2619 //! 2. Get result from slave to wait for it to be ready |
|
2620 //! 3. Create a connection to the RSocket server |
|
2621 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2622 //! 5. Create an empty TBTServiceSecurity object |
|
2623 //! 6. Create a TRfcommSockAddr object |
|
2624 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2625 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2626 //! 9. Set the port to the specific one of the protocol we use |
|
2627 //! 10. Verify the set BT Address |
|
2628 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2629 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2630 //! 13. Get result from slave |
|
2631 //! 14. Send data to the socket using Send()1 |
|
2632 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
2633 //! 16. Get result from slave |
|
2634 //! 17. Order slave to cleanup |
|
2635 //! 18. Wait for slave |
|
2636 //! 19. Do socket cleanup |
|
2637 //! 20. delete CBluetoothSocket object |
|
2638 //! @SYMTestStatus Implemented |
|
2639 //! @SYMTestPriority Critical |
|
2640 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2641 //! @SYMTestType CIT |
|
2642 |
|
2643 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2644 SHARED_ACTIVE_SCHEDULER |
|
2645 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2646 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2647 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2648 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2649 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2650 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0029-0001command2NewL |
|
2651 COMMAND TBTServiceSecurity1 Construct |
|
2652 COMMAND TRfcommSockAddr1 Construct |
|
2653 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0029-0001command7SetSecurity |
|
2654 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0029-0001command8SetBTAddr |
|
2655 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0029-0001command9SetPort |
|
2656 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0029-0001command10BTAddr |
|
2657 STORE CBluetoothSocket1 |
|
2658 STORE TRfcommSockAddr1 |
|
2659 STORE TBTDevAddrRemote |
|
2660 STORE_ACTIVE_SCHEDULER |
|
2661 END_TEST_BLOCK |
|
2662 |
|
2663 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2664 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2665 SHARED_ACTIVE_SCHEDULER |
|
2666 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2667 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2668 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0029-0002command1Connect |
|
2669 OUTSTANDING |
|
2670 STORE CBluetoothSocket1 |
|
2671 STORE_ACTIVE_SCHEDULER |
|
2672 END_TEST_BLOCK |
|
2673 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2674 |
|
2675 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2676 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2677 SHARED_ACTIVE_SCHEDULER |
|
2678 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2679 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0029-0003command1Send |
|
2680 OUTSTANDING |
|
2681 STORE CBluetoothSocket1 |
|
2682 STORE_ACTIVE_SCHEDULER |
|
2683 END_TEST_BLOCK |
|
2684 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2685 |
|
2686 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2687 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2688 SHARED_ACTIVE_SCHEDULER |
|
2689 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2690 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0029-0004command1Shutdown |
|
2691 OUTSTANDING |
|
2692 COMMAND CBluetoothSocket1 ~ |
|
2693 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2694 END_TEST_BLOCK |
|
2695 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2696 |
|
2697 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0029 |
|
2698 |
|
2699 |
|
2700 DELAY 2000 |
|
2701 |
|
2702 |
|
2703 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030 |
|
2704 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0030 |
|
2705 //! @SYMAPI CBluetoothSocket |
|
2706 //! @SYMAuthor James Mechen |
|
2707 //! @SYMCreationDate 07/08/2006 |
|
2708 //! @SYMTestCaseDesc Send data over a BT socket |
|
2709 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2710 //! @SYMTestActions 1. Order slave to set up connection |
|
2711 //! 2. Get result from slave to wait for it to be ready |
|
2712 //! 3. Create a connection to the RSocket server |
|
2713 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2714 //! 5. Create an empty TBTServiceSecurity object |
|
2715 //! 6. Create a TRfcommSockAddr object |
|
2716 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2717 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2718 //! 9. Set the port to the specific one of the protocol we use |
|
2719 //! 10. Verify the set BT Address |
|
2720 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2721 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2722 //! 13. Get result from slave |
|
2723 //! 14. Send data to the socket using Send()1 |
|
2724 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
2725 //! 16. Get result from slave |
|
2726 //! 17. Order slave to cleanup |
|
2727 //! 18. Wait for slave |
|
2728 //! 19. Do socket cleanup |
|
2729 //! 20. delete CBluetoothSocket object |
|
2730 //! @SYMTestStatus Implemented |
|
2731 //! @SYMTestPriority Critical |
|
2732 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2733 //! @SYMTestType CIT |
|
2734 |
|
2735 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2736 SHARED_ACTIVE_SCHEDULER |
|
2737 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2738 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2739 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2740 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2741 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2742 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0030-0001command2NewL |
|
2743 COMMAND TBTServiceSecurity1 Construct |
|
2744 COMMAND TRfcommSockAddr1 Construct |
|
2745 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0030-0001command7SetSecurity |
|
2746 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0030-0001command8SetBTAddr |
|
2747 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0030-0001command9SetPort |
|
2748 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0030-0001command10BTAddr |
|
2749 STORE CBluetoothSocket1 |
|
2750 STORE TRfcommSockAddr1 |
|
2751 STORE TBTDevAddrRemote |
|
2752 STORE_ACTIVE_SCHEDULER |
|
2753 END_TEST_BLOCK |
|
2754 |
|
2755 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2756 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2757 SHARED_ACTIVE_SCHEDULER |
|
2758 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2759 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2760 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0030-0002command1Connect |
|
2761 OUTSTANDING |
|
2762 STORE CBluetoothSocket1 |
|
2763 STORE_ACTIVE_SCHEDULER |
|
2764 END_TEST_BLOCK |
|
2765 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2766 |
|
2767 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2768 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2769 SHARED_ACTIVE_SCHEDULER |
|
2770 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2771 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0030-0003command1Send |
|
2772 OUTSTANDING |
|
2773 STORE CBluetoothSocket1 |
|
2774 STORE_ACTIVE_SCHEDULER |
|
2775 END_TEST_BLOCK |
|
2776 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2777 |
|
2778 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2779 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2780 SHARED_ACTIVE_SCHEDULER |
|
2781 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2782 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0030-0004command1Shutdown |
|
2783 OUTSTANDING |
|
2784 COMMAND CBluetoothSocket1 ~ |
|
2785 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2786 END_TEST_BLOCK |
|
2787 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2788 |
|
2789 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0030 |
|
2790 |
|
2791 |
|
2792 DELAY 2000 |
|
2793 |
|
2794 |
|
2795 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031 |
|
2796 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0031 |
|
2797 //! @SYMAPI CBluetoothSocket |
|
2798 //! @SYMAuthor James Mechen |
|
2799 //! @SYMCreationDate 07/08/2006 |
|
2800 //! @SYMTestCaseDesc Send data over a BT socket |
|
2801 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
2802 //! @SYMTestActions 1. Order slave to set up connection |
|
2803 //! 2. Get result from slave to wait for it to be ready |
|
2804 //! 3. Create a connection to the RSocket server |
|
2805 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2806 //! 5. Create an empty TBTServiceSecurity object |
|
2807 //! 6. Create a TRfcommSockAddr object |
|
2808 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2809 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2810 //! 9. Set the port to the specific one of the protocol we use |
|
2811 //! 10. Verify the set BT Address |
|
2812 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2813 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2814 //! 13. Get result from slave |
|
2815 //! 14. Send data to the socket using Send()1 |
|
2816 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
2817 //! 16. Get result from slave |
|
2818 //! 17. Order slave to cleanup |
|
2819 //! 18. Wait for slave |
|
2820 //! 19. Do socket cleanup |
|
2821 //! 20. delete CBluetoothSocket object |
|
2822 //! @SYMTestStatus Implemented |
|
2823 //! @SYMTestPriority Critical |
|
2824 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
2825 //! @SYMTestType CIT |
|
2826 |
|
2827 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2828 SHARED_ACTIVE_SCHEDULER |
|
2829 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2830 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2831 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2832 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2833 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2834 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0031-0001command2NewL |
|
2835 COMMAND TBTServiceSecurity1 Construct |
|
2836 COMMAND TRfcommSockAddr1 Construct |
|
2837 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0031-0001command7SetSecurity |
|
2838 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0031-0001command8SetBTAddr |
|
2839 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0031-0001command9SetPort |
|
2840 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0031-0001command10BTAddr |
|
2841 STORE CBluetoothSocket1 |
|
2842 STORE TRfcommSockAddr1 |
|
2843 STORE TBTDevAddrRemote |
|
2844 STORE_ACTIVE_SCHEDULER |
|
2845 END_TEST_BLOCK |
|
2846 |
|
2847 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2848 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2849 SHARED_ACTIVE_SCHEDULER |
|
2850 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2851 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2852 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0031-0002command1Connect |
|
2853 OUTSTANDING |
|
2854 STORE CBluetoothSocket1 |
|
2855 STORE_ACTIVE_SCHEDULER |
|
2856 END_TEST_BLOCK |
|
2857 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2858 |
|
2859 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2860 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2861 SHARED_ACTIVE_SCHEDULER |
|
2862 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2863 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0031-0003command1Send |
|
2864 OUTSTANDING |
|
2865 STORE CBluetoothSocket1 |
|
2866 STORE_ACTIVE_SCHEDULER |
|
2867 END_TEST_BLOCK |
|
2868 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2869 |
|
2870 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2871 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2872 SHARED_ACTIVE_SCHEDULER |
|
2873 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2874 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0031-0004command1Shutdown |
|
2875 OUTSTANDING |
|
2876 COMMAND CBluetoothSocket1 ~ |
|
2877 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2878 END_TEST_BLOCK |
|
2879 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2880 |
|
2881 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0031 |
|
2882 |
|
2883 |
|
2884 DELAY 2000 |
|
2885 |
|
2886 |
|
2887 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032 |
|
2888 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0032 |
|
2889 //! @SYMAPI CBluetoothSocket |
|
2890 //! @SYMAuthor James Mechen |
|
2891 //! @SYMCreationDate 07/08/2006 |
|
2892 //! @SYMTestCaseDesc Try to send data over a BT socket while already sending |
|
2893 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Write(), HandleSendCompleteL |
|
2894 //! @SYMTestActions 1. Order slave to set up connection |
|
2895 //! 2. Get result from slave to wait for it to be ready |
|
2896 //! 3. Create a connection to the RSocket server |
|
2897 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2898 //! 5. Create an empty TBTServiceSecurity object |
|
2899 //! 6. Create a TRfcommSockAddr object |
|
2900 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2901 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2902 //! 9. Set the port to the specific one of the protocol we use |
|
2903 //! 10. Verify the set BT Address |
|
2904 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
2905 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
2906 //! 13. Get result from slave |
|
2907 //! 14. Send data to the socket using Write() |
|
2908 //! 15. Immediately send data to the socket again, using Write() |
|
2909 //! 16. HandleSendCompleteL gets called verify that there is error code KErrInUse |
|
2910 //! 17. Get result from slave |
|
2911 //! 18. Order slave to cleanup |
|
2912 //! 19. Wait for slave |
|
2913 //! 20. Do socket cleanup |
|
2914 //! 21. delete CBluetoothSocket object |
|
2915 //! @SYMTestStatus Implemented |
|
2916 //! @SYMTestPriority Critical |
|
2917 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully but second send returns KErrInUse (-14) |
|
2918 //! @SYMTestType CIT |
|
2919 |
|
2920 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2921 SHARED_ACTIVE_SCHEDULER |
|
2922 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2923 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2924 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
2925 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
2926 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
2927 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0032-0001command2NewL |
|
2928 COMMAND TBTServiceSecurity1 Construct |
|
2929 COMMAND TRfcommSockAddr1 Construct |
|
2930 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0032-0001command7SetSecurity |
|
2931 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0032-0001command8SetBTAddr |
|
2932 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0032-0001command9SetPort |
|
2933 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0032-0001command10BTAddr |
|
2934 STORE CBluetoothSocket1 |
|
2935 STORE TRfcommSockAddr1 |
|
2936 STORE TBTDevAddrRemote |
|
2937 STORE_ACTIVE_SCHEDULER |
|
2938 END_TEST_BLOCK |
|
2939 |
|
2940 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2941 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2942 SHARED_ACTIVE_SCHEDULER |
|
2943 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2944 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
2945 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0032-0002command1Connect |
|
2946 OUTSTANDING |
|
2947 STORE CBluetoothSocket1 |
|
2948 STORE_ACTIVE_SCHEDULER |
|
2949 END_TEST_BLOCK |
|
2950 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2951 |
|
2952 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2953 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2954 SHARED_ACTIVE_SCHEDULER |
|
2955 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2956 COMMAND !Error=-14 CBluetoothSocket1 Write BT-USER-SOCK-PublicAPI-Active-0032-0003command1Write |
|
2957 OUTSTANDING |
|
2958 STORE CBluetoothSocket1 |
|
2959 STORE_ACTIVE_SCHEDULER |
|
2960 END_TEST_BLOCK |
|
2961 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2962 |
|
2963 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
2964 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
2965 SHARED_ACTIVE_SCHEDULER |
|
2966 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
2967 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0032-0004command1Shutdown |
|
2968 OUTSTANDING |
|
2969 COMMAND CBluetoothSocket1 ~ |
|
2970 COMMAND CBluetoothSocket1 RSocketServerClose |
|
2971 END_TEST_BLOCK |
|
2972 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
2973 |
|
2974 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0032 |
|
2975 |
|
2976 |
|
2977 DELAY 2000 |
|
2978 |
|
2979 |
|
2980 |
|
2981 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033 |
|
2982 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0033 |
|
2983 //! @SYMAPI CBluetoothSocket |
|
2984 //! @SYMAuthor James Mechen |
|
2985 //! @SYMCreationDate 07/08/2006 |
|
2986 //! @SYMTestCaseDesc Cancel send of data over a BT socket without first sending any data |
|
2987 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Write(), CancelWrite, |
|
2988 //! HandleSendCompleteL |
|
2989 //! @SYMTestActions 1. Order slave to set up connection |
|
2990 //! 2. Get result from slave to wait for it to be ready |
|
2991 //! 3. Create a connection to the RSocket server |
|
2992 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
2993 //! 5. Create an empty TBTServiceSecurity object |
|
2994 //! 6. Create a TRfcommSockAddr object |
|
2995 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
2996 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
2997 //! 9. Set the port to the specific one of the protocol we use |
|
2998 //! 10. Verify the set BT Address |
|
2999 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
3000 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3001 //! 13. Get result from slave |
|
3002 //! 14. Call CancelWrite before calling the write operation |
|
3003 //! 15. Send data to the socket using Write() |
|
3004 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
3005 //! 17. Get result from slave |
|
3006 //! 18. Order slave to cleanup |
|
3007 //! 19. Wait for slave |
|
3008 //! 20. Do socket cleanup |
|
3009 //! 21. delete CBluetoothSocket object |
|
3010 //! @SYMTestStatus Implemented |
|
3011 //! @SYMTestPriority Critical |
|
3012 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
3013 //! @SYMTestType CIT |
|
3014 |
|
3015 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3016 SHARED_ACTIVE_SCHEDULER |
|
3017 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3018 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3019 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3020 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3021 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3022 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0033-0001command2NewL |
|
3023 COMMAND TBTServiceSecurity1 Construct |
|
3024 COMMAND TRfcommSockAddr1 Construct |
|
3025 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0033-0001command7SetSecurity |
|
3026 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0033-0001command8SetBTAddr |
|
3027 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0033-0001command9SetPort |
|
3028 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0033-0001command10BTAddr |
|
3029 STORE CBluetoothSocket1 |
|
3030 STORE TRfcommSockAddr1 |
|
3031 STORE TBTDevAddrRemote |
|
3032 STORE_ACTIVE_SCHEDULER |
|
3033 END_TEST_BLOCK |
|
3034 |
|
3035 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3036 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3037 SHARED_ACTIVE_SCHEDULER |
|
3038 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3039 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3040 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0033-0002command1Connect |
|
3041 OUTSTANDING |
|
3042 STORE CBluetoothSocket1 |
|
3043 STORE_ACTIVE_SCHEDULER |
|
3044 END_TEST_BLOCK |
|
3045 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3046 |
|
3047 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3048 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3049 SHARED_ACTIVE_SCHEDULER |
|
3050 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3051 COMMAND CBluetoothSocket1 CancelWrite |
|
3052 COMMAND CBluetoothSocket1 Write BT-USER-SOCK-PublicAPI-Active-0033-0003command2Write |
|
3053 OUTSTANDING |
|
3054 STORE CBluetoothSocket1 |
|
3055 STORE_ACTIVE_SCHEDULER |
|
3056 END_TEST_BLOCK |
|
3057 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3058 |
|
3059 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3060 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3061 SHARED_ACTIVE_SCHEDULER |
|
3062 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3063 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0033-0004command1Shutdown |
|
3064 OUTSTANDING |
|
3065 COMMAND CBluetoothSocket1 ~ |
|
3066 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3067 END_TEST_BLOCK |
|
3068 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3069 |
|
3070 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0033 |
|
3071 |
|
3072 |
|
3073 DELAY 2000 |
|
3074 |
|
3075 |
|
3076 |
|
3077 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034 |
|
3078 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0034 |
|
3079 //! @SYMAPI CBluetoothSocket |
|
3080 //! @SYMAuthor James Mechen |
|
3081 //! @SYMCreationDate 07/08/2006 |
|
3082 //! @SYMTestCaseDesc Try to connect to a BT device while already connected |
|
3083 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
3084 //! @SYMTestActions 1. Order slave to set up connection |
|
3085 //! 2. Get result from slave to wait for it to be ready |
|
3086 //! 3. Create a connection to the RSocket server |
|
3087 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3088 //! 5. Create an empty TBTServiceSecurity object |
|
3089 //! 6. Create a TRfcommSockAddr object |
|
3090 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3091 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3092 //! 9. Set the port to the specific one of the protocol we use |
|
3093 //! 10. Verify the set BT Address |
|
3094 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object, using Connect()1 |
|
3095 //! 12. Immediately connect again, using Connect()1 |
|
3096 //! 13. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with KErrInUse |
|
3097 //! 14. Get result from slave |
|
3098 //! 15. Send data to the socket using Send()1 |
|
3099 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
3100 //! 17. Get result from slave |
|
3101 //! 18. Order slave to cleanup |
|
3102 //! 19. Wait for slave |
|
3103 //! 20. Do socket cleanup |
|
3104 //! 21. delete CBluetoothSocket object |
|
3105 //! @SYMTestStatus Implemented |
|
3106 //! @SYMTestPriority Critical |
|
3107 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully but second connect returns KErrInUse (-14) |
|
3108 //! @SYMTestType CIT |
|
3109 |
|
3110 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3111 SHARED_ACTIVE_SCHEDULER |
|
3112 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3113 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3114 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3115 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3116 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3117 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0034-0001command2NewL |
|
3118 COMMAND TBTServiceSecurity1 Construct |
|
3119 COMMAND TRfcommSockAddr1 Construct |
|
3120 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0034-0001command7SetSecurity |
|
3121 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0034-0001command8SetBTAddr |
|
3122 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0034-0001command9SetPort |
|
3123 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0034-0001command10BTAddr |
|
3124 STORE CBluetoothSocket1 |
|
3125 STORE TRfcommSockAddr1 |
|
3126 STORE TBTDevAddrRemote |
|
3127 STORE_ACTIVE_SCHEDULER |
|
3128 END_TEST_BLOCK |
|
3129 |
|
3130 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3131 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3132 SHARED_ACTIVE_SCHEDULER |
|
3133 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3134 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3135 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0034-0002command1Connect |
|
3136 COMMAND !Error=-14 CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0034-0002command2Connect |
|
3137 OUTSTANDING |
|
3138 STORE CBluetoothSocket1 |
|
3139 STORE_ACTIVE_SCHEDULER |
|
3140 END_TEST_BLOCK |
|
3141 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3142 |
|
3143 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3144 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3145 SHARED_ACTIVE_SCHEDULER |
|
3146 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3147 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0034-0003command1Send |
|
3148 OUTSTANDING |
|
3149 STORE CBluetoothSocket1 |
|
3150 STORE_ACTIVE_SCHEDULER |
|
3151 END_TEST_BLOCK |
|
3152 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3153 |
|
3154 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3155 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3156 SHARED_ACTIVE_SCHEDULER |
|
3157 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3158 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0034-0004command1Shutdown |
|
3159 OUTSTANDING |
|
3160 COMMAND CBluetoothSocket1 ~ |
|
3161 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3162 END_TEST_BLOCK |
|
3163 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3164 |
|
3165 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0034 |
|
3166 |
|
3167 |
|
3168 DELAY 2000 |
|
3169 |
|
3170 |
|
3171 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035 |
|
3172 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0035 |
|
3173 //! @SYMAPI CBluetoothSocket |
|
3174 //! @SYMAuthor James Mechen |
|
3175 //! @SYMCreationDate 07/08/2006 |
|
3176 //! @SYMTestCaseDesc Try to connect to a BT device while already connected |
|
3177 //! Uses API elements: NewL()1, Connect()2, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
3178 //! @SYMTestActions 1. Order slave to set up connection |
|
3179 //! 2. Get result from slave to wait for it to be ready |
|
3180 //! 3. Create a connection to the RSocket server |
|
3181 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3182 //! 5. Create an empty TBTServiceSecurity object |
|
3183 //! 6. Create a TRfcommSockAddr object |
|
3184 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3185 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3186 //! 9. Set the port to the specific one of the protocol we use |
|
3187 //! 10. Verify the set BT Address |
|
3188 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object, using Connect()1 |
|
3189 //! 12. Immediately connect again, using Connect()2 |
|
3190 //! 13. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with KErrInUse |
|
3191 //! 14. Get result from slave |
|
3192 //! 15. Send data to the socket using Send()1 |
|
3193 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
3194 //! 17. Get result from slave |
|
3195 //! 18. Order slave to cleanup |
|
3196 //! 19. Wait for slave |
|
3197 //! 20. Do socket cleanup |
|
3198 //! 21. delete CBluetoothSocket object |
|
3199 //! @SYMTestStatus Implemented |
|
3200 //! @SYMTestPriority Critical |
|
3201 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully but second connect returns KErrInUse (-14) |
|
3202 //! @SYMTestType CIT |
|
3203 |
|
3204 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3205 SHARED_ACTIVE_SCHEDULER |
|
3206 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3207 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3208 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3209 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3210 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3211 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0035-0001command2NewL |
|
3212 COMMAND TBTServiceSecurity1 Construct |
|
3213 COMMAND TRfcommSockAddr1 Construct |
|
3214 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0035-0001command7SetSecurity |
|
3215 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0035-0001command8SetBTAddr |
|
3216 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0035-0001command9SetPort |
|
3217 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0035-0001command10BTAddr |
|
3218 STORE CBluetoothSocket1 |
|
3219 STORE TRfcommSockAddr1 |
|
3220 STORE TBTDevAddrRemote |
|
3221 STORE_ACTIVE_SCHEDULER |
|
3222 END_TEST_BLOCK |
|
3223 |
|
3224 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3225 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3226 SHARED_ACTIVE_SCHEDULER |
|
3227 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3228 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3229 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0035-0002command1Connect |
|
3230 COMMAND !Error=-14 CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0035-0002command2Connect |
|
3231 OUTSTANDING |
|
3232 STORE CBluetoothSocket1 |
|
3233 STORE_ACTIVE_SCHEDULER |
|
3234 END_TEST_BLOCK |
|
3235 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3236 |
|
3237 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3238 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3239 SHARED_ACTIVE_SCHEDULER |
|
3240 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3241 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0035-0003command1Send |
|
3242 OUTSTANDING |
|
3243 STORE CBluetoothSocket1 |
|
3244 STORE_ACTIVE_SCHEDULER |
|
3245 END_TEST_BLOCK |
|
3246 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3247 |
|
3248 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3249 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3250 SHARED_ACTIVE_SCHEDULER |
|
3251 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3252 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0035-0004command1Shutdown |
|
3253 OUTSTANDING |
|
3254 COMMAND CBluetoothSocket1 ~ |
|
3255 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3256 END_TEST_BLOCK |
|
3257 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3258 |
|
3259 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0035 |
|
3260 |
|
3261 |
|
3262 DELAY 2000 |
|
3263 |
|
3264 |
|
3265 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036 |
|
3266 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0036 |
|
3267 //! @SYMAPI CBluetoothSocket |
|
3268 //! @SYMAuthor James Mechen |
|
3269 //! @SYMCreationDate 07/08/2006 |
|
3270 //! @SYMTestCaseDesc Try to connect to a BT device while already connected |
|
3271 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
3272 //! @SYMTestActions 1. Order slave to set up connection |
|
3273 //! 2. Get result from slave to wait for it to be ready |
|
3274 //! 3. Create a connection to the RSocket server |
|
3275 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3276 //! 5. Create an empty TBTServiceSecurity object |
|
3277 //! 6. Create a TRfcommSockAddr object |
|
3278 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3279 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3280 //! 9. Set the port to the specific one of the protocol we use |
|
3281 //! 10. Verify the set BT Address |
|
3282 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object, using Connect()1 |
|
3283 //! 12. Immediately connect again, using Connect()3 |
|
3284 //! 13. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with KErrInUse |
|
3285 //! 14. Get result from slave |
|
3286 //! 15. Send data to the socket using Send()1 |
|
3287 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
3288 //! 17. Get result from slave |
|
3289 //! 18. Order slave to cleanup |
|
3290 //! 19. Wait for slave |
|
3291 //! 20. Do socket cleanup |
|
3292 //! 21. delete CBluetoothSocket object |
|
3293 //! @SYMTestStatus Implemented |
|
3294 //! @SYMTestPriority Critical |
|
3295 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully but second connect returns KErrAlreadyExists (-11) |
|
3296 //! @SYMTestType CIT |
|
3297 |
|
3298 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3299 SHARED_ACTIVE_SCHEDULER |
|
3300 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3301 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3302 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3303 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3304 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3305 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0036-0001command2NewL |
|
3306 COMMAND TBTServiceSecurity1 Construct |
|
3307 COMMAND TRfcommSockAddr1 Construct |
|
3308 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0036-0001command7SetSecurity |
|
3309 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0036-0001command8SetBTAddr |
|
3310 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0036-0001command9SetPort |
|
3311 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0036-0001command10BTAddr |
|
3312 STORE CBluetoothSocket1 |
|
3313 STORE TRfcommSockAddr1 |
|
3314 STORE TBTDevAddrRemote |
|
3315 STORE_ACTIVE_SCHEDULER |
|
3316 END_TEST_BLOCK |
|
3317 |
|
3318 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3319 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3320 SHARED_ACTIVE_SCHEDULER |
|
3321 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3322 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3323 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0036-0002command1Connect |
|
3324 COMMAND !Error=-11 CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0036-0002command2Connect |
|
3325 OUTSTANDING |
|
3326 STORE CBluetoothSocket1 |
|
3327 STORE_ACTIVE_SCHEDULER |
|
3328 END_TEST_BLOCK |
|
3329 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3330 |
|
3331 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3332 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3333 SHARED_ACTIVE_SCHEDULER |
|
3334 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3335 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0036-0003command1Send |
|
3336 OUTSTANDING |
|
3337 STORE CBluetoothSocket1 |
|
3338 STORE_ACTIVE_SCHEDULER |
|
3339 END_TEST_BLOCK |
|
3340 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3341 |
|
3342 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3343 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3344 SHARED_ACTIVE_SCHEDULER |
|
3345 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3346 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0036-0004command1Shutdown |
|
3347 OUTSTANDING |
|
3348 COMMAND CBluetoothSocket1 ~ |
|
3349 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3350 END_TEST_BLOCK |
|
3351 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3352 |
|
3353 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0036 |
|
3354 |
|
3355 |
|
3356 DELAY 2000 |
|
3357 |
|
3358 |
|
3359 |
|
3360 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037 |
|
3361 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0037 |
|
3362 //! @SYMAPI CBluetoothSocket |
|
3363 //! @SYMAuthor James Mechen |
|
3364 //! @SYMCreationDate 07/08/2006 |
|
3365 //! @SYMTestCaseDesc Try to cancel connect to a BT device without already being connected |
|
3366 //! Uses API elements: NewL()1, CancelConnect(), Connect()1, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
3367 //! @SYMTestActions 1. Order slave to set up connection |
|
3368 //! 2. Get result from slave to wait for it to be ready |
|
3369 //! 3. Create a connection to the RSocket server |
|
3370 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3371 //! 5. Create an empty TBTServiceSecurity object |
|
3372 //! 6. Create a TRfcommSockAddr object |
|
3373 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3374 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3375 //! 9. Set the port to the specific one of the protocol we use |
|
3376 //! 10. Verify the set BT Address |
|
3377 //! 11. Try to cancel connection |
|
3378 //! 12. Use the TRfcommSockAddr in the connect of the CBluetooth object, using Connect()1 |
|
3379 //! 13. HandleConnectCompleteL gets called indicating that connecting the BT connection completed with no error |
|
3380 //! 14. Get result from slave |
|
3381 //! 15. Send data to the socket using Send()1 |
|
3382 //! 16. HandleSendCompleteL gets called verify that there is no error code |
|
3383 //! 17. Get result from slave |
|
3384 //! 18. Order slave to cleanup |
|
3385 //! 19. Wait for slave |
|
3386 //! 20. Do socket cleanup |
|
3387 //! 21. delete CBluetoothSocket object |
|
3388 //! @SYMTestStatus Implemented |
|
3389 //! @SYMTestPriority Critical |
|
3390 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
3391 //! @SYMTestType CIT |
|
3392 |
|
3393 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3394 SHARED_ACTIVE_SCHEDULER |
|
3395 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3396 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3397 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3398 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3399 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3400 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0037-0001command2NewL |
|
3401 COMMAND TBTServiceSecurity1 Construct |
|
3402 COMMAND TRfcommSockAddr1 Construct |
|
3403 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0037-0001command7SetSecurity |
|
3404 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0037-0001command8SetBTAddr |
|
3405 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0037-0001command9SetPort |
|
3406 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0037-0001command10BTAddr |
|
3407 STORE CBluetoothSocket1 |
|
3408 STORE TRfcommSockAddr1 |
|
3409 STORE TBTDevAddrRemote |
|
3410 STORE_ACTIVE_SCHEDULER |
|
3411 END_TEST_BLOCK |
|
3412 |
|
3413 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3414 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3415 SHARED_ACTIVE_SCHEDULER |
|
3416 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3417 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3418 COMMAND CBluetoothSocket1 CancelConnect |
|
3419 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0037-0002command2Connect |
|
3420 OUTSTANDING |
|
3421 STORE CBluetoothSocket1 |
|
3422 STORE_ACTIVE_SCHEDULER |
|
3423 END_TEST_BLOCK |
|
3424 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3425 |
|
3426 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3427 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3428 SHARED_ACTIVE_SCHEDULER |
|
3429 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3430 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0037-0003command1Send |
|
3431 OUTSTANDING |
|
3432 STORE CBluetoothSocket1 |
|
3433 STORE_ACTIVE_SCHEDULER |
|
3434 END_TEST_BLOCK |
|
3435 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3436 |
|
3437 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3438 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3439 SHARED_ACTIVE_SCHEDULER |
|
3440 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3441 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0037-0004command1Shutdown |
|
3442 OUTSTANDING |
|
3443 COMMAND CBluetoothSocket1 ~ |
|
3444 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3445 END_TEST_BLOCK |
|
3446 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3447 |
|
3448 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0037 |
|
3449 |
|
3450 |
|
3451 DELAY 2000 |
|
3452 |
|
3453 |
|
3454 |
|
3455 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040 |
|
3456 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0040 |
|
3457 //! @SYMAPI CBluetoothSocket |
|
3458 //! @SYMAuthor James Mechen |
|
3459 //! @SYMCreationDate 07/08/2006 |
|
3460 //! @SYMTestCaseDesc Send data over a BT socket |
|
3461 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
3462 //! @SYMTestActions 1. Order slave to set up connection |
|
3463 //! 2. Get result from slave to wait for it to be ready |
|
3464 //! 3. Create a connection to the RSocket server |
|
3465 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3466 //! 5. Create an empty TBTServiceSecurity object |
|
3467 //! 6. Create a TRfcommSockAddr object |
|
3468 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3469 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3470 //! 9. Set the port to the specific one of the protocol we use |
|
3471 //! 10. Verify the set BT Address |
|
3472 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
3473 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3474 //! 13. Get result from slave |
|
3475 //! 14. Send data to the socket using Send()1 |
|
3476 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
3477 //! 16. Get result from slave |
|
3478 //! 17. Order slave to cleanup |
|
3479 //! 18. Wait for slave |
|
3480 //! 19. Do socket cleanup |
|
3481 //! 20. delete CBluetoothSocket object |
|
3482 //! @SYMTestStatus Implemented |
|
3483 //! @SYMTestPriority Critical |
|
3484 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
3485 //! @SYMTestType CIT |
|
3486 |
|
3487 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3488 SHARED_ACTIVE_SCHEDULER |
|
3489 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3490 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3491 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3492 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3493 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3494 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0040-0001command2NewL |
|
3495 COMMAND TBTServiceSecurity1 Construct |
|
3496 COMMAND TRfcommSockAddr1 Construct |
|
3497 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0040-0001command7SetSecurity |
|
3498 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0040-0001command8SetBTAddr |
|
3499 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0040-0001command9SetPort |
|
3500 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0040-0001command10BTAddr |
|
3501 STORE CBluetoothSocket1 |
|
3502 STORE TRfcommSockAddr1 |
|
3503 STORE TBTDevAddrRemote |
|
3504 STORE_ACTIVE_SCHEDULER |
|
3505 END_TEST_BLOCK |
|
3506 |
|
3507 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3508 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3509 SHARED_ACTIVE_SCHEDULER |
|
3510 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3511 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3512 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0040-0002command1Connect |
|
3513 OUTSTANDING |
|
3514 STORE CBluetoothSocket1 |
|
3515 STORE_ACTIVE_SCHEDULER |
|
3516 END_TEST_BLOCK |
|
3517 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3518 |
|
3519 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3520 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3521 SHARED_ACTIVE_SCHEDULER |
|
3522 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3523 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0040-0003command1Send |
|
3524 OUTSTANDING |
|
3525 STORE CBluetoothSocket1 |
|
3526 STORE_ACTIVE_SCHEDULER |
|
3527 END_TEST_BLOCK |
|
3528 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3529 |
|
3530 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3531 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3532 SHARED_ACTIVE_SCHEDULER |
|
3533 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3534 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0040-0004command1Shutdown |
|
3535 OUTSTANDING |
|
3536 COMMAND CBluetoothSocket1 ~ |
|
3537 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3538 END_TEST_BLOCK |
|
3539 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3540 |
|
3541 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0040 |
|
3542 |
|
3543 |
|
3544 DELAY 2000 |
|
3545 |
|
3546 |
|
3547 |
|
3548 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041 |
|
3549 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0041 |
|
3550 //! @SYMAPI CBluetoothSocket |
|
3551 //! @SYMAuthor James Mechen |
|
3552 //! @SYMCreationDate 07/08/2006 |
|
3553 //! @SYMTestCaseDesc Try to apply an asynchronous control operation on a socket while another ioctl command is still being used |
|
3554 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Ioctl()2, |
|
3555 //! HandleIoctlCompleteL |
|
3556 //! @SYMTestActions 1. Order slave to set up connection |
|
3557 //! 2. Get result from slave to wait for it to be ready |
|
3558 //! 3. Create a connection to the RSocket server |
|
3559 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3560 //! 5. Create an empty TBTServiceSecurity object |
|
3561 //! 6. Create a TRfcommSockAddr object |
|
3562 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3563 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3564 //! 9. Set the port to the specific one of the protocol we use |
|
3565 //! 10. Verify the set BT Address |
|
3566 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
3567 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3568 //! 13. Get result from slave |
|
3569 //! 14. Send data to the socket using Send()1 |
|
3570 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
3571 //! 16. Get result from slave |
|
3572 //! 17. Call Ioctl()2 with KL2CAPOutgoingMTUIoctl, Buffer, KSolBtL2CAP |
|
3573 //! 18. Immediately call Ioctl()2 again, with KL2CAPOutgoingMTUIoctl, Buffer, KSolBtL2CAP |
|
3574 //! 19. HandleIoctlCompleteL gets called when operation completes with KErrInUse |
|
3575 //! 20. Order slave to cleanup |
|
3576 //! 21. Wait for slave |
|
3577 //! 22. Do socket cleanup |
|
3578 //! 23. delete CBluetoothSocket object |
|
3579 //! @SYMTestStatus Implemented |
|
3580 //! @SYMTestPriority Critical |
|
3581 //! @SYMTestExpectedResults Connection setup successfully and MTU configured, but second Ioctl() returns KErrInUse (-14) |
|
3582 //! @SYMTestType CIT |
|
3583 |
|
3584 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3585 SHARED_ACTIVE_SCHEDULER |
|
3586 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3587 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3588 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3589 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3590 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3591 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0041-0001command2NewL |
|
3592 COMMAND TBTServiceSecurity1 Construct |
|
3593 COMMAND TRfcommSockAddr1 Construct |
|
3594 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0041-0001command7SetSecurity |
|
3595 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0041-0001command8SetBTAddr |
|
3596 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0041-0001command9SetPort |
|
3597 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0041-0001command10BTAddr |
|
3598 STORE CBluetoothSocket1 |
|
3599 STORE TRfcommSockAddr1 |
|
3600 STORE TBTDevAddrRemote |
|
3601 STORE_ACTIVE_SCHEDULER |
|
3602 END_TEST_BLOCK |
|
3603 |
|
3604 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3605 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3606 SHARED_ACTIVE_SCHEDULER |
|
3607 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3608 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3609 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0041-0002command1Connect |
|
3610 OUTSTANDING |
|
3611 STORE CBluetoothSocket1 |
|
3612 STORE_ACTIVE_SCHEDULER |
|
3613 END_TEST_BLOCK |
|
3614 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3615 |
|
3616 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3617 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3618 SHARED_ACTIVE_SCHEDULER |
|
3619 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3620 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0041-0003command1Send |
|
3621 OUTSTANDING |
|
3622 STORE CBluetoothSocket1 |
|
3623 STORE_ACTIVE_SCHEDULER |
|
3624 END_TEST_BLOCK |
|
3625 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3626 |
|
3627 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3628 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3629 SHARED_ACTIVE_SCHEDULER |
|
3630 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3631 COMMAND !Error=-14 CBluetoothSocket1 Ioctl BT-USER-SOCK-PublicAPI-Active-0041-0004command1Ioctl |
|
3632 OUTSTANDING |
|
3633 STORE CBluetoothSocket1 |
|
3634 STORE_ACTIVE_SCHEDULER |
|
3635 END_TEST_BLOCK |
|
3636 DELAY 2000 |
|
3637 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3638 SHARED_ACTIVE_SCHEDULER |
|
3639 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3640 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0041-0005command1Shutdown |
|
3641 OUTSTANDING |
|
3642 COMMAND CBluetoothSocket1 ~ |
|
3643 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3644 END_TEST_BLOCK |
|
3645 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3646 |
|
3647 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0041 |
|
3648 |
|
3649 |
|
3650 DELAY 2000 |
|
3651 |
|
3652 |
|
3653 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042 |
|
3654 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0042 |
|
3655 //! @SYMAPI CBluetoothSocket |
|
3656 //! @SYMAuthor James Mechen |
|
3657 //! @SYMCreationDate 07/08/2006 |
|
3658 //! @SYMTestCaseDesc Try to cancel an asynchronous control operation on a socket without applying one first |
|
3659 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, Ioctl()2, |
|
3660 //! HandleIoctlCompleteL |
|
3661 //! @SYMTestActions 1. Order slave to set up connection |
|
3662 //! 2. Get result from slave to wait for it to be ready |
|
3663 //! 3. Create a connection to the RSocket server |
|
3664 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3665 //! 5. Create an empty TBTServiceSecurity object |
|
3666 //! 6. Create a TRfcommSockAddr object |
|
3667 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3668 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3669 //! 9. Set the port to the specific one of the protocol we use |
|
3670 //! 10. Verify the set BT Address |
|
3671 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
3672 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3673 //! 13. Get result from slave |
|
3674 //! 14. Send data to the socket using Send()1 |
|
3675 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
3676 //! 16. Get result from slave |
|
3677 //! 17. Call CancelIoctl(), without calling Ioctl() first |
|
3678 //! 18. Call Ioctl()2 with KL2CAPOutgoingMTUIoctl, Buffer, KSolBtL2CAP |
|
3679 //! 19. HandleIoctlCompleteL gets called when operation completes |
|
3680 //! 20. Order slave to cleanup |
|
3681 //! 21. Wait for slave |
|
3682 //! 22. Do socket cleanup |
|
3683 //! 23. delete CBluetoothSocket object |
|
3684 //! @SYMTestStatus Implemented |
|
3685 //! @SYMTestPriority Critical |
|
3686 //! @SYMTestExpectedResults Connection setup successfully and MTU configured |
|
3687 //! @SYMTestType CIT |
|
3688 |
|
3689 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3690 SHARED_ACTIVE_SCHEDULER |
|
3691 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3692 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3693 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3694 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3695 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3696 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0042-0001command2NewL |
|
3697 COMMAND TBTServiceSecurity1 Construct |
|
3698 COMMAND TRfcommSockAddr1 Construct |
|
3699 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0042-0001command7SetSecurity |
|
3700 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0042-0001command8SetBTAddr |
|
3701 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0042-0001command9SetPort |
|
3702 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0042-0001command10BTAddr |
|
3703 STORE CBluetoothSocket1 |
|
3704 STORE TRfcommSockAddr1 |
|
3705 STORE TBTDevAddrRemote |
|
3706 STORE_ACTIVE_SCHEDULER |
|
3707 END_TEST_BLOCK |
|
3708 |
|
3709 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3710 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3711 SHARED_ACTIVE_SCHEDULER |
|
3712 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3713 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3714 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0042-0002command1Connect |
|
3715 OUTSTANDING |
|
3716 STORE CBluetoothSocket1 |
|
3717 STORE_ACTIVE_SCHEDULER |
|
3718 END_TEST_BLOCK |
|
3719 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3720 |
|
3721 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3722 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3723 SHARED_ACTIVE_SCHEDULER |
|
3724 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3725 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0042-0003command1Send |
|
3726 OUTSTANDING |
|
3727 STORE CBluetoothSocket1 |
|
3728 STORE_ACTIVE_SCHEDULER |
|
3729 END_TEST_BLOCK |
|
3730 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3731 |
|
3732 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3733 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3734 SHARED_ACTIVE_SCHEDULER |
|
3735 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3736 COMMAND CBluetoothSocket1 CancelIoctl |
|
3737 COMMAND CBluetoothSocket1 Ioctl BT-USER-SOCK-PublicAPI-Active-0042-0004command2Ioctl |
|
3738 OUTSTANDING |
|
3739 STORE CBluetoothSocket1 |
|
3740 STORE_ACTIVE_SCHEDULER |
|
3741 END_TEST_BLOCK |
|
3742 DELAY 2000 |
|
3743 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3744 SHARED_ACTIVE_SCHEDULER |
|
3745 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3746 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0042-0005command1Shutdown |
|
3747 OUTSTANDING |
|
3748 COMMAND CBluetoothSocket1 ~ |
|
3749 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3750 END_TEST_BLOCK |
|
3751 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3752 |
|
3753 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0042 |
|
3754 |
|
3755 |
|
3756 DELAY 2000 |
|
3757 |
|
3758 |
|
3759 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043 |
|
3760 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0043 |
|
3761 //! @SYMAPI CBluetoothSocket |
|
3762 //! @SYMAuthor James Mechen |
|
3763 //! @SYMCreationDate 07/08/2006 |
|
3764 //! @SYMTestCaseDesc Try to set up notification of baseband events while baseband event notifier is already being used |
|
3765 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
3766 //! ActivateBasebandEventNotifier, HandleActivateBasebandEventNotifierCompleteL, |
|
3767 //! PhysicalLinkState, CancelBasebandEventNotifier |
|
3768 //! @SYMTestActions 1. Order slave to set up connection |
|
3769 //! 2. Get result from slave to wait for it to be ready |
|
3770 //! 3. Create a connection to the RSocket server |
|
3771 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3772 //! 5. Create an empty TBTServiceSecurity object |
|
3773 //! 6. Create a TRfcommSockAddr object |
|
3774 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3775 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3776 //! 9. Set the port to the specific one of the protocol we use |
|
3777 //! 10. Verify the set BT Address |
|
3778 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
3779 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3780 //! 13. Get result from slave |
|
3781 //! 14. Call ActivateBasebandEventNotifier |
|
3782 //! 15. Immediately call ActivateBasebandEventNotifier again |
|
3783 //! 16. HandleActivateBasebandEventNotifierCompleteL will get called with error KErrInUse |
|
3784 //! 17. Call PhysicalLinkState |
|
3785 //! 18. HandleActivateBasebandEventNotifierCompleteL will get called with status info |
|
3786 //! 19. Call CancelBasebandEventNotifier |
|
3787 //! 20. Call PhysicalLinkState |
|
3788 //! 21. HandleActivateBasebandEventNotifierCompleteL should not get called (see if this can be verified here, otherwise separate test) |
|
3789 //! 22. Get result from slave |
|
3790 //! 23. Order slave to cleanup |
|
3791 //! 24. Wait for slave |
|
3792 //! 25. Do socket cleanup |
|
3793 //! 26. delete CBluetoothSocket object |
|
3794 //! @SYMTestStatus Implemented |
|
3795 //! @SYMTestPriority Critical |
|
3796 //! @SYMTestExpectedResults Connection setup successfully and baseband notification switching is successful, but second call returns KErrInUse (-14) |
|
3797 //! @SYMTestType CIT |
|
3798 |
|
3799 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3800 SHARED_ACTIVE_SCHEDULER |
|
3801 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3802 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3803 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3804 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3805 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3806 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0043-0001command2NewL |
|
3807 COMMAND TBTServiceSecurity1 Construct |
|
3808 COMMAND TRfcommSockAddr1 Construct |
|
3809 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0043-0001command7SetSecurity |
|
3810 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0043-0001command8SetBTAddr |
|
3811 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0043-0001command9SetPort |
|
3812 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0043-0001command10BTAddr |
|
3813 STORE CBluetoothSocket1 |
|
3814 STORE TRfcommSockAddr1 |
|
3815 STORE TBTDevAddrRemote |
|
3816 STORE_ACTIVE_SCHEDULER |
|
3817 END_TEST_BLOCK |
|
3818 |
|
3819 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3820 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3821 SHARED_ACTIVE_SCHEDULER |
|
3822 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3823 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3824 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0043-0002command1Connect |
|
3825 OUTSTANDING |
|
3826 STORE CBluetoothSocket1 |
|
3827 STORE_ACTIVE_SCHEDULER |
|
3828 END_TEST_BLOCK |
|
3829 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3830 |
|
3831 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3832 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3833 SHARED_ACTIVE_SCHEDULER |
|
3834 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3835 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0043-0003command1Send |
|
3836 OUTSTANDING |
|
3837 DELAY 1 |
|
3838 COMMAND CBluetoothSocket1 ActivateBasebandEventNotifier BT-USER-SOCK-PublicAPI-Active-0043-0003command3ActivateBasebandEventNotifier |
|
3839 OUTSTANDING |
|
3840 COMMAND !Error=-14 CBluetoothSocket1 ActivateBasebandEventNotifier BT-USER-SOCK-PublicAPI-Active-0043-0003command4ActivateBasebandEventNotifier |
|
3841 OUTSTANDING |
|
3842 COMMAND CBluetoothSocket1 PhysicalLinkState |
|
3843 COMMAND CBluetoothSocket1 CancelBasebandEventNotifier |
|
3844 COMMAND CBluetoothSocket1 PhysicalLinkState |
|
3845 STORE CBluetoothSocket1 |
|
3846 STORE_ACTIVE_SCHEDULER |
|
3847 END_TEST_BLOCK |
|
3848 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3849 |
|
3850 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3851 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3852 SHARED_ACTIVE_SCHEDULER |
|
3853 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3854 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0043-0004command1Shutdown |
|
3855 OUTSTANDING |
|
3856 COMMAND CBluetoothSocket1 ~ |
|
3857 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3858 END_TEST_BLOCK |
|
3859 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3860 |
|
3861 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0043 |
|
3862 |
|
3863 |
|
3864 DELAY 2000 |
|
3865 |
|
3866 |
|
3867 |
|
3868 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044 |
|
3869 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0044 |
|
3870 //! @SYMAPI CBluetoothSocket |
|
3871 //! @SYMAuthor James Mechen |
|
3872 //! @SYMCreationDate 07/08/2006 |
|
3873 //! @SYMTestCaseDesc Try to cancel notification of baseband events without setting one up first |
|
3874 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
3875 //! ActivateBasebandEventNotifier, CancelBasebandEventNotifier(), HandleActivateBasebandEventNotifierCompleteL, |
|
3876 //! PhysicalLinkState, CancelBasebandEventNotifier |
|
3877 //! @SYMTestActions 1. Order slave to set up connection |
|
3878 //! 2. Get result from slave to wait for it to be ready |
|
3879 //! 3. Create a connection to the RSocket server |
|
3880 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3881 //! 5. Create an empty TBTServiceSecurity object |
|
3882 //! 6. Create a TRfcommSockAddr object |
|
3883 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3884 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3885 //! 9. Set the port to the specific one of the protocol we use |
|
3886 //! 10. Verify the set BT Address |
|
3887 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
3888 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3889 //! 13. Get result from slave |
|
3890 //! 14. Call CancelBasebandEventNotifier() with calling ActivateBasebandEventNotifier() first |
|
3891 //! 15. Call ActivateBasebandEventNotifier |
|
3892 //! 16. HandleActivateBasebandEventNotifierCompleteL will get called with no error |
|
3893 //! 17. Call PhysicalLinkState |
|
3894 //! 18. HandleActivateBasebandEventNotifierCompleteL will get called with status info |
|
3895 //! 19. Call CancelBasebandEventNotifier |
|
3896 //! 20. Call PhysicalLinkState |
|
3897 //! 21. HandleActivateBasebandEventNotifierCompleteL should not get called (see if this can be verified here, otherwise separate test) |
|
3898 //! 22. Get result from slave |
|
3899 //! 23. Order slave to cleanup |
|
3900 //! 24. Wait for slave |
|
3901 //! 25. Do socket cleanup |
|
3902 //! 26. delete CBluetoothSocket object |
|
3903 //! @SYMTestStatus Implemented |
|
3904 //! @SYMTestPriority Critical |
|
3905 //! @SYMTestExpectedResults Connection setup successfully and baseband notification switching is successful |
|
3906 //! @SYMTestType CIT |
|
3907 |
|
3908 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3909 SHARED_ACTIVE_SCHEDULER |
|
3910 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3911 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3912 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
3913 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
3914 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
3915 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0044-0001command2NewL |
|
3916 COMMAND TBTServiceSecurity1 Construct |
|
3917 COMMAND TRfcommSockAddr1 Construct |
|
3918 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0044-0001command7SetSecurity |
|
3919 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0044-0001command8SetBTAddr |
|
3920 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0044-0001command9SetPort |
|
3921 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0044-0001command10BTAddr |
|
3922 STORE CBluetoothSocket1 |
|
3923 STORE TRfcommSockAddr1 |
|
3924 STORE TBTDevAddrRemote |
|
3925 STORE_ACTIVE_SCHEDULER |
|
3926 END_TEST_BLOCK |
|
3927 |
|
3928 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3929 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3930 SHARED_ACTIVE_SCHEDULER |
|
3931 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3932 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
3933 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0044-0002command1Connect |
|
3934 OUTSTANDING |
|
3935 STORE CBluetoothSocket1 |
|
3936 STORE_ACTIVE_SCHEDULER |
|
3937 END_TEST_BLOCK |
|
3938 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3939 |
|
3940 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3941 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3942 SHARED_ACTIVE_SCHEDULER |
|
3943 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3944 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0044-0003command1Send |
|
3945 OUTSTANDING |
|
3946 COMMAND CBluetoothSocket1 CancelBasebandEventNotifier |
|
3947 COMMAND CBluetoothSocket1 ActivateBasebandEventNotifier BT-USER-SOCK-PublicAPI-Active-0044-0003command3ActivateBasebandEventNotifier |
|
3948 OUTSTANDING |
|
3949 COMMAND CBluetoothSocket1 PhysicalLinkState |
|
3950 COMMAND CBluetoothSocket1 CancelBasebandEventNotifier |
|
3951 COMMAND CBluetoothSocket1 PhysicalLinkState |
|
3952 STORE CBluetoothSocket1 |
|
3953 STORE_ACTIVE_SCHEDULER |
|
3954 END_TEST_BLOCK |
|
3955 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3956 |
|
3957 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
3958 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
3959 SHARED_ACTIVE_SCHEDULER |
|
3960 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
3961 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0044-0004command1Shutdown |
|
3962 OUTSTANDING |
|
3963 COMMAND CBluetoothSocket1 ~ |
|
3964 COMMAND CBluetoothSocket1 RSocketServerClose |
|
3965 END_TEST_BLOCK |
|
3966 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
3967 |
|
3968 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0044 |
|
3969 |
|
3970 |
|
3971 DELAY 2000 |
|
3972 |
|
3973 |
|
3974 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0003 |
|
3975 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0003 |
|
3976 //! @SYMAPI CBluetoothSocket |
|
3977 //! @SYMAuthor Johan Eriksson |
|
3978 //! @SYMCreationDate 27/03/2006 |
|
3979 //! @SYMTestCaseDesc Send data over a BT socket |
|
3980 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL |
|
3981 //! @SYMTestActions 1. Order slave to set up connection |
|
3982 //! 2. Get result from slave to wait for it to be ready |
|
3983 //! 3. Create a connection to the RSocket server |
|
3984 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
3985 //! 5. Create an empty TBTServiceSecurity object |
|
3986 //! 6. Create a TRfcommSockAddr object |
|
3987 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
3988 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
3989 //! 9. Set the port to the specific one of the protocol we use |
|
3990 //! 10. Verify the set BT Address |
|
3991 //! 11. Use the TRfcommSockAddr in the connect()1 of the CBluetooth object |
|
3992 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
3993 //! 13. Get result from slave |
|
3994 //! 14. Send data to the socket using Send()1 |
|
3995 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
3996 //! 16. Get result from slave |
|
3997 //! 17. Order slave to cleanup |
|
3998 //! 18. Wait for slave |
|
3999 //! 19. Do socket cleanup |
|
4000 //! 20. delete CBluetoothSocket object |
|
4001 //! @SYMTestStatus Implemented |
|
4002 //! @SYMTestPriority Critical |
|
4003 //! @SYMTestExpectedResults Connection failed at connect due to cancellation at server |
|
4004 //! @SYMTestType CIT |
|
4005 |
|
4006 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4007 SHARED_ACTIVE_SCHEDULER |
|
4008 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4009 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4010 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4011 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4012 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4013 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0003-0001command2NewL |
|
4014 COMMAND TBTServiceSecurity1 Construct |
|
4015 COMMAND TRfcommSockAddr1 Construct |
|
4016 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0003-0001command7SetSecurity |
|
4017 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0003-0001command8SetBTAddr |
|
4018 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0003-0001command9SetPort |
|
4019 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0003-0001command10BTAddr |
|
4020 STORE CBluetoothSocket1 |
|
4021 STORE TRfcommSockAddr1 |
|
4022 STORE TBTDevAddrRemote |
|
4023 STORE_ACTIVE_SCHEDULER |
|
4024 END_TEST_BLOCK |
|
4025 |
|
4026 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4027 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4028 SHARED_ACTIVE_SCHEDULER |
|
4029 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4030 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4031 DELAY 1000000 |
|
4032 STORE CBluetoothSocket1 |
|
4033 STORE_ACTIVE_SCHEDULER |
|
4034 END_TEST_BLOCK |
|
4035 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4036 |
|
4037 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4038 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4039 SHARED_ACTIVE_SCHEDULER |
|
4040 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4041 COMMAND CBluetoothSocket1 ~ |
|
4042 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4043 END_TEST_BLOCK |
|
4044 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4045 |
|
4046 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0003 |
|
4047 |
|
4048 |
|
4049 DELAY 2000 |
|
4050 |
|
4051 |
|
4052 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0005 |
|
4053 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0005 |
|
4054 //! @SYMAPI CBluetoothSocket |
|
4055 //! @SYMAuthor Johan Eriksson |
|
4056 //! @SYMCreationDate 27/03/2006 |
|
4057 //! @SYMTestCaseDesc Cancel BT connect |
|
4058 //! Uses API elements: NewL()1, Connect()1, CancelConnect, HandleConnectCompleteL |
|
4059 //! @SYMTestActions 1. Order slave to set up connection |
|
4060 //! 2. Get result from slave to wait for it to be ready |
|
4061 //! 3. Create a connection to the RSocket server |
|
4062 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4063 //! 5. Create an empty TBTServiceSecurity object |
|
4064 //! 6. Create a TRfcommSockAddr object |
|
4065 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4066 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4067 //! 9. Set the port to the specific one of the protocol we use |
|
4068 //! 10. Verify the set BT Address |
|
4069 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4070 //! 12. Call CancelConnect (Bundle with connect to make sure it is cancelled?) |
|
4071 //! 13. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4072 //! 14. Get result from slave |
|
4073 //! 15. Order slave to cleanup |
|
4074 //! 16. Wait for slave |
|
4075 //! 17. Do socket cleanup |
|
4076 //! 18. delete CBluetoothSocket object |
|
4077 //! @SYMTestStatus Implemented |
|
4078 //! @SYMTestPriority Critical |
|
4079 //! @SYMTestExpectedResults Connection failed at connect due to cancellation at client |
|
4080 //! @SYMTestType CIT |
|
4081 |
|
4082 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4083 SHARED_ACTIVE_SCHEDULER |
|
4084 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4085 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4086 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4087 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4088 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4089 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0005-0001command2NewL |
|
4090 COMMAND TBTServiceSecurity1 Construct |
|
4091 COMMAND TRfcommSockAddr1 Construct |
|
4092 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0005-0001command7SetSecurity |
|
4093 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0005-0001command8SetBTAddr |
|
4094 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0005-0001command9SetPort |
|
4095 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0005-0001command10BTAddr |
|
4096 STORE CBluetoothSocket1 |
|
4097 STORE TRfcommSockAddr1 |
|
4098 STORE TBTDevAddrRemote |
|
4099 STORE_ACTIVE_SCHEDULER |
|
4100 END_TEST_BLOCK |
|
4101 |
|
4102 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4103 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4104 SHARED_ACTIVE_SCHEDULER |
|
4105 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4106 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4107 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0005-0002command2Connect |
|
4108 COMMAND CBluetoothSocket1 CancelConnect BT-USER-SOCK-PublicAPI-Active-0005-0002command3CancelConnect |
|
4109 OUTSTANDING |
|
4110 STORE CBluetoothSocket1 |
|
4111 STORE_ACTIVE_SCHEDULER |
|
4112 END_TEST_BLOCK |
|
4113 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4114 |
|
4115 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4116 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4117 SHARED_ACTIVE_SCHEDULER |
|
4118 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4119 COMMAND CBluetoothSocket1 ~ |
|
4120 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4121 END_TEST_BLOCK |
|
4122 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4123 |
|
4124 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0005 |
|
4125 |
|
4126 |
|
4127 |
|
4128 DELAY 2000 |
|
4129 |
|
4130 |
|
4131 |
|
4132 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051 |
|
4133 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0051 |
|
4134 //! @SYMAPI CBluetoothSocket |
|
4135 //! @SYMAuthor James Mechen |
|
4136 //! @SYMCreationDate 11/08/2006 |
|
4137 //! @SYMTestCaseDesc Verify SetAutomaticSniffMode() calls |
|
4138 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
4139 //! SetAutomaticSniffMode1, SetAutomaticSniffMode2 |
|
4140 //! @SYMTestActions 1. Order slave to set up connection |
|
4141 //! 2. Get result from slave to wait for it to be ready |
|
4142 //! 3. Create a connection to the RSocket server |
|
4143 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4144 //! 5. Create an empty TBTServiceSecurity object |
|
4145 //! 6. Create a TRfcommSockAddr object |
|
4146 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4147 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4148 //! 9. Set the port to the specific one of the protocol we use |
|
4149 //! 10. Verify the set BT Address |
|
4150 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4151 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4152 //! 13. Get result from slave |
|
4153 //! 14. Call SetAutomaticSniffMode1 |
|
4154 //! 15. Call SetAutomaticSniffMode2 |
|
4155 //! 16. Get result from slave |
|
4156 //! 17. Order slave to cleanup |
|
4157 //! 18. Wait for slave |
|
4158 //! 19. Do socket cleanup |
|
4159 //! 20. delete CBluetoothSocket object |
|
4160 //! @SYMTestStatus Implemented |
|
4161 //! @SYMTestPriority Critical |
|
4162 //! @SYMTestExpectedResults Connection setup successfully, SetAutomaticSniffMode calls correctly |
|
4163 //! @SYMTestType CIT |
|
4164 |
|
4165 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4166 SHARED_ACTIVE_SCHEDULER |
|
4167 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4168 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4169 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4170 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4171 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4172 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0051-0001command2NewL |
|
4173 COMMAND TBTServiceSecurity1 Construct |
|
4174 COMMAND TRfcommSockAddr1 Construct |
|
4175 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0051-0001command7SetSecurity |
|
4176 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0051-0001command8SetBTAddr |
|
4177 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0051-0001command9SetPort |
|
4178 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0051-0001command10BTAddr |
|
4179 STORE CBluetoothSocket1 |
|
4180 STORE TRfcommSockAddr1 |
|
4181 STORE TBTDevAddrRemote |
|
4182 STORE_ACTIVE_SCHEDULER |
|
4183 END_TEST_BLOCK |
|
4184 |
|
4185 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4186 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4187 SHARED_ACTIVE_SCHEDULER |
|
4188 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4189 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4190 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0051-0002command1Connect |
|
4191 OUTSTANDING |
|
4192 STORE CBluetoothSocket1 |
|
4193 STORE_ACTIVE_SCHEDULER |
|
4194 END_TEST_BLOCK |
|
4195 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4196 |
|
4197 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4198 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4199 SHARED_ACTIVE_SCHEDULER |
|
4200 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4201 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0051-0003command1Send |
|
4202 OUTSTANDING |
|
4203 COMMAND CBluetoothSocket1 SetAutomaticSniffMode BT-USER-SOCK-PublicAPI-Active-0051-0003command2SetAutomaticSniffMode |
|
4204 COMMAND CBluetoothSocket1 SetAutomaticSniffMode BT-USER-SOCK-PublicAPI-Active-0051-0003command3SetAutomaticSniffMode |
|
4205 COMMAND CBluetoothSocket1 SetAutomaticSniffMode BT-USER-SOCK-PublicAPI-Active-0051-0003command4SetAutomaticSniffMode |
|
4206 COMMAND CBluetoothSocket1 SetAutomaticSniffMode BT-USER-SOCK-PublicAPI-Active-0051-0003command5SetAutomaticSniffMode |
|
4207 STORE CBluetoothSocket1 |
|
4208 STORE_ACTIVE_SCHEDULER |
|
4209 END_TEST_BLOCK |
|
4210 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4211 |
|
4212 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4213 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4214 SHARED_ACTIVE_SCHEDULER |
|
4215 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4216 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0051-0004command1Shutdown |
|
4217 OUTSTANDING |
|
4218 COMMAND CBluetoothSocket1 ~ |
|
4219 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4220 END_TEST_BLOCK |
|
4221 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4222 |
|
4223 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0051 |
|
4224 |
|
4225 |
|
4226 DELAY 2000 |
|
4227 |
|
4228 |
|
4229 |
|
4230 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052 |
|
4231 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0052 |
|
4232 //! @SYMAPI CBluetoothSocket |
|
4233 //! @SYMAuthor James Mechen |
|
4234 //! @SYMCreationDate 11/08/2006 |
|
4235 //! @SYMTestCaseDesc Try using bad SetAutomaticSniffMode() calls |
|
4236 //! Uses API elements: NewL()1, Connect()1, HandleConnectCompleteL, |
|
4237 //! SetAutomaticSniffMode1, SetAutomaticSniffMode2 |
|
4238 //! @SYMTestActions 1. Order slave to set up connection |
|
4239 //! 2. Get result from slave to wait for it to be ready |
|
4240 //! 3. Create a connection to the RSocket server |
|
4241 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4242 //! 5. Create an empty TBTServiceSecurity object |
|
4243 //! 6. Create a TRfcommSockAddr object |
|
4244 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4245 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4246 //! 9. Set the port to the specific one of the protocol we use |
|
4247 //! 10. Verify the set BT Address |
|
4248 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4249 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4250 //! 13. Get result from slave |
|
4251 //! 14. Call SetAutomaticSniffMode2 with invalid delay |
|
4252 //! 15. Get result from slave |
|
4253 //! 16. Order slave to cleanup |
|
4254 //! 17. Wait for slave |
|
4255 //! 18. Do socket cleanup |
|
4256 //! 19. delete CBluetoothSocket object |
|
4257 //! @SYMTestStatus Implemented |
|
4258 //! @SYMTestPriority Critical |
|
4259 //! @SYMTestExpectedResults SetAutomaticSniffMode returns KErrArgument |
|
4260 //! @SYMTestType CIT |
|
4261 |
|
4262 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4263 SHARED_ACTIVE_SCHEDULER |
|
4264 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4265 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4266 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4267 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4268 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4269 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0052-0001command2NewL |
|
4270 COMMAND TBTServiceSecurity1 Construct |
|
4271 COMMAND TRfcommSockAddr1 Construct |
|
4272 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0052-0001command7SetSecurity |
|
4273 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0052-0001command8SetBTAddr |
|
4274 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0052-0001command9SetPort |
|
4275 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0052-0001command10BTAddr |
|
4276 STORE CBluetoothSocket1 |
|
4277 STORE TRfcommSockAddr1 |
|
4278 STORE TBTDevAddrRemote |
|
4279 STORE_ACTIVE_SCHEDULER |
|
4280 END_TEST_BLOCK |
|
4281 |
|
4282 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4283 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4284 SHARED_ACTIVE_SCHEDULER |
|
4285 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4286 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4287 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0052-0002command1Connect |
|
4288 OUTSTANDING |
|
4289 STORE CBluetoothSocket1 |
|
4290 STORE_ACTIVE_SCHEDULER |
|
4291 END_TEST_BLOCK |
|
4292 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4293 |
|
4294 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4295 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4296 SHARED_ACTIVE_SCHEDULER |
|
4297 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4298 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0052-0003command1Send |
|
4299 OUTSTANDING |
|
4300 COMMAND !Error=-6 CBluetoothSocket1 SetAutomaticSniffMode BT-USER-SOCK-PublicAPI-Active-0052-0003command2SetAutomaticSniffMode |
|
4301 STORE CBluetoothSocket1 |
|
4302 STORE_ACTIVE_SCHEDULER |
|
4303 END_TEST_BLOCK |
|
4304 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4305 |
|
4306 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4307 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4308 SHARED_ACTIVE_SCHEDULER |
|
4309 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4310 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0052-0004command1Shutdown |
|
4311 OUTSTANDING |
|
4312 COMMAND CBluetoothSocket1 ~ |
|
4313 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4314 STORE_ACTIVE_SCHEDULER |
|
4315 END_TEST_BLOCK |
|
4316 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4317 |
|
4318 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0052 |
|
4319 |
|
4320 |
|
4321 DELAY 2000 |
|
4322 |
|
4323 |
|
4324 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045 |
|
4325 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0045 |
|
4326 //! @SYMAPI CBluetoothSocket |
|
4327 //! @SYMAuthor James Mechen |
|
4328 //! @SYMCreationDate 10/08/2006 |
|
4329 //! @SYMTestCaseDesc Send blank data over a BT socket |
|
4330 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
4331 //! @SYMTestActions 1. Order slave to set up connection |
|
4332 //! 2. Get result from slave to wait for it to be ready |
|
4333 //! 3. Create a connection to the RSocket server |
|
4334 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4335 //! 5. Create an empty TBTServiceSecurity object |
|
4336 //! 6. Create a TRfcommSockAddr object |
|
4337 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4338 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4339 //! 9. Set the port to the specific one of the protocol we use |
|
4340 //! 10. Verify the set BT Address |
|
4341 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4342 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4343 //! 13. Get result from slave |
|
4344 //! 14. Send data to the socket using Send()1 |
|
4345 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
4346 //! 16. Get result from slave |
|
4347 //! 17. Order slave to cleanup |
|
4348 //! 18. Wait for slave |
|
4349 //! 19. Do socket cleanup |
|
4350 //! 20. delete CBluetoothSocket object |
|
4351 //! @SYMTestStatus Implemented |
|
4352 //! @SYMTestPriority Critical |
|
4353 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
4354 //! @SYMTestType CIT |
|
4355 |
|
4356 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4357 SHARED_ACTIVE_SCHEDULER |
|
4358 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4359 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4360 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4361 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4362 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4363 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0045-0001command2NewL |
|
4364 COMMAND TBTServiceSecurity1 Construct |
|
4365 COMMAND TRfcommSockAddr1 Construct |
|
4366 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0045-0001command7SetSecurity |
|
4367 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0045-0001command8SetBTAddr |
|
4368 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0045-0001command9SetPort |
|
4369 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0045-0001command10BTAddr |
|
4370 STORE CBluetoothSocket1 |
|
4371 STORE TRfcommSockAddr1 |
|
4372 STORE TBTDevAddrRemote |
|
4373 STORE_ACTIVE_SCHEDULER |
|
4374 END_TEST_BLOCK |
|
4375 |
|
4376 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4377 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4378 SHARED_ACTIVE_SCHEDULER |
|
4379 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4380 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4381 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0045-0002command1Connect |
|
4382 OUTSTANDING |
|
4383 STORE CBluetoothSocket1 |
|
4384 STORE_ACTIVE_SCHEDULER |
|
4385 END_TEST_BLOCK |
|
4386 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4387 |
|
4388 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4389 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4390 SHARED_ACTIVE_SCHEDULER |
|
4391 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4392 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0045-0003command1Send |
|
4393 OUTSTANDING |
|
4394 STORE CBluetoothSocket1 |
|
4395 STORE_ACTIVE_SCHEDULER |
|
4396 END_TEST_BLOCK |
|
4397 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4398 |
|
4399 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4400 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4401 SHARED_ACTIVE_SCHEDULER |
|
4402 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4403 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0045-0004command1Shutdown |
|
4404 OUTSTANDING |
|
4405 COMMAND CBluetoothSocket1 ~ |
|
4406 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4407 END_TEST_BLOCK |
|
4408 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4409 |
|
4410 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0045 |
|
4411 |
|
4412 |
|
4413 DELAY 2000 |
|
4414 |
|
4415 |
|
4416 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049 |
|
4417 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0049 |
|
4418 //! @SYMAPI CBluetoothSocket |
|
4419 //! @SYMAuthor James Mechen |
|
4420 //! @SYMCreationDate 10/08/2006 |
|
4421 //! @SYMTestCaseDesc Send blank data over a BT socket |
|
4422 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()2, HandleSendCompleteL |
|
4423 //! @SYMTestActions 1. Order slave to set up connection |
|
4424 //! 2. Get result from slave to wait for it to be ready |
|
4425 //! 3. Create a connection to the RSocket server |
|
4426 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4427 //! 5. Create an empty TBTServiceSecurity object |
|
4428 //! 6. Create a TRfcommSockAddr object |
|
4429 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4430 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4431 //! 9. Set the port to the specific one of the protocol we use |
|
4432 //! 10. Verify the set BT Address |
|
4433 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4434 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4435 //! 13. Get result from slave |
|
4436 //! 14. Send data to the socket using Send()2 |
|
4437 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
4438 //! 16. Get result from slave |
|
4439 //! 17. Order slave to cleanup |
|
4440 //! 18. Wait for slave |
|
4441 //! 19. Do socket cleanup |
|
4442 //! 20. delete CBluetoothSocket object |
|
4443 //! @SYMTestStatus Implemented |
|
4444 //! @SYMTestPriority Critical |
|
4445 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
4446 //! @SYMTestType CIT |
|
4447 |
|
4448 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4449 SHARED_ACTIVE_SCHEDULER |
|
4450 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4451 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4452 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4453 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4454 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4455 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0049-0001command2NewL |
|
4456 COMMAND TBTServiceSecurity1 Construct |
|
4457 COMMAND TRfcommSockAddr1 Construct |
|
4458 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0049-0001command7SetSecurity |
|
4459 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0049-0001command8SetBTAddr |
|
4460 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0049-0001command9SetPort |
|
4461 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0049-0001command10BTAddr |
|
4462 STORE CBluetoothSocket1 |
|
4463 STORE TRfcommSockAddr1 |
|
4464 STORE TBTDevAddrRemote |
|
4465 STORE_ACTIVE_SCHEDULER |
|
4466 END_TEST_BLOCK |
|
4467 |
|
4468 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4469 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4470 SHARED_ACTIVE_SCHEDULER |
|
4471 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4472 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4473 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0049-0002command1Connect |
|
4474 OUTSTANDING |
|
4475 STORE CBluetoothSocket1 |
|
4476 STORE_ACTIVE_SCHEDULER |
|
4477 END_TEST_BLOCK |
|
4478 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4479 |
|
4480 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4481 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4482 SHARED_ACTIVE_SCHEDULER |
|
4483 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4484 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0049-0003command1Send |
|
4485 OUTSTANDING |
|
4486 STORE CBluetoothSocket1 |
|
4487 STORE_ACTIVE_SCHEDULER |
|
4488 END_TEST_BLOCK |
|
4489 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4490 |
|
4491 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4492 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4493 SHARED_ACTIVE_SCHEDULER |
|
4494 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4495 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0049-0004command1Shutdown |
|
4496 OUTSTANDING |
|
4497 COMMAND CBluetoothSocket1 ~ |
|
4498 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4499 END_TEST_BLOCK |
|
4500 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4501 |
|
4502 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0049 |
|
4503 |
|
4504 |
|
4505 DELAY 2000 |
|
4506 |
|
4507 |
|
4508 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050 |
|
4509 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0050 |
|
4510 //! @SYMAPI CBluetoothSocket |
|
4511 //! @SYMAuthor James Mechen |
|
4512 //! @SYMCreationDate 10/08/2006 |
|
4513 //! @SYMTestCaseDesc Send blank data over a BT socket |
|
4514 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Write(), HandleSendCompleteL |
|
4515 //! @SYMTestActions 1. Order slave to set up connection |
|
4516 //! 2. Get result from slave to wait for it to be ready |
|
4517 //! 3. Create a connection to the RSocket server |
|
4518 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4519 //! 5. Create an empty TBTServiceSecurity object |
|
4520 //! 6. Create a TRfcommSockAddr object |
|
4521 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4522 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4523 //! 9. Set the port to the specific one of the protocol we use |
|
4524 //! 10. Verify the set BT Address |
|
4525 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4526 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4527 //! 13. Get result from slave |
|
4528 //! 14. Send data to the socket using Write() |
|
4529 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
4530 //! 16. Get result from slave |
|
4531 //! 17. Order slave to cleanup |
|
4532 //! 18. Wait for slave |
|
4533 //! 19. Do socket cleanup |
|
4534 //! 20. delete CBluetoothSocket object |
|
4535 //! @SYMTestStatus Implemented |
|
4536 //! @SYMTestPriority Critical |
|
4537 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
4538 //! @SYMTestType CIT |
|
4539 |
|
4540 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4541 SHARED_ACTIVE_SCHEDULER |
|
4542 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4543 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4544 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4545 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4546 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4547 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0050-0001command2NewL |
|
4548 COMMAND TBTServiceSecurity1 Construct |
|
4549 COMMAND TRfcommSockAddr1 Construct |
|
4550 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0050-0001command7SetSecurity |
|
4551 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0050-0001command8SetBTAddr |
|
4552 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0050-0001command9SetPort |
|
4553 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0050-0001command10BTAddr |
|
4554 STORE CBluetoothSocket1 |
|
4555 STORE TRfcommSockAddr1 |
|
4556 STORE TBTDevAddrRemote |
|
4557 STORE_ACTIVE_SCHEDULER |
|
4558 END_TEST_BLOCK |
|
4559 |
|
4560 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4561 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4562 SHARED_ACTIVE_SCHEDULER |
|
4563 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4564 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4565 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0050-0002command1Connect |
|
4566 OUTSTANDING |
|
4567 STORE CBluetoothSocket1 |
|
4568 STORE_ACTIVE_SCHEDULER |
|
4569 END_TEST_BLOCK |
|
4570 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4571 |
|
4572 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4573 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4574 SHARED_ACTIVE_SCHEDULER |
|
4575 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4576 COMMAND CBluetoothSocket1 Write BT-USER-SOCK-PublicAPI-Active-0050-0003command1Write |
|
4577 OUTSTANDING |
|
4578 STORE CBluetoothSocket1 |
|
4579 STORE_ACTIVE_SCHEDULER |
|
4580 END_TEST_BLOCK |
|
4581 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4582 |
|
4583 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4584 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4585 SHARED_ACTIVE_SCHEDULER |
|
4586 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4587 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0050-0004command1Shutdown |
|
4588 OUTSTANDING |
|
4589 COMMAND CBluetoothSocket1 ~ |
|
4590 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4591 END_TEST_BLOCK |
|
4592 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4593 |
|
4594 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0050 |
|
4595 |
|
4596 |
|
4597 DELAY 2000 |
|
4598 |
|
4599 |
|
4600 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046 |
|
4601 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0046 |
|
4602 //! @SYMAPI CBluetoothSocket |
|
4603 //! @SYMAuthor James Mechen |
|
4604 //! @SYMCreationDate 10/08/2006 |
|
4605 //! @SYMTestCaseDesc Send data over a BT socket |
|
4606 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
4607 //! @SYMTestActions 1. Order slave to set up connection |
|
4608 //! 2. Get result from slave to wait for it to be ready |
|
4609 //! 3. Create a connection to the RSocket server |
|
4610 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4611 //! 5. Create an empty TBTServiceSecurity object |
|
4612 //! 6. Create a TRfcommSockAddr object |
|
4613 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4614 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4615 //! 9. Set the port to the specific one of the protocol we use |
|
4616 //! 10. Verify the set BT Address |
|
4617 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4618 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4619 //! 13. Get result from slave |
|
4620 //! 14. Send data to the socket using Send()1 |
|
4621 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
4622 //! 16. Get result from slave |
|
4623 //! 17. Order slave to cleanup |
|
4624 //! 18. Wait for slave |
|
4625 //! 19. Do socket cleanup |
|
4626 //! 20. delete CBluetoothSocket object |
|
4627 //! @SYMTestStatus Implemented |
|
4628 //! @SYMTestPriority Critical |
|
4629 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
4630 //! @SYMTestType CIT |
|
4631 |
|
4632 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4633 SHARED_ACTIVE_SCHEDULER |
|
4634 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4635 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4636 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4637 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4638 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4639 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0046-0001command2NewL |
|
4640 COMMAND TBTServiceSecurity1 Construct |
|
4641 COMMAND TRfcommSockAddr1 Construct |
|
4642 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0046-0001command7SetSecurity |
|
4643 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0046-0001command8SetBTAddr |
|
4644 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0046-0001command9SetPort |
|
4645 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0046-0001command10BTAddr |
|
4646 STORE CBluetoothSocket1 |
|
4647 STORE TRfcommSockAddr1 |
|
4648 STORE TBTDevAddrRemote |
|
4649 STORE_ACTIVE_SCHEDULER |
|
4650 END_TEST_BLOCK |
|
4651 |
|
4652 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4653 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4654 SHARED_ACTIVE_SCHEDULER |
|
4655 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4656 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4657 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0046-0002command1Connect |
|
4658 OUTSTANDING |
|
4659 STORE CBluetoothSocket1 |
|
4660 STORE_ACTIVE_SCHEDULER |
|
4661 END_TEST_BLOCK |
|
4662 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4663 |
|
4664 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4665 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4666 SHARED_ACTIVE_SCHEDULER |
|
4667 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4668 COMMAND CBluetoothSocket1 Send BT-USER-SOCK-PublicAPI-Active-0046-0003command1Send |
|
4669 OUTSTANDING |
|
4670 STORE CBluetoothSocket1 |
|
4671 STORE_ACTIVE_SCHEDULER |
|
4672 END_TEST_BLOCK |
|
4673 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4674 |
|
4675 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4676 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4677 SHARED_ACTIVE_SCHEDULER |
|
4678 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4679 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0046-0004command1Shutdown |
|
4680 OUTSTANDING |
|
4681 COMMAND CBluetoothSocket1 ~ |
|
4682 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4683 END_TEST_BLOCK |
|
4684 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4685 |
|
4686 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0046 |
|
4687 |
|
4688 |
|
4689 DELAY 2000 |
|
4690 |
|
4691 |
|
4692 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0038 |
|
4693 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0038 |
|
4694 //! @SYMAPI CBluetoothSocket |
|
4695 //! @SYMAuthor James Mechen |
|
4696 //! @SYMCreationDate 07/08/2006 |
|
4697 //! @SYMTestCaseDesc Connect to a BT socket |
|
4698 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
4699 //! @SYMTestActions 1. Order slave to set up connection |
|
4700 //! 2. Get result from slave to wait for it to be ready |
|
4701 //! 3. Create a connection to the RSocket server |
|
4702 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4703 //! 5. Create an empty TBTServiceSecurity object |
|
4704 //! 6. Create a TRfcommSockAddr object |
|
4705 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4706 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4707 //! 9. Set the port to the specific one of the protocol we use |
|
4708 //! 10. Verify the set BT Address |
|
4709 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4710 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4711 //! 13. Get result from slave |
|
4712 //! 14. Send data to the socket using Send()1 |
|
4713 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
4714 //! 16. Get result from slave |
|
4715 //! 17. Order slave to cleanup |
|
4716 //! 18. Wait for slave |
|
4717 //! 19. Do socket cleanup |
|
4718 //! 20. delete CBluetoothSocket object |
|
4719 //! @SYMTestStatus Implemented |
|
4720 //! @SYMTestPriority Critical |
|
4721 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
4722 //! @SYMTestType CIT |
|
4723 |
|
4724 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4725 SHARED_ACTIVE_SCHEDULER |
|
4726 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4727 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4728 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4729 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4730 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4731 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0038-0001command2NewL |
|
4732 COMMAND TBTServiceSecurity1 Construct |
|
4733 COMMAND TRfcommSockAddr1 Construct |
|
4734 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0038-0001command7SetSecurity |
|
4735 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0038-0001command8SetBTAddr |
|
4736 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0038-0001command9SetPort |
|
4737 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0038-0001command10BTAddr |
|
4738 STORE CBluetoothSocket1 |
|
4739 STORE TRfcommSockAddr1 |
|
4740 STORE TBTDevAddrRemote |
|
4741 STORE_ACTIVE_SCHEDULER |
|
4742 END_TEST_BLOCK |
|
4743 |
|
4744 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4745 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4746 SHARED_ACTIVE_SCHEDULER |
|
4747 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4748 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4749 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0038-0002command1Connect |
|
4750 OUTSTANDING |
|
4751 STORE CBluetoothSocket1 |
|
4752 STORE_ACTIVE_SCHEDULER |
|
4753 END_TEST_BLOCK |
|
4754 DELAY 2000 |
|
4755 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4756 SHARED_ACTIVE_SCHEDULER |
|
4757 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4758 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0038-0003command1Shutdown |
|
4759 OUTSTANDING |
|
4760 COMMAND CBluetoothSocket1 ~ |
|
4761 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4762 END_TEST_BLOCK |
|
4763 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4764 |
|
4765 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0038 |
|
4766 |
|
4767 |
|
4768 DELAY 2000 |
|
4769 |
|
4770 |
|
4771 |
|
4772 START_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0039 |
|
4773 //! @SYMTestCaseID BT-USER-SOCK-PublicAPI-Active-Master-0039 |
|
4774 //! @SYMAPI CBluetoothSocket |
|
4775 //! @SYMAuthor James Mechen |
|
4776 //! @SYMCreationDate 07/08/2006 |
|
4777 //! @SYMTestCaseDesc Connect to a BT socket |
|
4778 //! Uses API elements: NewL()1, Connect()3, HandleConnectCompleteL, Send()1, HandleSendCompleteL |
|
4779 //! @SYMTestActions 1. Order slave to set up connection |
|
4780 //! 2. Get result from slave to wait for it to be ready |
|
4781 //! 3. Create a connection to the RSocket server |
|
4782 //! 4. Create the CBluetoothSocket object using NewL()1 (Standard constructor) |
|
4783 //! 5. Create an empty TBTServiceSecurity object |
|
4784 //! 6. Create a TRfcommSockAddr object |
|
4785 //! 7. Set the Security of the TRfcommSockAddr (Use default/empty as on server) |
|
4786 //! 8. Set the BT address of the TRfcommSockAddr to the one of the Casira pod of the slave that we connect to |
|
4787 //! 9. Set the port to the specific one of the protocol we use |
|
4788 //! 10. Verify the set BT Address |
|
4789 //! 11. Use the TRfcommSockAddr in the connect of the CBluetooth object |
|
4790 //! 12. HandleConnectCompleteL gets called indicating that connecting the BT connection completed |
|
4791 //! 13. Get result from slave |
|
4792 //! 14. Send data to the socket using Send()1 |
|
4793 //! 15. HandleSendCompleteL gets called verify that there is no error code |
|
4794 //! 16. Get result from slave |
|
4795 //! 17. Order slave to cleanup |
|
4796 //! 18. Wait for slave |
|
4797 //! 19. Do socket cleanup |
|
4798 //! 20. delete CBluetoothSocket object |
|
4799 //! @SYMTestStatus Implemented |
|
4800 //! @SYMTestPriority Critical |
|
4801 //! @SYMTestExpectedResults Connection setup successfully and data sent successfully |
|
4802 //! @SYMTestType CIT |
|
4803 |
|
4804 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4805 SHARED_ACTIVE_SCHEDULER |
|
4806 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4807 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4808 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
4809 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
4810 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
4811 COMMAND CBluetoothSocket1 NewL BT-USER-SOCK-PublicAPI-Active-0039-0001command2NewL |
|
4812 COMMAND TBTServiceSecurity1 Construct |
|
4813 COMMAND TRfcommSockAddr1 Construct |
|
4814 COMMAND TRfcommSockAddr1 SetSecurity BT-USER-SOCK-PublicAPI-Active-0039-0001command7SetSecurity |
|
4815 COMMAND TRfcommSockAddr1 SetBTAddr BT-USER-SOCK-PublicAPI-Active-0039-0001command8SetBTAddr |
|
4816 COMMAND TRfcommSockAddr1 SetPort BT-USER-SOCK-PublicAPI-Active-0039-0001command9SetPort |
|
4817 COMMAND TRfcommSockAddr1 BTAddr BT-USER-SOCK-PublicAPI-Active-0039-0001command10BTAddr |
|
4818 STORE CBluetoothSocket1 |
|
4819 STORE TRfcommSockAddr1 |
|
4820 STORE TBTDevAddrRemote |
|
4821 STORE_ACTIVE_SCHEDULER |
|
4822 END_TEST_BLOCK |
|
4823 |
|
4824 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StartSyncTestCase |
|
4825 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4826 SHARED_ACTIVE_SCHEDULER |
|
4827 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4828 RESTORE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
4829 COMMAND CBluetoothSocket1 Connect BT-USER-SOCK-PublicAPI-Active-0039-0002command1Connect |
|
4830 OUTSTANDING |
|
4831 STORE CBluetoothSocket1 |
|
4832 STORE_ACTIVE_SCHEDULER |
|
4833 END_TEST_BLOCK |
|
4834 DELAY 2000 |
|
4835 START_TEST_BLOCK 100 T_BTSockAPI \bluetooth\BT-USER-SOCK-PublicApi-Active-Master.ini |
|
4836 SHARED_ACTIVE_SCHEDULER |
|
4837 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
4838 COMMAND CBluetoothSocket1 Shutdown BT-USER-SOCK-PublicAPI-Active-0039-0003command1Shutdown |
|
4839 OUTSTANDING |
|
4840 COMMAND CBluetoothSocket1 ~ |
|
4841 COMMAND CBluetoothSocket1 RSocketServerClose |
|
4842 END_TEST_BLOCK |
|
4843 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveSyncTestCaseResult |
|
4844 |
|
4845 END_TESTCASE BT-USER-SOCK-PublicAPI-Active-Master-0039 |
|
4846 |
|
4847 |
|
4848 |
|
4849 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini RetrieveExecutionResultPassiveSlave |
|
4850 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StopTDService |
|
4851 RUN_TEST_STEP -1 UCCControlTE RunCommand \UccControlChannelConfig.ini StopSyncService |