|
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\tbtsockaddrapi\ |
|
20 |
|
21 LOAD_SUITE T_BTSockAddrAPI |
|
22 DELAY 2000 |
|
23 |
|
24 |
|
25 //! @file |
|
26 //! @SYMTestSuiteName BT-SOCK-ADDR-PublicApi |
|
27 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
28 |
|
29 |
|
30 // **************************************************************************** |
|
31 // TBTServiceSecurity |
|
32 // **************************************************************************** |
|
33 |
|
34 START_TESTCASE BT-SOCK-ADDR-PublicApi-0001 |
|
35 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0001 |
|
36 //! @SYMAPI TBTServiceSecurity |
|
37 //! @SYMAuthor Johan Eriksson |
|
38 //! @SYMCreationDate 27/01/2006 |
|
39 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
40 //! @SYMTestCaseDesc Create a TBTServiceSecurity object with default values |
|
41 //! Uses API elements: TBTServiceSecurity() |
|
42 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
43 //! @SYMTestStatus Implemented |
|
44 //! @SYMTestPriority Critical |
|
45 //! @SYMTestExpectedResults Object created |
|
46 //! @SYMTestType CIT |
|
47 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
48 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
49 COMMAND TBTServiceSecurity1 Construct |
|
50 END_TEST_BLOCK |
|
51 END_TESTCASE BT-SOCK-ADDR-PublicApi-0001 |
|
52 |
|
53 START_TESTCASE BT-SOCK-ADDR-PublicApi-0002 |
|
54 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0002 |
|
55 //! @SYMAPI TBTServiceSecurity |
|
56 //! @SYMAuthor Johan Eriksson |
|
57 //! @SYMCreationDate 27/01/2006 |
|
58 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
59 //! @SYMTestCaseDesc Create a TBTServiceSecurity object given a TBTServiceSecurity object |
|
60 //! Uses API elements: TBTServiceSecurity(TBTServiceSecurity) |
|
61 //! @SYMTestActions 1. Create a TBTServiceSecurity object |
|
62 //! 2. Create a new TBTServiceSecurity object using the TBTServiceSecurity (from 1) as argument |
|
63 //! @SYMTestStatus Implemented |
|
64 //! @SYMTestPriority Critical |
|
65 //! @SYMTestExpectedResults Object created |
|
66 //! @SYMTestType CIT |
|
67 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
68 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
69 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity2 |
|
70 COMMAND TBTServiceSecurity1 Construct |
|
71 COMMAND TBTServiceSecurity2 Construct BT-SOCK-ADDR-PublicApi-0002-001command3Construct |
|
72 END_TEST_BLOCK |
|
73 END_TESTCASE BT-SOCK-ADDR-PublicApi-0002 |
|
74 |
|
75 START_TESTCASE BT-SOCK-ADDR-PublicApi-0003 |
|
76 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0003 |
|
77 //! @SYMAPI TBTServiceSecurity |
|
78 //! @SYMAuthor Johan Eriksson |
|
79 //! @SYMCreationDate 27/01/2006 |
|
80 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
81 //! @SYMTestCaseDesc Set the Authentication of the TBTServiceSecurity and Retrieve it |
|
82 //! Uses API elements: TBTServiceSecurity(), SetAuthentication, AuthenticationRequired |
|
83 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
84 //! 2. Set the TBTServiceSecurity Authentication to true |
|
85 //! 3. Retrieve the Authentication value from the TBTServiceSecurity |
|
86 //! and compare with original |
|
87 //! @SYMTestStatus Implemented |
|
88 //! @SYMTestPriority Critical |
|
89 //! @SYMTestExpectedResults Same value set and Retrieved |
|
90 //! @SYMTestType CIT |
|
91 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
92 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
93 COMMAND TBTServiceSecurity1 Construct |
|
94 COMMAND TBTServiceSecurity1 SetAuthentication BT-SOCK-ADDR-PublicApi-0003-001command2SetAuthentication |
|
95 COMMAND TBTServiceSecurity1 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0003-001command3AuthenticationRequired |
|
96 END_TEST_BLOCK |
|
97 END_TESTCASE BT-SOCK-ADDR-PublicApi-0003 |
|
98 |
|
99 START_TESTCASE BT-SOCK-ADDR-PublicApi-0004 |
|
100 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0004 |
|
101 //! @SYMAPI TBTServiceSecurity |
|
102 //! @SYMAuthor Johan Eriksson |
|
103 //! @SYMCreationDate 27/01/2006 |
|
104 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
105 //! @SYMTestCaseDesc Set the Authorisation of the TBTServiceSecurity and Retrieve it |
|
106 //! Uses API elements: TBTServiceSecurity(), SetAuthorisation, AuthorisationRequired |
|
107 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
108 //! 2. Set a TBTServiceSecurity Authorisation to true |
|
109 //! 3. Retrieve the Authorisation value from the TBTServiceSecurity |
|
110 //! and compare with original |
|
111 //! @SYMTestStatus Implemented |
|
112 //! @SYMTestPriority Critical |
|
113 //! @SYMTestExpectedResults Same value set and Retrieved |
|
114 //! @SYMTestType CIT |
|
115 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
116 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
117 COMMAND TBTServiceSecurity1 Construct |
|
118 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0004-001command2SetAuthorisation |
|
119 COMMAND TBTServiceSecurity1 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0004-001command3AuthorisationRequired |
|
120 END_TEST_BLOCK |
|
121 END_TESTCASE BT-SOCK-ADDR-PublicApi-0004 |
|
122 |
|
123 START_TESTCASE BT-SOCK-ADDR-PublicApi-0005 |
|
124 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0005 |
|
125 //! @SYMAPI TBTServiceSecurity |
|
126 //! @SYMAuthor Johan Eriksson |
|
127 //! @SYMCreationDate 27/01/2006 |
|
128 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
129 //! @SYMTestCaseDesc Set the Authorisation of the TBTServiceSecurity and Retrieve it |
|
130 //! Uses API elements: TBTServiceSecurity(), SetAuthorisation, AuthorisationRequired |
|
131 //! @SYMTestActions 1. Create a new empty TBTServiceSecurity object |
|
132 //! 2. Set a TBTServiceSecurity Authorisation to false |
|
133 //! 3. Retrieve the Authorisation value from the TBTServiceSecurity |
|
134 //! and compare with original |
|
135 //! @SYMTestStatus Implemented |
|
136 //! @SYMTestPriority Critical |
|
137 //! @SYMTestExpectedResults Same value set and Retrieved |
|
138 //! @SYMTestType CIT |
|
139 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
140 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
141 COMMAND TBTServiceSecurity1 Construct |
|
142 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0005-001command2SetAuthorisation |
|
143 COMMAND TBTServiceSecurity1 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0005-001command3AuthorisationRequired |
|
144 END_TEST_BLOCK |
|
145 END_TESTCASE BT-SOCK-ADDR-PublicApi-0005 |
|
146 |
|
147 START_TESTCASE BT-SOCK-ADDR-PublicApi-0006 |
|
148 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0006 |
|
149 //! @SYMAPI TBTServiceSecurity |
|
150 //! @SYMAuthor Johan Eriksson |
|
151 //! @SYMCreationDate 27/01/2006 |
|
152 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
153 //! @SYMTestCaseDesc Set and get Authorisation and Authentication of the TBTServiceSecurity |
|
154 //! Uses API elements: TBTServiceSecurity(), SetAuthentication, SetAuthorisation, |
|
155 //! AuthorisationRequired, AuthenticationRequired |
|
156 //! @SYMTestActions 1. Create a new empty TBTServiceSecurity object |
|
157 //! 2. Set a TBTServiceSecurity Authentication to true |
|
158 //! 3. Set a TBTServiceSecurity Authorisation to false |
|
159 //! 4. Retrieve the Authorisation value from the TBTServiceSecurity |
|
160 //! and compare with original |
|
161 //! 5. Retrieve the Authentication value from the TBTServiceSecurity |
|
162 //! and compare with original |
|
163 //! @SYMTestStatus Implemented |
|
164 //! @SYMTestPriority Critical |
|
165 //! @SYMTestExpectedResults Same value set and Retrieved |
|
166 //! @SYMTestType CIT |
|
167 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
168 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
169 COMMAND TBTServiceSecurity1 Construct |
|
170 COMMAND TBTServiceSecurity1 SetAuthentication BT-SOCK-ADDR-PublicApi-0006-001command2SetAuthentication |
|
171 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0006-001command3SetAuthorisation |
|
172 COMMAND TBTServiceSecurity1 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0006-001command4AuthorisationRequired |
|
173 COMMAND TBTServiceSecurity1 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0006-001command5AuthenticationRequired |
|
174 END_TEST_BLOCK |
|
175 END_TESTCASE BT-SOCK-ADDR-PublicApi-0006 |
|
176 |
|
177 START_TESTCASE BT-SOCK-ADDR-PublicApi-0007 |
|
178 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0007 |
|
179 //! @SYMAPI TBTServiceSecurity |
|
180 //! @SYMAuthor Johan Eriksson |
|
181 //! @SYMCreationDate 27/01/2006 |
|
182 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
183 //! @SYMTestCaseDesc Set the Denied property of the TBTServiceSecurity and Retrieve it |
|
184 //! Uses API elements: TBTServiceSecurity(), SetDenied, Denied |
|
185 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
186 //! 2. Set a TBTServiceSecurity Denied to true |
|
187 //! 3. Retrieve the Denied value from the TBTServiceSecurity |
|
188 //! and compare with original |
|
189 //! @SYMTestStatus Implemented |
|
190 //! @SYMTestPriority Critical |
|
191 //! @SYMTestExpectedResults Same value set and Retrieved |
|
192 //! @SYMTestType CIT |
|
193 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
194 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
195 COMMAND TBTServiceSecurity1 Construct |
|
196 COMMAND TBTServiceSecurity1 SetDenied BT-SOCK-ADDR-PublicApi-0007-001command2SetDenied |
|
197 COMMAND TBTServiceSecurity1 Denied BT-SOCK-ADDR-PublicApi-0007-001command3Denied |
|
198 END_TEST_BLOCK |
|
199 END_TESTCASE BT-SOCK-ADDR-PublicApi-0007 |
|
200 |
|
201 START_TESTCASE BT-SOCK-ADDR-PublicApi-0008 |
|
202 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0008 |
|
203 //! @SYMAPI TBTServiceSecurity |
|
204 //! @SYMAuthor Johan Eriksson |
|
205 //! @SYMCreationDate 27/01/2006 |
|
206 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
207 //! @SYMTestCaseDesc Set the Encryption of the TBTServiceSecurity and Retrieve it |
|
208 //! Uses API elements: TBTServiceSecurity(), SetEncryption, EncryptionRequired |
|
209 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
210 //! 2. Set a TBTServiceSecurity Encryption to true |
|
211 //! 3. Retrieve the Encryption value from the TBTServiceSecurity |
|
212 //! and compare with original |
|
213 //! @SYMTestStatus Implemented |
|
214 //! @SYMTestPriority Critical |
|
215 //! @SYMTestExpectedResults Same value set and Retrieved |
|
216 //! @SYMTestType CIT |
|
217 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
218 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
219 COMMAND TBTServiceSecurity1 Construct |
|
220 COMMAND TBTServiceSecurity1 SetEncryption BT-SOCK-ADDR-PublicApi-0008-001command2SetEncryption |
|
221 COMMAND TBTServiceSecurity1 EncryptionRequired BT-SOCK-ADDR-PublicApi-0008-001command3EncryptionRequired |
|
222 END_TEST_BLOCK |
|
223 END_TESTCASE BT-SOCK-ADDR-PublicApi-0008 |
|
224 |
|
225 START_TESTCASE BT-SOCK-ADDR-PublicApi-0009 |
|
226 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0009 |
|
227 //! @SYMAPI TBTServiceSecurity |
|
228 //! @SYMAuthor Johan Eriksson |
|
229 //! @SYMCreationDate 27/01/2006 |
|
230 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
231 //! @SYMTestCaseDesc Set the PasskeyMinLength of the TBTServiceSecurity and Retrieve it |
|
232 //! Uses API elements: TBTServiceSecurity(), SetPasskeyMinLength, PasskeyMinLength |
|
233 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
234 //! @SYMTestActions 2. Set a TBTServiceSecurity PasskeyMinLength to a value |
|
235 //! 3. Retrieve the PasskeyMinLength value from the TBTServiceSecurity |
|
236 //! and compare with original |
|
237 //! @SYMTestStatus Implemented |
|
238 //! @SYMTestPriority Critical |
|
239 //! @SYMTestExpectedResults Same value set and Retrieved |
|
240 //! @SYMTestType CIT |
|
241 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
242 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
243 COMMAND TBTServiceSecurity1 Construct |
|
244 COMMAND TBTServiceSecurity1 SetPasskeyMinLength BT-SOCK-ADDR-PublicApi-0009-001command2SetPasskeyMinLength |
|
245 COMMAND TBTServiceSecurity1 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0009-001command3PasskeyMinLength |
|
246 END_TEST_BLOCK |
|
247 END_TESTCASE BT-SOCK-ADDR-PublicApi-0009 |
|
248 |
|
249 START_TESTCASE BT-SOCK-ADDR-PublicApi-0010 |
|
250 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0010 |
|
251 //! @SYMAPI TBTServiceSecurity |
|
252 //! @SYMAuthor Johan Eriksson |
|
253 //! @SYMCreationDate 27/01/2006 |
|
254 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
255 //! @SYMTestCaseDesc Set the Uid of the TBTServiceSecurity and Retrieve it |
|
256 //! Uses API elements: TBTServiceSecurity(), SetUid, Uid |
|
257 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
258 //! 2. Set a TBTServiceSecurity Uid to a value |
|
259 //! 3. Retrieve the Uid value from the TBTServiceSecurity |
|
260 //! and compare with original |
|
261 //! @SYMTestStatus Implemented |
|
262 //! @SYMTestPriority Critical |
|
263 //! @SYMTestExpectedResults Same value set and Retrieved |
|
264 //! @SYMTestType CIT |
|
265 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
266 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
267 COMMAND TBTServiceSecurity1 Construct |
|
268 COMMAND TBTServiceSecurity1 SetUid BT-SOCK-ADDR-PublicApi-0010-001command2SetUid |
|
269 COMMAND TBTServiceSecurity1 Uid BT-SOCK-ADDR-PublicApi-0010-001command3Uid |
|
270 END_TEST_BLOCK |
|
271 END_TESTCASE BT-SOCK-ADDR-PublicApi-0010 |
|
272 |
|
273 // **************************************************************************** |
|
274 // TBTServiceSecurity (Deep testing and error conditions) |
|
275 // **************************************************************************** |
|
276 |
|
277 |
|
278 START_TESTCASE BT-SOCK-ADDR-PublicApi-0011 |
|
279 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0011 |
|
280 //! @SYMAPI TBTServiceSecurity |
|
281 //! @SYMAuthor Johan Eriksson |
|
282 //! @SYMCreationDate 08/02/2006 |
|
283 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
284 //! @SYMTestCaseDesc Create a TBTServiceSecurity object with default values |
|
285 //! Uses API elements: TBTServiceSecurity(), AuthorisationRequired, AuthenticationRequired, |
|
286 //! Denied, EncryptionRequired, PasskeyMinLength, Uid, SetAuthentication, SetAuthorisation, |
|
287 //! SetDenied, SetEncryption, SetPasskeyMinLength, SetUid, TBTServiceSecurity(TBTServiceSecurity) |
|
288 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
289 //! 2. Verify each of the default values |
|
290 //! 3. SetAuthentication to true |
|
291 //! 4. SetAuthorisation to true |
|
292 //! 5. SetDenied to true |
|
293 //! 6. SetEncryption to true |
|
294 //! 7. SetPasskeyMinLength to a suitable value |
|
295 //! 8. SetUid to a suitable value |
|
296 //! 9. Create a new TBTServiceSecurity object using the current TBTServiceSecurity as argument |
|
297 //! 10. Verify each of the set values in the new default object |
|
298 //! 11. SetAuthentication to false |
|
299 //! 12. SetAuthorisation to false |
|
300 //! 13. SetDenied to false |
|
301 //! 14. SetEncryption to false |
|
302 //! 15. SetPasskeyMinLength to a suitable low value 0? |
|
303 //! 16. SetUid to a suitable low value 0? |
|
304 //! 17. Verify each of the set values |
|
305 //! @SYMTestStatus Implemented |
|
306 //! @SYMTestPriority Critical |
|
307 //! @SYMTestExpectedResults Values for each attribute set as expected |
|
308 //! @SYMTestType CIT |
|
309 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
310 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
311 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity2 |
|
312 COMMAND TBTServiceSecurity1 Construct |
|
313 COMMAND TBTServiceSecurity1 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0011-001command2AuthorisationRequired |
|
314 COMMAND TBTServiceSecurity1 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0011-001command3AuthenticationRequired |
|
315 COMMAND TBTServiceSecurity1 Denied BT-SOCK-ADDR-PublicApi-0011-001command4Denied |
|
316 COMMAND TBTServiceSecurity1 EncryptionRequired BT-SOCK-ADDR-PublicApi-0011-001command5EncryptionRequired |
|
317 COMMAND TBTServiceSecurity1 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0011-001command6PasskeyMinLength |
|
318 COMMAND TBTServiceSecurity1 Uid BT-SOCK-ADDR-PublicApi-0011-001command7Uid |
|
319 COMMAND TBTServiceSecurity1 SetAuthentication BT-SOCK-ADDR-PublicApi-0011-001command8SetAuthentication |
|
320 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0011-001command9SetAuthorisation |
|
321 COMMAND TBTServiceSecurity1 SetDenied BT-SOCK-ADDR-PublicApi-0011-001command10SetDenied |
|
322 COMMAND TBTServiceSecurity1 SetEncryption BT-SOCK-ADDR-PublicApi-0011-001command11SetEncryption |
|
323 COMMAND TBTServiceSecurity1 SetPasskeyMinLength BT-SOCK-ADDR-PublicApi-0011-001command12SetPasskeyMinLength |
|
324 COMMAND TBTServiceSecurity1 SetUid BT-SOCK-ADDR-PublicApi-0011-001command13SetUid |
|
325 COMMAND TBTServiceSecurity2 Construct BT-SOCK-ADDR-PublicApi-0011-001command15Construct |
|
326 COMMAND TBTServiceSecurity2 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0011-001command16AuthorisationRequired |
|
327 COMMAND TBTServiceSecurity2 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0011-001command17AuthenticationRequired |
|
328 COMMAND TBTServiceSecurity2 Denied BT-SOCK-ADDR-PublicApi-0011-001command18Denied |
|
329 COMMAND TBTServiceSecurity2 EncryptionRequired BT-SOCK-ADDR-PublicApi-0011-001command19EncryptionRequired |
|
330 COMMAND TBTServiceSecurity2 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0011-001command20PasskeyMinLength |
|
331 COMMAND TBTServiceSecurity2 Uid BT-SOCK-ADDR-PublicApi-0011-001command21Uid |
|
332 END_TEST_BLOCK |
|
333 END_TESTCASE BT-SOCK-ADDR-PublicApi-0011 |
|
334 |
|
335 |
|
336 // **************************************************************************** |
|
337 // TRfcommSockAddr |
|
338 // **************************************************************************** |
|
339 |
|
340 START_TESTCASE BT-SOCK-ADDR-PublicApi-0012 |
|
341 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0012 |
|
342 //! @SYMAPI TRfcommSockAddr |
|
343 //! @SYMAuthor Johan Eriksson |
|
344 //! @SYMCreationDate 26/01/2006 |
|
345 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
346 //! @SYMTestCaseDesc Create a TRfcommSockAddr object with default values |
|
347 //! Uses API elements: TRfcommSockAddr() |
|
348 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
349 //! @SYMTestStatus Implemented |
|
350 //! @SYMTestPriority Critical |
|
351 //! @SYMTestExpectedResults Object created |
|
352 //! @SYMTestType CIT |
|
353 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
354 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
355 COMMAND TRfcommSockAddr1 Construct |
|
356 END_TEST_BLOCK |
|
357 END_TESTCASE BT-SOCK-ADDR-PublicApi-0012 |
|
358 |
|
359 START_TESTCASE BT-SOCK-ADDR-PublicApi-0013 |
|
360 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0013 |
|
361 //! @SYMAPI TRfcommSockAddr |
|
362 //! @SYMAuthor Johan Eriksson |
|
363 //! @SYMCreationDate 26/01/2006 |
|
364 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
365 //! @SYMTestCaseDesc Create a TRfcommSockAddr object given a TSockAddr object |
|
366 //! Uses API elements: TRfcommSockAddr(TSockAddr) |
|
367 //! @SYMTestActions 1. Create a TSockAddr object |
|
368 //! 2. Create the TRfcommSockAddr object using the TSockAddr object as argument |
|
369 //! @SYMTestStatus Implemented |
|
370 //! @SYMTestPriority Critical |
|
371 //! @SYMTestExpectedResults Object created |
|
372 //! @SYMTestType CIT |
|
373 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
374 CREATE_OBJECT TSockAddr TSockAddr1 |
|
375 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
376 COMMAND TSockAddr1 Construct |
|
377 COMMAND TRfcommSockAddr1 Construct BT-SOCK-ADDR-PublicApi-0013-001command3Construct |
|
378 END_TEST_BLOCK |
|
379 END_TESTCASE BT-SOCK-ADDR-PublicApi-0013 |
|
380 |
|
381 START_TESTCASE BT-SOCK-ADDR-PublicApi-0014 |
|
382 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0014 |
|
383 //! @SYMAPI TRfcommSockAddr |
|
384 //! @SYMAuthor Johan Eriksson |
|
385 //! @SYMCreationDate 26/01/2006 |
|
386 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
387 //! @SYMTestCaseDesc Create a TRfcommSockAddr object from a TSockAddr object |
|
388 //! Uses API elements: Cast(TSockAddr) |
|
389 //! @SYMTestActions 1. Create a TSockAddr object |
|
390 //! 2. Cast the TSockAddr object to a TRfcommSockAddr object |
|
391 //! @SYMTestStatus Implemented |
|
392 //! @SYMTestPriority Critical |
|
393 //! @SYMTestExpectedResults TRfcommSockAddr object created by cast |
|
394 //! @SYMTestType CIT |
|
395 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
396 CREATE_OBJECT TSockAddr TSockAddr1 |
|
397 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
398 COMMAND TSockAddr1 Construct |
|
399 COMMAND TRfcommSockAddr1 CastFromTSockAddr BT-SOCK-ADDR-PublicApi-0014-001command3CastFromTSockAddr |
|
400 END_TEST_BLOCK |
|
401 END_TESTCASE BT-SOCK-ADDR-PublicApi-0014 |
|
402 |
|
403 START_TESTCASE BT-SOCK-ADDR-PublicApi-0015 |
|
404 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0015 |
|
405 //! @SYMAPI TRfcommSockAddr |
|
406 //! @SYMAuthor Johan Eriksson |
|
407 //! @SYMCreationDate 23/01/2006 |
|
408 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
409 //! @SYMTestCaseDesc Set the Bluetooth address to a value, Retrieve it and compare |
|
410 //! Uses API elements: TRfcommSockAddr(), SetBTAddr, BTAddr |
|
411 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
412 //! 2. Create a TBTDevAddr with a specified value |
|
413 //! 3. Set an RfcommSockAddr objects Bluetooth address to TBTDevAddr |
|
414 //! 4. Retrieve the TBTDevAddr from the RfcommSockAddr |
|
415 //! and compare with original TBTDevAddr |
|
416 //! @SYMTestStatus Implemented |
|
417 //! @SYMTestPriority Critical |
|
418 //! @SYMTestExpectedResults Same value set and Retrieved |
|
419 //! @SYMTestType CIT |
|
420 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
421 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
422 COMMAND TRfcommSockAddr1 Construct |
|
423 COMMAND TRfcommSockAddr1 SetBTAddr BT-SOCK-ADDR-PublicApi-0015-001command2SetBTAddr |
|
424 COMMAND TRfcommSockAddr1 BTAddr BT-SOCK-ADDR-PublicApi-0015-001command3BTAddr |
|
425 END_TEST_BLOCK |
|
426 END_TESTCASE BT-SOCK-ADDR-PublicApi-0015 |
|
427 |
|
428 START_TESTCASE BT-SOCK-ADDR-PublicApi-0016 |
|
429 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0016 |
|
430 //! @SYMAPI TRfcommSockAddr |
|
431 //! @SYMAuthor Johan Eriksson |
|
432 //! @SYMCreationDate 26/01/2006 |
|
433 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
434 //! @SYMTestCaseDesc Set the Security settings of an RfcommSockAddr object, Retrieve them and compare |
|
435 //! Uses API elements: TRfcommSockAddr(), SetSecurity, BTSecurity |
|
436 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
437 //! 2. Create a TBTServiceSecurity object |
|
438 //! 3. Set a RfcommSockAddr Security settings to TBTServiceSecurity |
|
439 //! 4. Retrieve the TBTServiceSecurity from RfcommSockAddr |
|
440 //! and compare with original |
|
441 //! @SYMTestStatus Implemented |
|
442 //! @SYMTestPriority Critical |
|
443 //! @SYMTestExpectedResults Same value set and Retrieved |
|
444 //! @SYMTestType CIT |
|
445 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
446 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
447 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
448 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity2 |
|
449 COMMAND TRfcommSockAddr1 Construct |
|
450 COMMAND TBTServiceSecurity1 Construct |
|
451 COMMAND TBTServiceSecurity1 SetAuthentication BT-SOCK-ADDR-PublicApi-0016-001command4SetAuthentication |
|
452 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0016-001command5SetAuthorisation |
|
453 COMMAND TBTServiceSecurity1 SetDenied BT-SOCK-ADDR-PublicApi-0016-001command6SetDenied |
|
454 COMMAND TBTServiceSecurity1 SetEncryption BT-SOCK-ADDR-PublicApi-0016-001command7SetEncryption |
|
455 COMMAND TBTServiceSecurity1 SetPasskeyMinLength BT-SOCK-ADDR-PublicApi-0016-001command8SetPasskeyMinLength |
|
456 COMMAND TBTServiceSecurity1 SetUid BT-SOCK-ADDR-PublicApi-0016-001command9SetUid |
|
457 COMMAND TRfcommSockAddr1 SetSecurity BT-SOCK-ADDR-PublicApi-0016-001command11SetSecurity |
|
458 COMMAND TRfcommSockAddr1 BTSecurity BT-SOCK-ADDR-PublicApi-0016-001command12BTSecurity |
|
459 COMMAND TBTServiceSecurity2 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0016-001command14AuthorisationRequired |
|
460 COMMAND TBTServiceSecurity2 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0016-001command15AuthenticationRequired |
|
461 COMMAND TBTServiceSecurity2 Denied BT-SOCK-ADDR-PublicApi-0016-001command16Denied |
|
462 COMMAND TBTServiceSecurity2 EncryptionRequired BT-SOCK-ADDR-PublicApi-0016-001command17EncryptionRequired |
|
463 COMMAND TBTServiceSecurity2 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0016-001command18PasskeyMinLength |
|
464 COMMAND TBTServiceSecurity2 Uid BT-SOCK-ADDR-PublicApi-0016-001command19Uid |
|
465 END_TEST_BLOCK |
|
466 END_TESTCASE BT-SOCK-ADDR-PublicApi-0016 |
|
467 |
|
468 START_TESTCASE BT-SOCK-ADDR-PublicApi-0017 |
|
469 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0017 |
|
470 //! @SYMAPI TRfcommSockAddr |
|
471 //! @SYMAuthor Johan Eriksson |
|
472 //! @SYMCreationDate 26/01/2006 |
|
473 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
474 //! @SYMTestCaseDesc Set the Family of the BT device and Retrieve it |
|
475 //! Uses API elements: TRfcommSockAddr(), SetFamily, Family |
|
476 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
477 //! 2. Set the RfcommSockAddr Family to a suitable value |
|
478 //! 3. Retrieve the Family value from the RfcommSockAddr |
|
479 //! and compare with original |
|
480 //! @SYMTestStatus Implemented |
|
481 //! @SYMTestPriority Critical |
|
482 //! @SYMTestExpectedResults Same value set and Retrieved |
|
483 //! @SYMTestType CIT |
|
484 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
485 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
486 COMMAND TRfcommSockAddr1 Construct |
|
487 COMMAND TRfcommSockAddr1 SetFamily BT-SOCK-ADDR-PublicApi-0017-001command2SetFamily |
|
488 COMMAND TRfcommSockAddr1 Family BT-SOCK-ADDR-PublicApi-0017-001command3Family |
|
489 END_TEST_BLOCK |
|
490 END_TESTCASE BT-SOCK-ADDR-PublicApi-0017 |
|
491 |
|
492 START_TESTCASE BT-SOCK-ADDR-PublicApi-0018 |
|
493 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0018 |
|
494 //! @SYMAPI TRfcommSockAddr |
|
495 //! @SYMAuthor Johan Eriksson |
|
496 //! @SYMCreationDate 26/01/2006 |
|
497 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
498 //! @SYMTestCaseDesc Set the port of the BT device and Retrieve it |
|
499 //! Uses API elements: TRfcommSockAddr(), SetPort, Port |
|
500 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
501 //! 2. Set a RfcommSockAddr port to a suitable value |
|
502 //! 3. Retrieve the port value from the RfcommSockAddr |
|
503 //! and compare with original |
|
504 //! @SYMTestStatus Implemented |
|
505 //! @SYMTestPriority Critical |
|
506 //! @SYMTestExpectedResults Same value set and Retrieved |
|
507 //! @SYMTestType CIT |
|
508 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
509 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
510 COMMAND TRfcommSockAddr1 Construct |
|
511 COMMAND TRfcommSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0018-001command2SetPort |
|
512 COMMAND TRfcommSockAddr1 Port BT-SOCK-ADDR-PublicApi-0018-001command3Port |
|
513 END_TEST_BLOCK |
|
514 END_TESTCASE BT-SOCK-ADDR-PublicApi-0018 |
|
515 |
|
516 START_TESTCASE BT-SOCK-ADDR-PublicApi-0019 |
|
517 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0019 |
|
518 //! @SYMAPI TRfcommSockAddr |
|
519 //! @SYMAuthor Johan Eriksson |
|
520 //! @SYMCreationDate 26/01/2006 |
|
521 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
522 //! @SYMTestCaseDesc Create two RfcommSockAddr objects set the ports to the same value and compare them |
|
523 //! Uses API elements: TRfcommSockAddr(), SetPort, CmpPort |
|
524 //! @SYMTestActions 1. Create two RfcommSockAddr objects |
|
525 //! 2. Set each port to a suitable value (same value) |
|
526 //! 3. Call CmpPort on one of the objects given the other as argument |
|
527 //! Etrue is returned verifying that the port number is the same |
|
528 //! @SYMTestStatus Implemented |
|
529 //! @SYMTestPriority Critical |
|
530 //! @SYMTestExpectedResults The port addresses of the two created objects are equal |
|
531 //! @SYMTestType CIT |
|
532 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
533 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
534 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr2 |
|
535 COMMAND TRfcommSockAddr1 Construct |
|
536 COMMAND TRfcommSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0019-001command2SetPort |
|
537 COMMAND TRfcommSockAddr1 Port BT-SOCK-ADDR-PublicApi-0019-001command3Port |
|
538 COMMAND TRfcommSockAddr2 Construct |
|
539 COMMAND TRfcommSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0019-001command6SetPort |
|
540 COMMAND TRfcommSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0019-001command7CmpPort |
|
541 END_TEST_BLOCK |
|
542 END_TESTCASE BT-SOCK-ADDR-PublicApi-0019 |
|
543 |
|
544 |
|
545 |
|
546 // **************************************************************************** |
|
547 // T_TRfcommSockAddrChild (Inherited to test protected members of TRfcommSockAddr) |
|
548 // **************************************************************************** |
|
549 |
|
550 START_TESTCASE BT-SOCK-ADDR-PublicApi-0020 |
|
551 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0020 |
|
552 //! @SYMAPI TRfcommSockAddr |
|
553 //! @SYMAuthor Johan Eriksson |
|
554 //! @SYMCreationDate 26/01/2006 |
|
555 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
556 //! @SYMTestCaseDesc Set the User length of the BT device and Retrieve it |
|
557 //! Uses API elements: SetUserLen, GetUserLen |
|
558 //! @SYMTestActions 1. Create an empty T_TRfcommSockAddrChild object |
|
559 //! 2. Set a T_TRfcommSockAddrChild UserLen to a suitable value |
|
560 //! 3. Retrieve the UserLen value from the T_TRfcommSockAddrChild |
|
561 //! and compare with original |
|
562 //! @SYMTestStatus Implemented |
|
563 //! @SYMTestPriority Critical |
|
564 //! @SYMTestExpectedResults Same value set and Retrieved |
|
565 //! @SYMTestType CIT |
|
566 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
567 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
568 COMMAND TRfcommSockAddr1 Construct |
|
569 COMMAND TRfcommSockAddr1 PROTECTED-SetUserLen BT-SOCK-ADDR-PublicApi-0020-001command2PROTECTED-SetUserLen |
|
570 COMMAND TRfcommSockAddr1 GetUserLen BT-SOCK-ADDR-PublicApi-0020-001command3GetUserLen |
|
571 END_TEST_BLOCK |
|
572 END_TESTCASE BT-SOCK-ADDR-PublicApi-0020 |
|
573 |
|
574 START_TESTCASE BT-SOCK-ADDR-PublicApi-0021 |
|
575 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0021 |
|
576 //! @SYMAPI TRfcommSockAddr |
|
577 //! @SYMAuthor Johan Eriksson |
|
578 //! @SYMCreationDate 26/01/2006 |
|
579 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
580 //! @SYMTestCaseDesc Get the User pointer |
|
581 //! Uses API elements: UserPtr |
|
582 //! @SYMTestActions 1. Create an empty T_TRfcommSockAddrChild object |
|
583 //! 2. Get the pointer to the user data and Verify that a |
|
584 //! Null pointer is not Retrieved |
|
585 //! @SYMTestStatus Implemented |
|
586 //! @SYMTestPriority Critical |
|
587 //! @SYMTestExpectedResults Null pointer is not Retrieved |
|
588 //! @SYMTestType CIT |
|
589 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
590 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
591 COMMAND TRfcommSockAddr1 Construct |
|
592 COMMAND TRfcommSockAddr1 PROTECTED-UserPtr |
|
593 END_TEST_BLOCK |
|
594 END_TESTCASE BT-SOCK-ADDR-PublicApi-0021 |
|
595 |
|
596 |
|
597 |
|
598 // **************************************************************************** |
|
599 // TBTSockAddr |
|
600 // **************************************************************************** |
|
601 |
|
602 START_TESTCASE BT-SOCK-ADDR-PublicApi-0022 |
|
603 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0022 |
|
604 //! @SYMAPI TBTSockAddr |
|
605 //! @SYMAuthor Johan Eriksson |
|
606 //! @SYMCreationDate 26/01/2006 |
|
607 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
608 //! @SYMTestCaseDesc Create a TBTSockAddr with default values |
|
609 //! Uses API elements: TBTSockAddr() |
|
610 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
611 //! @SYMTestStatus Implemented |
|
612 //! @SYMTestPriority Critical |
|
613 //! @SYMTestExpectedResults Object created |
|
614 //! @SYMTestType CIT |
|
615 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
616 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
617 COMMAND TBTSockAddr1 Construct |
|
618 END_TEST_BLOCK |
|
619 END_TESTCASE BT-SOCK-ADDR-PublicApi-0022 |
|
620 |
|
621 START_TESTCASE BT-SOCK-ADDR-PublicApi-0023 |
|
622 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0023 |
|
623 //! @SYMAPI TBTSockAddr |
|
624 //! @SYMAuthor Johan Eriksson |
|
625 //! @SYMCreationDate 26/01/2006 |
|
626 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
627 //! @SYMTestCaseDesc Create a TBTSockAddr object given a TSockAddr object |
|
628 //! Uses API elements: TBTSockAddr(TSockAddr) |
|
629 //! @SYMTestActions 1. Create a TBTSockAddr object |
|
630 //! 2. Create the TBTSockAddr using the TSockAddr as argument |
|
631 //! @SYMTestStatus Implemented |
|
632 //! @SYMTestPriority Critical |
|
633 //! @SYMTestExpectedResults Object created |
|
634 //! @SYMTestType CIT |
|
635 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
636 CREATE_OBJECT TSockAddr TSockAddr1 |
|
637 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
638 COMMAND TSockAddr1 Construct |
|
639 COMMAND TBTSockAddr1 Construct BT-SOCK-ADDR-PublicApi-0023-001command3Construct |
|
640 END_TEST_BLOCK |
|
641 END_TESTCASE BT-SOCK-ADDR-PublicApi-0023 |
|
642 |
|
643 START_TESTCASE BT-SOCK-ADDR-PublicApi-0024 |
|
644 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0024 |
|
645 //! @SYMAPI TBTSockAddr |
|
646 //! @SYMAuthor Johan Eriksson |
|
647 //! @SYMCreationDate 26/01/2006 |
|
648 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
649 //! @SYMTestCaseDesc Create a TBTSockAddr object from a TSockAddr object |
|
650 //! Uses API elements: Cast(TSockAddr) |
|
651 //! @SYMTestActions 1. Create a TSockAddr object |
|
652 //! 2. Cast the TSockAddr object to a TBTSockAddr object |
|
653 //! @SYMTestStatus Implemented |
|
654 //! @SYMTestPriority Critical |
|
655 //! @SYMTestExpectedResults TRfcommSockAddr object created by cast |
|
656 //! @SYMTestType CIT |
|
657 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
658 CREATE_OBJECT TSockAddr TSockAddr1 |
|
659 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
660 COMMAND TSockAddr1 Construct |
|
661 COMMAND TBTSockAddr1 CastFromTSockAddr BT-SOCK-ADDR-PublicApi-0024-001command3CastFromTSockAddr |
|
662 END_TEST_BLOCK |
|
663 END_TESTCASE BT-SOCK-ADDR-PublicApi-0024 |
|
664 |
|
665 START_TESTCASE BT-SOCK-ADDR-PublicApi-0025 |
|
666 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0025 |
|
667 //! @SYMAPI TBTSockAddr |
|
668 //! @SYMAuthor Johan Eriksson |
|
669 //! @SYMCreationDate 23/01/2006 |
|
670 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
671 //! @SYMTestCaseDesc Set the Bluetooth address to a value, Retrieve it and compare |
|
672 //! Uses API elements: TBTSockAddr(), SetBTAddr, BTAddr |
|
673 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
674 //! 2. Create a TBTDevAddr object with a specified value |
|
675 //! 3. Set a TBTSockAddr objects Bluetooth address to the TBTDevAddr object |
|
676 //! 4. Retrieve the TBTDevAddr from the TBTSockAddr and |
|
677 //! compare with original TBTDevAddr |
|
678 //! @SYMTestStatus Implemented |
|
679 //! @SYMTestPriority Critical |
|
680 //! @SYMTestExpectedResults Same value set and Retrieved |
|
681 //! @SYMTestType CIT |
|
682 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
683 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
684 COMMAND TBTSockAddr1 Construct |
|
685 COMMAND TBTSockAddr1 SetBTAddr BT-SOCK-ADDR-PublicApi-0025-001command2SetBTAddr |
|
686 COMMAND TBTSockAddr1 BTAddr BT-SOCK-ADDR-PublicApi-0025-001command3BTAddr |
|
687 END_TEST_BLOCK |
|
688 END_TESTCASE BT-SOCK-ADDR-PublicApi-0025 |
|
689 |
|
690 START_TESTCASE BT-SOCK-ADDR-PublicApi-0026 |
|
691 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0026 |
|
692 //! @SYMAPI TBTSockAddr |
|
693 //! @SYMAuthor Johan Eriksson |
|
694 //! @SYMCreationDate 26/01/2006 |
|
695 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
696 //! @SYMTestCaseDesc Set the Security settings, Retrieve them and compare |
|
697 //! Uses API elements: TBTSockAddr(), SetSecurity, BTSecurity |
|
698 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
699 //! 2. Create a TBTServiceSecurity object |
|
700 //! 3. Set the TBTSockAddr objects Security settings to the TBTServiceSecurity object |
|
701 //! 4. Retrieve the TBTServiceSecurity object from the TBTSockAddr object |
|
702 //! and compare with original |
|
703 //! @SYMTestStatus Implemented |
|
704 //! @SYMTestPriority Critical |
|
705 //! @SYMTestExpectedResults Same value set and Retrieved |
|
706 //! @SYMTestType CIT |
|
707 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
708 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
709 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
710 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity2 |
|
711 COMMAND TBTSockAddr1 Construct |
|
712 COMMAND TBTServiceSecurity2 Construct |
|
713 COMMAND TBTServiceSecurity1 Construct |
|
714 COMMAND TBTServiceSecurity1 SetAuthentication BT-SOCK-ADDR-PublicApi-0026-001command6SetAuthentication |
|
715 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0026-001command7SetAuthorisation |
|
716 COMMAND TBTServiceSecurity1 SetDenied BT-SOCK-ADDR-PublicApi-0026-001command8SetDenied |
|
717 COMMAND TBTServiceSecurity1 SetEncryption BT-SOCK-ADDR-PublicApi-0026-001command9SetEncryption |
|
718 COMMAND TBTServiceSecurity1 SetPasskeyMinLength BT-SOCK-ADDR-PublicApi-0026-001command10SetPasskeyMinLength |
|
719 COMMAND TBTServiceSecurity1 SetUid BT-SOCK-ADDR-PublicApi-0026-001command11SetUid |
|
720 COMMAND TBTSockAddr1 SetSecurity BT-SOCK-ADDR-PublicApi-0026-001command13SetSecurity |
|
721 COMMAND TBTSockAddr1 BTSecurity BT-SOCK-ADDR-PublicApi-0026-001command14BTSecurity |
|
722 COMMAND TBTServiceSecurity2 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0026-001command16AuthorisationRequired |
|
723 COMMAND TBTServiceSecurity2 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0026-001command17AuthenticationRequired |
|
724 COMMAND TBTServiceSecurity2 Denied BT-SOCK-ADDR-PublicApi-0026-001command18Denied |
|
725 COMMAND TBTServiceSecurity2 EncryptionRequired BT-SOCK-ADDR-PublicApi-0026-001command19EncryptionRequired |
|
726 COMMAND TBTServiceSecurity2 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0026-001command20PasskeyMinLength |
|
727 COMMAND TBTServiceSecurity2 Uid BT-SOCK-ADDR-PublicApi-0026-001command21Uid |
|
728 END_TEST_BLOCK |
|
729 END_TESTCASE BT-SOCK-ADDR-PublicApi-0026 |
|
730 |
|
731 START_TESTCASE BT-SOCK-ADDR-PublicApi-0027 |
|
732 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0027 |
|
733 //! @SYMAPI TBTSockAddr |
|
734 //! @SYMAuthor Johan Eriksson |
|
735 //! @SYMCreationDate 26/01/2006 |
|
736 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
737 //! @SYMTestCaseDesc Set the Family of the BT device and Retrieve it |
|
738 //! Uses API elements: TBTSockAddr(), SetFamily, Family |
|
739 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
740 //! 2. Set the TBTSockAddr objects Family to a suitable value |
|
741 //! 3. Retrieve the Family value from the TBTSockAddr object |
|
742 //! and compare with original |
|
743 //! @SYMTestStatus Implemented |
|
744 //! @SYMTestPriority Critical |
|
745 //! @SYMTestExpectedResults Same value set and Retrieved |
|
746 //! @SYMTestType CIT |
|
747 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
748 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
749 COMMAND TBTSockAddr1 Construct |
|
750 COMMAND TBTSockAddr1 SetFamily BT-SOCK-ADDR-PublicApi-0027-001command2SetFamily |
|
751 COMMAND TBTSockAddr1 Family BT-SOCK-ADDR-PublicApi-0027-001command3Family |
|
752 END_TEST_BLOCK |
|
753 END_TESTCASE BT-SOCK-ADDR-PublicApi-0027 |
|
754 |
|
755 START_TESTCASE BT-SOCK-ADDR-PublicApi-0028 |
|
756 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0028 |
|
757 //! @SYMAPI TBTSockAddr |
|
758 //! @SYMAuthor Johan Eriksson |
|
759 //! @SYMCreationDate 26/01/2006 |
|
760 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
761 //! @SYMTestCaseDesc Set the port of the BT device and Retrieve it |
|
762 //! Uses API elements: ::TBTSockAddr(), SetPort, Port |
|
763 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
764 //! 2. Set the TBTSockAddr objects port to a suitable value |
|
765 //! 3. Retrieve the port value from the TBTSockAddr object |
|
766 //! and compare with original |
|
767 //! @SYMTestStatus Implemented |
|
768 //! @SYMTestPriority Critical |
|
769 //! @SYMTestExpectedResults Same value set and Retrieved |
|
770 //! @SYMTestType CIT |
|
771 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
772 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
773 COMMAND TBTSockAddr1 Construct |
|
774 COMMAND TBTSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0028-001command2SetPort |
|
775 COMMAND TBTSockAddr1 Port BT-SOCK-ADDR-PublicApi-0028-001command3Port |
|
776 END_TEST_BLOCK |
|
777 END_TESTCASE BT-SOCK-ADDR-PublicApi-0028 |
|
778 |
|
779 START_TESTCASE BT-SOCK-ADDR-PublicApi-0029 |
|
780 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0029 |
|
781 //! @SYMAPI TBTSockAddr |
|
782 //! @SYMAuthor Johan Eriksson |
|
783 //! @SYMCreationDate 26/01/2006 |
|
784 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
785 //! @SYMTestCaseDesc Create two TBTSockAddr objects set the ports to the same value and compare them |
|
786 //! Uses API elements: TBTSockAddr(), SetPort, CmpPort |
|
787 //! @SYMTestActions 1. Create two TBTSockAddr objects |
|
788 //! 2. Set each objects port to a suitable value (same value) |
|
789 //! 3. Call CmpPort on one of the objects given the other as argument |
|
790 //! Etrue is returned verifying that the port number is the same |
|
791 //! @SYMTestStatus Implemented |
|
792 //! @SYMTestPriority Critical |
|
793 //! @SYMTestExpectedResults The port addresses of the two created objects are equal |
|
794 //! @SYMTestType CIT |
|
795 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
796 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
797 CREATE_OBJECT TBTSockAddr TBTSockAddr2 |
|
798 COMMAND TBTSockAddr1 Construct |
|
799 COMMAND TBTSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0029-001command2SetPort |
|
800 COMMAND TBTSockAddr2 Construct |
|
801 COMMAND TBTSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0029-001command5SetPort |
|
802 COMMAND TBTSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0029-001command6CmpPort |
|
803 END_TEST_BLOCK |
|
804 END_TESTCASE BT-SOCK-ADDR-PublicApi-0029 |
|
805 |
|
806 |
|
807 |
|
808 // **************************************************************************** |
|
809 // TBTSockAddr (Deep testing and error conditions) |
|
810 // **************************************************************************** |
|
811 |
|
812 |
|
813 |
|
814 START_TESTCASE BT-SOCK-ADDR-PublicApi-0030 |
|
815 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0030 |
|
816 //! @SYMAPI TBTSockAddr |
|
817 //! @SYMAuthor Johan Eriksson |
|
818 //! @SYMCreationDate 26/01/2006 |
|
819 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
820 //! @SYMTestCaseDesc Create two TBTSockAddr objects set the ports to different values and compare |
|
821 //! Uses API elements: TBTSockAddr(), SetPort, CmpPort |
|
822 //! @SYMTestActions 1. Create two TBTSockAddr objects |
|
823 //! 2. Set each objects port to a suitable value (different values) |
|
824 //! 3. Call CmpPort on one of the objects given the other as argument |
|
825 //! Efalse is returned verifying that the port number is not the same |
|
826 //! @SYMTestStatus Implemented |
|
827 //! @SYMTestPriority Critical |
|
828 //! @SYMTestExpectedResults The port addresses of the two created objects are not equal |
|
829 //! @SYMTestType CIT |
|
830 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
831 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
832 CREATE_OBJECT TBTSockAddr TBTSockAddr2 |
|
833 COMMAND TBTSockAddr1 Construct |
|
834 COMMAND TBTSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0030-001command2SetPort |
|
835 COMMAND TBTSockAddr2 Construct |
|
836 COMMAND TBTSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0030-001command5SetPort |
|
837 COMMAND TBTSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0030-001command6CmpPort |
|
838 END_TEST_BLOCK |
|
839 END_TESTCASE BT-SOCK-ADDR-PublicApi-0030 |
|
840 |
|
841 |
|
842 |
|
843 // **************************************************************************** |
|
844 // T_TBTSockAddrChild (Inherited to test protected members of TBTSockAddr) |
|
845 // **************************************************************************** |
|
846 |
|
847 START_TESTCASE BT-SOCK-ADDR-PublicApi-0031 |
|
848 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0031 |
|
849 //! @SYMAPI TBTSockAddr |
|
850 //! @SYMAuthor Johan Eriksson |
|
851 //! @SYMCreationDate 26/01/2006 |
|
852 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
853 //! @SYMTestCaseDesc Set the User length of the BT device and Retrieve it |
|
854 //! Uses API elements: SetUserLen, GetUserLen |
|
855 //! @SYMTestActions 1. Create an empty T_TBTSockAddrChild object |
|
856 //! 2. Set the T_TBTSockAddrChild UserLen to a suitable value |
|
857 //! 3. Retrieve the UserLen value from the T_TBTSockAddrChild object |
|
858 //! and compare with original |
|
859 //! @SYMTestStatus Implemented |
|
860 //! @SYMTestPriority Critical |
|
861 //! @SYMTestExpectedResults Same value set and Retrieved |
|
862 //! @SYMTestType CIT |
|
863 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
864 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
865 COMMAND TBTSockAddr1 Construct |
|
866 COMMAND TBTSockAddr1 PROTECTED-SetUserLen BT-SOCK-ADDR-PublicApi-0031-001command2PROTECTED-SetUserLen |
|
867 COMMAND TBTSockAddr1 GetUserLen BT-SOCK-ADDR-PublicApi-0031-001command3GetUserLen |
|
868 END_TEST_BLOCK |
|
869 END_TESTCASE BT-SOCK-ADDR-PublicApi-0031 |
|
870 |
|
871 START_TESTCASE BT-SOCK-ADDR-PublicApi-0032 |
|
872 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0032 |
|
873 //! @SYMAPI TBTSockAddr |
|
874 //! @SYMAuthor Johan Eriksson |
|
875 //! @SYMCreationDate 26/01/2006 |
|
876 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
877 //! @SYMTestCaseDesc Get the User Pointer |
|
878 //! @SYMTestActions 1. Create an empty T_TBTSockAddrChild object |
|
879 //! Uses API elements: UserPtr |
|
880 //! 2. Get the pointer to the user data and Verify that a |
|
881 //! Null pointer is not Retrieved |
|
882 //! @SYMTestStatus Implemented |
|
883 //! @SYMTestPriority Critical |
|
884 //! @SYMTestExpectedResults Non Null pointer Retrieved |
|
885 //! @SYMTestType CIT |
|
886 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
887 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
888 COMMAND TBTSockAddr1 Construct |
|
889 COMMAND TBTSockAddr1 PROTECTED-UserPtr |
|
890 END_TEST_BLOCK |
|
891 END_TESTCASE BT-SOCK-ADDR-PublicApi-0032 |
|
892 |
|
893 |
|
894 START_TESTCASE BT-SOCK-ADDR-PublicApi-0033 |
|
895 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0033 |
|
896 //! @SYMAPI TBTSockAddr |
|
897 //! @SYMAuthor Johan Eriksson |
|
898 //! @SYMCreationDate 10/02/2006 |
|
899 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
900 //! @SYMTestCaseDesc Get the EndBTSockAddrPtr and verify that it is not NULL |
|
901 //! Uses API elements: EndBTSockAddrPtr |
|
902 //! @SYMTestActions 1. Create an empty T_TBTSockAddrChild object |
|
903 //! 2. Retrieve the BTSockAddrPtr value from the T_TBTSockAddrChild |
|
904 //! and verify that an address is received |
|
905 //! @SYMTestStatus Implemented |
|
906 //! @SYMTestPriority Critical |
|
907 //! @SYMTestExpectedResults Non NULL pointer received |
|
908 //! @SYMTestType CIT |
|
909 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
910 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
911 COMMAND TBTSockAddr1 Construct |
|
912 COMMAND TBTSockAddr1 PROTECTED-EndBTSockAddrPtr |
|
913 END_TEST_BLOCK |
|
914 END_TESTCASE BT-SOCK-ADDR-PublicApi-0033 |
|
915 |
|
916 |
|
917 // **************************************************************************** |
|
918 // T_TBTSockAddrChild (Inherited to test protected members of T_TBTSockAddr) |
|
919 // Deep testing |
|
920 // **************************************************************************** |
|
921 |
|
922 |
|
923 //!START_TESTCASE BT-SOCK-ADDR-PublicApi-0034 |
|
924 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0034 |
|
925 //! @SYMAPI TBTSockAddr |
|
926 //! @SYMAuthor Johan Eriksson |
|
927 //! @SYMCreationDate 10/02/2006 |
|
928 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
929 //! @SYMTestCaseDesc Set the User length to a negative value to generate a panic |
|
930 //! Uses API elements: SetUserLen |
|
931 //! @SYMTestActions 1. Create an empty T_TBTSockAddrChild object |
|
932 //! 2. Set a T_TBTSockAddrChild UserLen to -KMaxSockAddrSize (32) |
|
933 //! 3. Retrieve the UserLen value from the T_TBTSockAddrChild |
|
934 //! and compare with original |
|
935 //! @SYMTestStatus Implemented |
|
936 //! @SYMTestPriority Critical |
|
937 //! @SYMTestExpectedResults Panic at step 2 |
|
938 //! @SYMTestType CIT |
|
939 //! START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
940 //! CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
941 //! COMMAND TBTSockAddr1 Construct |
|
942 //! COMMAND TBTSockAddr1 PROTECTED-SetUserLen BT-SOCK-ADDR-PublicApi-0034-001command2PROTECTED-SetUserLen |
|
943 //! COMMAND TBTSockAddr1 GetUserLen BT-SOCK-ADDR-PublicApi-0034-001command3GetUserLen |
|
944 //! END_TEST_BLOCK !PanicCode=23 !PanicString=USER |
|
945 //!END_TESTCASE BT-SOCK-ADDR-PublicApi-0034 |
|
946 |
|
947 //!START_TESTCASE BT-SOCK-ADDR-PublicApi-0035 |
|
948 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0035 |
|
949 //! @SYMAPI TBTSockAddr |
|
950 //! @SYMAuthor Johan Eriksson |
|
951 //! @SYMCreationDate 10/02/2006 |
|
952 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
953 //! @SYMTestCaseDesc Set the User length to KMaxSockAddrSize + 1 to generate a panic |
|
954 //! Uses API elements: SetUserLen |
|
955 //! @SYMTestActions 1. Create an empty T_TBTSockAddrChild object |
|
956 //! 2. Set a T_TBTSockAddrChild UserLen to KMaxSockAddrSize + 1 (33) |
|
957 //! 3. Retrieve the UserLen value from the T_TBTSockAddrChild |
|
958 //! and compare with original |
|
959 //! @SYMTestStatus Implemented |
|
960 //! @SYMTestPriority Critical |
|
961 //! @SYMTestExpectedResults Panic at step 2 |
|
962 //! @SYMTestType CIT |
|
963 //! START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
964 //! CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
965 //! COMMAND TBTSockAddr1 Construct |
|
966 //! COMMAND TBTSockAddr1 PROTECTED-SetUserLen BT-SOCK-ADDR-PublicApi-0035-001command2PROTECTED-SetUserLen |
|
967 //! COMMAND TBTSockAddr1 GetUserLen BT-SOCK-ADDR-PublicApi-0035-001command3GetUserLen |
|
968 //! END_TEST_BLOCK !PanicCode=23 !PanicString=USER |
|
969 //!END_TESTCASE BT-SOCK-ADDR-PublicApi-0035 |
|
970 |
|
971 |
|
972 |
|
973 START_TESTCASE BT-SOCK-ADDR-PublicApi-0036 |
|
974 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0036 |
|
975 //! @SYMAPI TBTServiceSecurity, TRfcommSockAddr, TBTSockAddr |
|
976 //! @SYMAuthor Johan Eriksson |
|
977 //! @SYMCreationDate 10/03/2006 |
|
978 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
979 //! @SYMTestCaseDesc Scenario using most of all public methods of the classes |
|
980 //! Uses API elements: TBTServiceSecurity:: |
|
981 //! TBTServiceSecurity(), AuthorisationRequired, AuthenticationRequired, Denied, |
|
982 //! EncryptionRequired, PasskeyMinLength, Uid, SetAuthentication, SetAuthorisation, |
|
983 //! SetDenied, SetEncryption, SetPasskeyMinLength, SetUid, TBTServiceSecurity(TBTServiceSecurity) |
|
984 //! TRfcommSockAddr:: |
|
985 //! TRfcommSockAddr(), SetSecurity, SetBTAddr, SetFamily, SetPort, Port, CmpPort, BTAddr, |
|
986 //! Family, BTSecurity |
|
987 //! TBTSockAddr |
|
988 //! TBTSockAddr(TSockAddr), Family, Port, BTAddr |
|
989 //! @SYMTestActions 1. Create an empty TBTServiceSecurity object |
|
990 //! 2. Verify each of the default values |
|
991 //! 3. SetAuthentication to true |
|
992 //! 4. SetAuthorisation to true |
|
993 //! 5. SetDenied to true |
|
994 //! 6. SetEncryption to true |
|
995 //! 7. SetPasskeyMinLength to a suitable value |
|
996 //! 8. SetUid to a suitable value |
|
997 //! 9. Create a new TBTServiceSecurity object using the current TBTServiceSecurity as argument |
|
998 //! 10. Create an empty TRfcommSockAddr object |
|
999 //! 11. Set a RfcommSockAddr Security settings to TBTServiceSecurity |
|
1000 //! 12. Set the Bluetooth address of the RfcommSockAddr to a suitable value |
|
1001 //! 13. Set the RfcommSockAddr Family to a suitable value |
|
1002 //! 14. Set a RfcommSockAddr port to a suitable value |
|
1003 //! 15. Verify the port value of the RfcommSockAddr object |
|
1004 //! 16. Verify the port and family values of the RfcommSockAddr object using the compare port method |
|
1005 //! 17. Verify the BT address of the RfcommSockAddr object |
|
1006 //! 18. Verify the family value of the RfcommSockAddr object is 257 (BT) |
|
1007 //! 19. Retrieve the TBTServiceSecurity object from the TRfcommSockAddr object |
|
1008 //! 20. Verify each of the set values in the retrieved TBTServiceSecurity object |
|
1009 //! 21. Create a TBTSockAddr object from the TRfcommSockAddr object |
|
1010 //! 22. Verify the family, port and BT address of the TBTSockAddr object |
|
1011 //! @SYMTestStatus Implemented |
|
1012 //! @SYMTestPriority Critical |
|
1013 //! @SYMTestExpectedResults Values for each attribute set as expected |
|
1014 //! @SYMTestType CIT |
|
1015 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
1016 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1017 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1018 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
1019 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity2 |
|
1020 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity3 |
|
1021 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr2 |
|
1022 COMMAND TBTServiceSecurity1 Construct |
|
1023 COMMAND TBTServiceSecurity1 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0036-001command2AuthorisationRequired |
|
1024 COMMAND TBTServiceSecurity1 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0036-001command3AuthenticationRequired |
|
1025 COMMAND TBTServiceSecurity1 Denied BT-SOCK-ADDR-PublicApi-0036-001command4Denied |
|
1026 COMMAND TBTServiceSecurity1 EncryptionRequired BT-SOCK-ADDR-PublicApi-0036-001command5EncryptionRequired |
|
1027 COMMAND TBTServiceSecurity1 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0036-001command6PasskeyMinLength |
|
1028 COMMAND TBTServiceSecurity1 Uid BT-SOCK-ADDR-PublicApi-0036-001command7Uid |
|
1029 COMMAND TBTServiceSecurity1 SetAuthentication BT-SOCK-ADDR-PublicApi-0036-001command8SetAuthentication |
|
1030 COMMAND TBTServiceSecurity1 SetAuthorisation BT-SOCK-ADDR-PublicApi-0036-001command9SetAuthorisation |
|
1031 COMMAND TBTServiceSecurity1 SetDenied BT-SOCK-ADDR-PublicApi-0036-001command10SetDenied |
|
1032 COMMAND TBTServiceSecurity1 SetEncryption BT-SOCK-ADDR-PublicApi-0036-001command11SetEncryption |
|
1033 COMMAND TBTServiceSecurity1 SetPasskeyMinLength BT-SOCK-ADDR-PublicApi-0036-001command12SetPasskeyMinLength |
|
1034 COMMAND TBTServiceSecurity1 SetUid BT-SOCK-ADDR-PublicApi-0036-001command13SetUid |
|
1035 COMMAND TBTServiceSecurity2 Construct BT-SOCK-ADDR-PublicApi-0036-001command15Construct |
|
1036 COMMAND TRfcommSockAddr1 Construct |
|
1037 COMMAND TRfcommSockAddr1 SetSecurity BT-SOCK-ADDR-PublicApi-0036-001command18SetSecurity |
|
1038 COMMAND TRfcommSockAddr1 SetBTAddr BT-SOCK-ADDR-PublicApi-0036-001command19SetBTAddr |
|
1039 COMMAND TRfcommSockAddr1 SetFamily BT-SOCK-ADDR-PublicApi-0036-001command20SetFamily |
|
1040 COMMAND TRfcommSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0036-001command21SetPort |
|
1041 COMMAND TRfcommSockAddr1 Port BT-SOCK-ADDR-PublicApi-0036-001command22Port |
|
1042 COMMAND TRfcommSockAddr1 BTAddr BT-SOCK-ADDR-PublicApi-0036-001command23BTAddr |
|
1043 COMMAND TRfcommSockAddr1 Family BT-SOCK-ADDR-PublicApi-0036-001command24Family |
|
1044 COMMAND TRfcommSockAddr1 BTSecurity BT-SOCK-ADDR-PublicApi-0036-001command25BTSecurity |
|
1045 COMMAND TRfcommSockAddr2 Construct |
|
1046 COMMAND TRfcommSockAddr2 SetFamily BT-SOCK-ADDR-PublicApi-0036-001command28SetFamily |
|
1047 COMMAND TRfcommSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0036-001command29SetPort |
|
1048 COMMAND TRfcommSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0036-001command30CmpPort |
|
1049 COMMAND TBTServiceSecurity3 AuthorisationRequired BT-SOCK-ADDR-PublicApi-0036-001command32AuthorisationRequired |
|
1050 COMMAND TBTServiceSecurity3 AuthenticationRequired BT-SOCK-ADDR-PublicApi-0036-001command33AuthenticationRequired |
|
1051 COMMAND TBTServiceSecurity3 Denied BT-SOCK-ADDR-PublicApi-0036-001command34Denied |
|
1052 COMMAND TBTServiceSecurity3 EncryptionRequired BT-SOCK-ADDR-PublicApi-0036-001command35EncryptionRequired |
|
1053 COMMAND TBTServiceSecurity3 PasskeyMinLength BT-SOCK-ADDR-PublicApi-0036-001command36PasskeyMinLength |
|
1054 COMMAND TBTServiceSecurity3 Uid BT-SOCK-ADDR-PublicApi-0036-001command37Uid |
|
1055 COMMAND TBTSockAddr1 Construct BT-SOCK-ADDR-PublicApi-0036-001command39Construct |
|
1056 COMMAND TBTSockAddr1 Family BT-SOCK-ADDR-PublicApi-0036-001command40Family |
|
1057 COMMAND TBTSockAddr1 Port BT-SOCK-ADDR-PublicApi-0036-001command41Port |
|
1058 COMMAND TBTSockAddr1 BTAddr BT-SOCK-ADDR-PublicApi-0036-001command42BTAddr |
|
1059 END_TEST_BLOCK |
|
1060 END_TESTCASE BT-SOCK-ADDR-PublicApi-0036 |
|
1061 |
|
1062 |
|
1063 START_TESTCASE BT-SOCK-ADDR-PublicApi-0037 |
|
1064 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0037 |
|
1065 //! @SYMAPI TBTSockAddr |
|
1066 //! @SYMAuthor Johan Eriksson |
|
1067 //! @SYMCreationDate 10/03/2006 |
|
1068 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
1069 //! @SYMTestCaseDesc Scenario, set the port of the TBTSockAddr and verify it |
|
1070 //! Uses API elements: TBTSockAddr(), SetPort, CmpPort, SetFamily, Port |
|
1071 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
1072 //! 2. Set the port to a suitable value |
|
1073 //! 3. Call compare port (verify with family as default ) |
|
1074 //! 4. Set family to a suitable value |
|
1075 //! 5. Call compare port (verify with family as set) |
|
1076 //! 6. get and verify port value |
|
1077 //! @SYMTestStatus Implemented |
|
1078 //! @SYMTestPriority Critical |
|
1079 //! @SYMTestExpectedResults Same value set and retrieved |
|
1080 //! @SYMTestType CIT |
|
1081 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
1082 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
1083 CREATE_OBJECT TBTSockAddr TBTSockAddr2 |
|
1084 COMMAND TBTSockAddr1 Construct |
|
1085 COMMAND TBTSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0037-001command2SetPort |
|
1086 COMMAND TBTSockAddr2 Construct |
|
1087 COMMAND TBTSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0037-001command5SetPort |
|
1088 COMMAND TBTSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0037-001command6CmpPort |
|
1089 COMMAND TBTSockAddr2 SetFamily BT-SOCK-ADDR-PublicApi-0037-001command7SetFamily |
|
1090 COMMAND TBTSockAddr1 SetFamily BT-SOCK-ADDR-PublicApi-0037-001command9SetFamily |
|
1091 COMMAND TBTSockAddr1 CmpPort BT-SOCK-ADDR-PublicApi-0037-001command10CmpPort |
|
1092 COMMAND TBTSockAddr1 Port BT-SOCK-ADDR-PublicApi-0037-001command11Port |
|
1093 END_TEST_BLOCK |
|
1094 END_TESTCASE BT-SOCK-ADDR-PublicApi-0037 |
|
1095 |
|
1096 START_TESTCASE BT-SOCK-ADDR-PublicApi-0038 |
|
1097 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0038 |
|
1098 //! @SYMAPI TRfcommSockAddr |
|
1099 //! @SYMAuthor Johan Eriksson |
|
1100 //! @SYMCreationDate 10/03/2006 |
|
1101 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
1102 //! @SYMTestCaseDesc Scenario, set the port of the TRfcommSockAddr and verify it |
|
1103 //! Uses API elements: TRfcommSockAddr(), SetPort, CmpPort, SetFamily, Port |
|
1104 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
1105 //! 2. Set the port to a suitable value |
|
1106 //! 3. Call compare port (verify with family as default ) |
|
1107 //! 4. Set family to a suitable value |
|
1108 //! 5. Call compare port (verify with family as set) |
|
1109 //! 6. get and verify port value |
|
1110 //! @SYMTestStatus Implemented |
|
1111 //! @SYMTestPriority Critical |
|
1112 //! @SYMTestExpectedResults Both compares successful |
|
1113 //! @SYMTestType CIT |
|
1114 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
1115 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1116 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr2 |
|
1117 COMMAND TRfcommSockAddr1 Construct |
|
1118 COMMAND TRfcommSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0038-001command2SetPort |
|
1119 COMMAND TRfcommSockAddr2 Construct |
|
1120 COMMAND TRfcommSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0038-001command5SetPort |
|
1121 COMMAND TRfcommSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0038-001command6CmpPort |
|
1122 COMMAND TRfcommSockAddr2 SetFamily BT-SOCK-ADDR-PublicApi-0038-001command7SetFamily |
|
1123 COMMAND TRfcommSockAddr1 SetFamily BT-SOCK-ADDR-PublicApi-0038-001command9SetFamily |
|
1124 COMMAND TRfcommSockAddr1 CmpPort BT-SOCK-ADDR-PublicApi-0038-001command10CmpPort |
|
1125 COMMAND TRfcommSockAddr1 Port BT-SOCK-ADDR-PublicApi-0038-001command11Port |
|
1126 END_TEST_BLOCK |
|
1127 END_TESTCASE BT-SOCK-ADDR-PublicApi-0038 |
|
1128 |
|
1129 START_TESTCASE BT-SOCK-ADDR-PublicApi-0039 |
|
1130 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0039 |
|
1131 //! @SYMAPI TRfcommSockAddr |
|
1132 //! @SYMAuthor Johan Eriksson |
|
1133 //! @SYMCreationDate 10/03/2006 |
|
1134 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
1135 //! @SYMTestCaseDesc Verify same port but different family fails |
|
1136 //! Uses API elements: TRfcommSockAddr(), SetPort, CmpPort, SetFamily |
|
1137 //! @SYMTestActions 1. Create an empty TRfcommSockAddr object |
|
1138 //! 2. Set the port to a suitable value |
|
1139 //! 3. Call compare port (verify with family as default ) |
|
1140 //! 4. Set family to a suitable value |
|
1141 //! 5. Call compare port (verify with family different from set) |
|
1142 //! @SYMTestStatus Implemented |
|
1143 //! @SYMTestPriority Critical |
|
1144 //! @SYMTestExpectedResults Compare at step 5 fails |
|
1145 //! @SYMTestType CIT |
|
1146 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
1147 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1148 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr2 |
|
1149 COMMAND TRfcommSockAddr1 Construct |
|
1150 COMMAND TRfcommSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0039-001command2SetPort |
|
1151 COMMAND TRfcommSockAddr2 Construct |
|
1152 COMMAND TRfcommSockAddr2 SetPort BT-SOCK-ADDR-PublicApi-0039-001command5SetPort |
|
1153 COMMAND TRfcommSockAddr2 CmpPort BT-SOCK-ADDR-PublicApi-0039-001command6CmpPort |
|
1154 COMMAND TRfcommSockAddr2 SetFamily BT-SOCK-ADDR-PublicApi-0039-001command7SetFamily |
|
1155 COMMAND TRfcommSockAddr1 SetFamily BT-SOCK-ADDR-PublicApi-0039-001command9SetFamily |
|
1156 COMMAND TRfcommSockAddr1 CmpPort BT-SOCK-ADDR-PublicApi-0039-001command10CmpPort |
|
1157 COMMAND TRfcommSockAddr1 Port BT-SOCK-ADDR-PublicApi-0039-001command11Port |
|
1158 END_TEST_BLOCK |
|
1159 END_TESTCASE BT-SOCK-ADDR-PublicApi-0039 |
|
1160 |
|
1161 |
|
1162 START_TESTCASE BT-SOCK-ADDR-PublicApi-0040 |
|
1163 //! @SYMTestCaseID BT-SOCK-ADDR-PublicApi-0040 |
|
1164 //! @SYMAPI TRfcommSockAddr |
|
1165 //! @SYMAuthor Johan Eriksson |
|
1166 //! @SYMCreationDate 10/03/2006 |
|
1167 //! @SYMTestCaseDependencies setup_t_bluetooth.script |
|
1168 //! @SYMTestCaseDesc Verify that the TSock defined attributes gets copied by copy constructor |
|
1169 //! Uses API elements: TBTSockAddr: |
|
1170 //! SetPort, SetBTAddr |
|
1171 //! TRfcommSockAddr: |
|
1172 //! Family, Port, BTAddr |
|
1173 //! @SYMTestActions 1. Create an empty TBTSockAddr object |
|
1174 //! 2. Set the port to a suitable value |
|
1175 //! 3. Set family to a suitable value (not done as it is set to 257 by copy construct as it is Bluetooth) |
|
1176 //! 4. Set bluetooth address to a suitable value |
|
1177 //! 5. Construct a TRfcommSockAddr object based on the TBTSockAddr object |
|
1178 //! 6. Verify that the family value is 257 |
|
1179 //! 7. Verify that the port value is as set |
|
1180 //! 8. Verify that the address value is as set |
|
1181 //! @SYMTestStatus Implemented |
|
1182 //! @SYMTestPriority Critical |
|
1183 //! @SYMTestExpectedResults All attributes have the same value as set in original object |
|
1184 //! @SYMTestType CIT |
|
1185 START_TEST_BLOCK 10 T_BTSockAddrAPI \bluetooth\BT-SOCK-ADDR-PublicApi.ini |
|
1186 CREATE_OBJECT TBTSockAddr TBTSockAddr1 |
|
1187 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
1188 COMMAND TBTSockAddr1 Construct |
|
1189 COMMAND TBTSockAddr1 SetPort BT-SOCK-ADDR-PublicApi-0040-001command2SetPort |
|
1190 COMMAND TBTSockAddr1 SetBTAddr BT-SOCK-ADDR-PublicApi-0040-001command3SetBTAddr |
|
1191 COMMAND TRfcommSockAddr1 Construct BT-SOCK-ADDR-PublicApi-0040-001command5Construct |
|
1192 COMMAND TRfcommSockAddr1 Family BT-SOCK-ADDR-PublicApi-0040-001command6Family |
|
1193 COMMAND TRfcommSockAddr1 Port BT-SOCK-ADDR-PublicApi-0040-001command7Port |
|
1194 COMMAND TRfcommSockAddr1 BTAddr BT-SOCK-ADDR-PublicApi-0040-001command8BTAddr |
|
1195 END_TEST_BLOCK |
|
1196 END_TESTCASE BT-SOCK-ADDR-PublicApi-0040 |
|
1197 |
|
1198 |
|
1199 DELAY 2000 |