|
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 //! @file |
|
18 //! @SYMTestSuiteName T_BTUserAPI |
|
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
20 //! @SYMScriptDescription Tests all public elements of the CBluetoothPhysicalLinks classe |
|
21 //! as a means of confidence that the API works as expected. |
|
22 //! The purpose is to provide a regression test suite of PublishedAll APIs for |
|
23 //! BT USER related classes. |
|
24 //! Negative testing is performed to confirm that correct errors are returned |
|
25 //! when incorrect parameters are given. The tests are fully automated. |
|
26 //! @SYMAuthor Zoe Chen |
|
27 //! @SYMCreationDate 06/03/2007 |
|
28 /////////////////////////////////////////////////////////////////////////////// |
|
29 |
|
30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\ |
|
31 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\user\ |
|
32 |
|
33 LOAD_SUITE T_BTUserAPI |
|
34 DELAY 500 |
|
35 |
|
36 |
|
37 // **************************************************************************** |
|
38 // CBluetoothPhysicalLinks |
|
39 // **************************************************************************** |
|
40 |
|
41 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0001 |
|
42 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0001 |
|
43 //! @SYMAPI CBluetoothPhysicalLinks and RSocketServ |
|
44 //! @SYMTestCaseDesc Open a Bluetooth socket |
|
45 //! Uses API elements: NewL() and destructor from CBluetoothPhysicalLinks |
|
46 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
47 //! @SYMTestActions 1. Create and start a session on the socket server |
|
48 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
49 //! 3. Delete the Bluetooth socket using destructor |
|
50 //! @SYMTestStatus Implemented |
|
51 //! @SYMTestPriority Low |
|
52 //! @SYMTestExpectedResults Bluetooth socket was opened successfully |
|
53 //! @SYMTestType CIT |
|
54 |
|
55 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
56 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
57 CREATE_OBJECT RSocketServ RSocketServ1 |
|
58 COMMAND RSocketServ1 RSocketServ |
|
59 COMMAND RSocketServ1 Connect |
|
60 COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0001-0001command5NewL |
|
61 COMMAND CBluetoothPhysicalLinks1 ~ |
|
62 COMMAND RSocketServ1 Close |
|
63 END_TEST_BLOCK |
|
64 |
|
65 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0001 |
|
66 |
|
67 |
|
68 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0002 |
|
69 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0002 |
|
70 //! @SYMAPI CBluetoothPhysicalLinks and RSocketServ |
|
71 //! @SYMTestCaseDesc Open a Bluetooth socket |
|
72 //! Uses API elements: NewLC() and destructor from CBluetoothPhysicalLinks |
|
73 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
74 //! @SYMTestActions 1. Create and start a session on the socket server |
|
75 //! 2. Open a Bluetooth socket using NewLC() function. Return KErrNone if successful |
|
76 //! 3. Delete the Bluetooth socket using destructor |
|
77 //! @SYMTestStatus Implemented |
|
78 //! @SYMTestPriority Low |
|
79 //! @SYMTestExpectedResults Bluetooth socket was opened successfully |
|
80 //! @SYMTestType CIT |
|
81 |
|
82 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
83 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
84 CREATE_OBJECT RSocketServ RSocketServ1 |
|
85 COMMAND RSocketServ1 RSocketServ |
|
86 COMMAND RSocketServ1 Connect |
|
87 COMMAND CBluetoothPhysicalLinks1 NewLC BT-USER-BluetoothPhysicalLinks-PublicApi-0002-0001command5NewLC |
|
88 COMMAND CBluetoothPhysicalLinks1 ~ |
|
89 COMMAND RSocketServ1 Close |
|
90 END_TEST_BLOCK |
|
91 |
|
92 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0002 |
|
93 |
|
94 |
|
95 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0003 |
|
96 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0003 |
|
97 //! @SYMAPI CBluetoothPhysicalLinks and RSocketServ |
|
98 //! @SYMTestCaseDesc Return a null aObject if the extension is not implemented, or a pointer to another interface if it is |
|
99 //! Uses API elements: NewL(), MBPLN_ExtensionInterfaceL() and destructor from CBluetoothPhysicalLinks |
|
100 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
101 //! @SYMTestActions 1. Create and start a session on the socket server |
|
102 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
103 //! 3. Verify the pointer returned is null using MBPLN_ExtensionInterfaceL() function. |
|
104 //! Return KErrNone if successful |
|
105 //! 4. Delete the Bluetooth socket using destructor |
|
106 //! @SYMTestStatus Implemented |
|
107 //! @SYMTestPriority Low |
|
108 //! @SYMTestExpectedResults A NULL pointer returned |
|
109 //! @SYMTestType CIT |
|
110 |
|
111 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
112 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
113 CREATE_OBJECT RSocketServ RSocketServ1 |
|
114 COMMAND RSocketServ1 RSocketServ |
|
115 COMMAND RSocketServ1 Connect |
|
116 COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0003-0001command5NewL |
|
117 COMMAND CBluetoothPhysicalLinks1 MBPLN_ExtensionInterfaceL BT-USER-BluetoothPhysicalLinks-PublicApi-0003-0001command6MBPLN_ExtensionInterfaceL |
|
118 COMMAND CBluetoothPhysicalLinks1 ~ |
|
119 COMMAND RSocketServ1 Close |
|
120 END_TEST_BLOCK |
|
121 |
|
122 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0003 |
|
123 |
|
124 |
|
125 // **************************************************************************** |
|
126 // Negative test cases |
|
127 // **************************************************************************** |
|
128 |
|
129 //!START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0004 |
|
130 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0004 |
|
131 //! @SYMAPI CBluetoothPhysicalLinks |
|
132 //! @SYMTestCaseDesc Open a Bluetooth socket without connecting to the socket server first |
|
133 //! Uses API elements: NewL() |
|
134 //! @SYMTestActions 1. Open a Bluetooth socket using NewL() function. |
|
135 //! @SYMTestStatus Implemented |
|
136 //! @SYMTestPriority Low |
|
137 //! @SYMTestExpectedResults Panic at step 1 |
|
138 //! @SYMTestType CIT |
|
139 |
|
140 //! START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
141 //! CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
142 //! CREATE_OBJECT RSocketServ RSocketServ1 |
|
143 //! COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0004-0001command1NewL |
|
144 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
145 |
|
146 //!END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0004 |
|
147 |
|
148 |
|
149 //!START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0005 |
|
150 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0005 |
|
151 //! @SYMAPI CBluetoothPhysicalLinks |
|
152 //! @SYMTestCaseDesc Open a Bluetooth socket without connecting to the socket server first |
|
153 //! Uses API elements: NewLC() |
|
154 //! @SYMTestActions 1. Open a Bluetooth socket using NewLC() function. |
|
155 //! @SYMTestStatus Implemented |
|
156 //! @SYMTestPriority Low |
|
157 //! @SYMTestExpectedResults Panic at step 1 |
|
158 //! @SYMTestType CIT |
|
159 |
|
160 //! START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
161 //! CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
162 //! CREATE_OBJECT RSocketServ RSocketServ1 |
|
163 //! COMMAND CBluetoothPhysicalLinks1 NewLC BT-USER-BluetoothPhysicalLinks-PublicApi-0005-0001command1NewLC |
|
164 //! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC |
|
165 |
|
166 //!END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0005 |
|
167 |
|
168 |
|
169 //!START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0006 |
|
170 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0006 |
|
171 //! @SYMAPI CBluetoothPhysicalLinks and RSocketServ |
|
172 //! @SYMTestCaseDesc Bring in a new member to the piconet after closing the socket server |
|
173 //! Uses API elements: NewL() and CreateConnection() from CBluetoothPhysicalLinks |
|
174 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
175 //! @SYMTestActions 1. Create and start a session on the socket server |
|
176 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
177 //! 3. Close the session on the socket server |
|
178 //! 4. Bring in a new member to the piconet with a device address(33333333) using |
|
179 //! CreateConnection() function. |
|
180 //! @SYMTestStatus Implemented |
|
181 //! @SYMTestPriority Low |
|
182 //! @SYMTestExpectedResults Panic at step 4 |
|
183 //! @SYMTestType CIT |
|
184 |
|
185 //! START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
186 //! CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
187 //! CREATE_OBJECT RSocketServ RSocketServ1 |
|
188 //! COMMAND RSocketServ1 RSocketServ |
|
189 //! COMMAND RSocketServ1 Connect |
|
190 //! COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0006-0001command5NewL |
|
191 //! COMMAND RSocketServ1 Close |
|
192 //! COMMAND CBluetoothPhysicalLinks1 CreateConnection BT-USER-BluetoothPhysicalLinks-PublicApi-0006-0001command9CreateConnection |
|
193 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
194 |
|
195 //!END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0006 |
|
196 |
|
197 |
|
198 //!START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0007 |
|
199 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0007 |
|
200 //! @SYMAPI CBluetoothPhysicalLinks and RSocketServ |
|
201 //! @SYMTestCaseDesc Cancel bringing in a new member to the piconet after closing the socket server |
|
202 //! Uses API elements: NewL() and CancelCreateConnection() from CBluetoothPhysicalLinks |
|
203 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
204 //! @SYMTestActions 1. Create and start a session on the socket server |
|
205 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
206 //! 3. Close the session on the socket server |
|
207 //! 4. Cancel bringing in a new member to the piconet using CancelCreateConnection() function. |
|
208 //! |
|
209 //! @SYMTestStatus Implemented |
|
210 //! @SYMTestPriority Low |
|
211 //! @SYMTestExpectedResults Panic at step 4 |
|
212 //! @SYMTestType CIT |
|
213 |
|
214 //! START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
215 //! CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
216 //! CREATE_OBJECT RSocketServ RSocketServ1 |
|
217 //! COMMAND RSocketServ1 RSocketServ |
|
218 //! COMMAND RSocketServ1 Connect |
|
219 //! COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0007-0001command5NewL |
|
220 //! COMMAND RSocketServ1 Close |
|
221 //! COMMAND CBluetoothPhysicalLinks1 CancelCreateConnection |
|
222 //! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC |
|
223 |
|
224 //!END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0007 |
|
225 |
|
226 |
|
227 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0008 |
|
228 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0008 |
|
229 //! @SYMAPI CBluetoothPhysicalLinks and RSocketServ |
|
230 //! @SYMTestCaseDesc Enumerate connected members of the piconet |
|
231 //! Uses API elements: NewL(), Enumerate() and destructor from CBluetoothPhysicalLinks |
|
232 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
233 //! @SYMTestActions 1. Create and start a session on the socket server |
|
234 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
235 //! 3. Enumerate connected members of the piconet with given maximum number of members (decimal 7) to be returned. |
|
236 //! Return KErrNone if successful |
|
237 //! 4. Verify that if return RBTDevAddrArray size is 0 as expected 0 |
|
238 //! 5. Delete the Bluetooth socket using destructor |
|
239 //! @SYMTestStatus Implemented |
|
240 //! @SYMTestPriority Low |
|
241 //! @SYMTestExpectedResults Zero member returned |
|
242 //! @SYMTestType CIT |
|
243 |
|
244 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
245 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
246 CREATE_OBJECT RSocketServ RSocketServ1 |
|
247 COMMAND RSocketServ1 RSocketServ |
|
248 COMMAND RSocketServ1 Connect |
|
249 COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0008-0001command5NewL |
|
250 COMMAND CBluetoothPhysicalLinks1 Enumerate BT-USER-BluetoothPhysicalLinks-PublicApi-0008-0001command6Enumerate |
|
251 COMMAND CBluetoothPhysicalLinks1 ~ |
|
252 COMMAND RSocketServ1 Close |
|
253 END_TEST_BLOCK |
|
254 |
|
255 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0008 |
|
256 |
|
257 |
|
258 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0009 |
|
259 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0009 |
|
260 //! @SYMAPI CBluetoothPhysicalLinks, MBluetoothPhysicalLinksNotifier and RSocketServ |
|
261 //! @SYMTestCaseDesc Bring in a new member to the piconet |
|
262 //! Uses API elements: NewL(), CreateConnection() and destructor from CBluetoothPhysicalLinks |
|
263 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
264 //! HandleCreateConnectionCompleteL() from MBluetoothPhysicalLinksNotifier |
|
265 //! @SYMTestActions 1. Create and start a session on the socket server |
|
266 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
267 //! 3. Bring in a new member to the piconet with a device address(12121212) using |
|
268 //! CreateConnection() function. Return KErrNone if successful |
|
269 //! 4. Return Callback HandleCreateConnectionCompleteL() function |
|
270 //! 5. Verify that if return result (Error -6004) from callback function is as expected. (Error -6004) |
|
271 //! 6. Delete the Bluetooth socket using destructor |
|
272 //! @SYMTestStatus Implemented |
|
273 //! @SYMTestPriority Low |
|
274 //! @SYMTestExpectedResults EPageTimedOut (-6004) returned as expected at step 4 |
|
275 //! @SYMTestType CIT |
|
276 |
|
277 START_TEST_BLOCK 2000 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
278 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
279 CREATE_OBJECT RSocketServ RSocketServ1 |
|
280 COMMAND RSocketServ1 RSocketServ |
|
281 COMMAND RSocketServ1 Connect |
|
282 COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0009-0001command5NewL |
|
283 COMMAND CBluetoothPhysicalLinks1 CreateConnection BT-USER-BluetoothPhysicalLinks-PublicApi-0009-0001command6CreateConnection |
|
284 OUTSTANDING |
|
285 COMMAND CBluetoothPhysicalLinks1 ~ |
|
286 COMMAND RSocketServ1 Close |
|
287 END_TEST_BLOCK |
|
288 |
|
289 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0009 |
|
290 |
|
291 |
|
292 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0010 |
|
293 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0010 |
|
294 //! @SYMAPI CBluetoothPhysicalLinks, MBluetoothPhysicalLinksNotifier and RSocketServ |
|
295 //! @SYMTestCaseDesc Disconnect a single member of piconet |
|
296 //! Uses API elements: NewL(), CreateConnection(), Disconnect() and destructor from CBluetoothPhysicalLinks |
|
297 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
298 //! HandleCreateConnectionCompleteL() and HandleDisconnectCompleteL() from MBluetoothPhysicalLinksNotifier |
|
299 //! @SYMTestActions 1. Create and start a session on the socket server |
|
300 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
301 //! 3. Bring in a new member to the piconet with a device address(12121212) using |
|
302 //! CreateConnection() function. Return KErrNone if successful |
|
303 //! 4. Return Callback HandleCreateConnectionCompleteL() function |
|
304 //! 5. Verify that if return result (Error -6004) from callback function is as expected. (Error -6004) |
|
305 //! 6. Disconnect a single member of piconet using Disconnect() function. |
|
306 //! 7. Return callback HandleDisconnectCompleteL() function |
|
307 //! 8. Verify that if return result (decimal 0) is as expected (decimal 0) |
|
308 //! 9. Delete the Bluetooth socket using destructor |
|
309 //! @SYMTestStatus Implemented |
|
310 //! @SYMTestPriority Low |
|
311 //! @SYMTestExpectedResults A single member got disconnected |
|
312 //! @SYMTestType CIT |
|
313 |
|
314 START_TEST_BLOCK 2000 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
315 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
316 CREATE_OBJECT RSocketServ RSocketServ1 |
|
317 COMMAND RSocketServ1 RSocketServ |
|
318 COMMAND RSocketServ1 Connect |
|
319 COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0010-0001command5NewL |
|
320 COMMAND CBluetoothPhysicalLinks1 CreateConnection BT-USER-BluetoothPhysicalLinks-PublicApi-0010-0001command6CreateConnection |
|
321 OUTSTANDING |
|
322 COMMAND CBluetoothPhysicalLinks1 Disconnect BT-USER-BluetoothPhysicalLinks-PublicApi-0010-0001command8Disconnect |
|
323 OUTSTANDING |
|
324 COMMAND CBluetoothPhysicalLinks1 ~ |
|
325 COMMAND RSocketServ1 Close |
|
326 END_TEST_BLOCK |
|
327 |
|
328 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0010 |
|
329 |
|
330 |
|
331 START_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0011 |
|
332 //! @SYMTestCaseID BT-USER-BluetoothPhysicalLinks-PublicApi-0011 |
|
333 //! @SYMAPI CBluetoothPhysicalLinks, MBluetoothPhysicalLinksNotifier and RSocketServ |
|
334 //! @SYMTestCaseDesc Disconnect all members of piconet |
|
335 //! Uses API elements: NewL(), CreateConnection(), DisconnectAll() and destructor from CBluetoothPhysicalLinks |
|
336 //! RSocketServ(), Connect() and Close() from RSocketServ |
|
337 //! HandleCreateConnectionCompleteL() and HandleDisconnectAllCompleteL() from MBluetoothPhysicalLinksNotifier |
|
338 //! @SYMTestActions 1. Create and start a session on the socket server |
|
339 //! 2. Open a Bluetooth socket using NewL() function. Return KErrNone if successful |
|
340 //! 3. Bring in a new member to the piconet with a device address(12121212) using |
|
341 //! CreateConnection() function. Return KErrNone if successful |
|
342 //! 4. Return callback HandleCreateConnectionCompleteL() function |
|
343 //! 5. Verify that if return result (Error -6004) from callback function is as expected. (Error -6004) |
|
344 //! 6. Disconnect all members of piconet using DisconnectAll() function. Return KErrNone |
|
345 //! if successful |
|
346 //! 7. Return callback HandleDisconnectAllCompleteL() function |
|
347 //! 8. Verify that if return result (decimal 0) is as expected (decimal 0) |
|
348 //! 9. Delete the Bluetooth socket using destructor |
|
349 //! @SYMTestStatus Implemented |
|
350 //! @SYMTestPriority Low |
|
351 //! @SYMTestExpectedResults All members got disconnected |
|
352 //! @SYMTestType CIT |
|
353 |
|
354 START_TEST_BLOCK 2000 T_BTUserAPI \bluetooth\user\BT-USER-BluetoothPhysicalLinks-PublicApi.ini |
|
355 CREATE_OBJECT CBluetoothPhysicalLinks CBluetoothPhysicalLinks1 |
|
356 CREATE_OBJECT RSocketServ RSocketServ1 |
|
357 COMMAND RSocketServ1 RSocketServ |
|
358 COMMAND RSocketServ1 Connect |
|
359 COMMAND CBluetoothPhysicalLinks1 NewL BT-USER-BluetoothPhysicalLinks-PublicApi-0011-0001command5NewL |
|
360 COMMAND CBluetoothPhysicalLinks1 CreateConnection BT-USER-BluetoothPhysicalLinks-PublicApi-0011-0001command6CreateConnection |
|
361 OUTSTANDING |
|
362 COMMAND CBluetoothPhysicalLinks1 DisconnectAll BT-USER-BluetoothPhysicalLinks-PublicApi-0011-0001command8DisconnectAll |
|
363 OUTSTANDING |
|
364 COMMAND CBluetoothPhysicalLinks1 ~ |
|
365 COMMAND RSocketServ1 Close |
|
366 END_TEST_BLOCK |
|
367 |
|
368 END_TESTCASE BT-USER-BluetoothPhysicalLinks-PublicApi-0011 |
|
369 |
|
370 |
|
371 DELAY 2000 |