|
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_BTSdpAPI |
|
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
20 //! @SYMScriptDescription Tests all public elements of the CSdpAgent class |
|
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 SDP 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 Symbio |
|
27 //! @SYMCreationDate 01/12/2006 |
|
28 /////////////////////////////////////////////////////////////////////////////// |
|
29 |
|
30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\ |
|
31 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\sdp\ |
|
32 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\sdp\T_SdpAgent\ |
|
33 |
|
34 LOAD_SUITE T_BTSdpAPI -SharedData |
|
35 DELAY 500 |
|
36 |
|
37 // **************************************************************************** |
|
38 // Set up BT Addresses |
|
39 // **************************************************************************** |
|
40 |
|
41 START_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses |
|
42 |
|
43 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001 |
|
44 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
45 SHARED_ACTIVE_SCHEDULER |
|
46 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
47 CREATE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
48 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
49 COMMAND CBluetoothSocket1 NewL BTSDP-Database-PublicApi-Active-SetBTAddresses-0001command2NewL |
|
50 COMMAND TBTServiceSecurity1 Construct |
|
51 STORE CBluetoothSocket1 |
|
52 STORE TBTServiceSecurity1 |
|
53 STORE_ACTIVE_SCHEDULER |
|
54 END_TEST_BLOCK |
|
55 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001 |
|
56 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses-0002 |
|
57 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
58 SHARED_ACTIVE_SCHEDULER |
|
59 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
60 CREATE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
61 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
62 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
63 COMMAND TBTDevAddrRemote Construct |
|
64 COMMAND TBTDevAddrRemote OpenHostResolver BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command3OpenHostResolver |
|
65 COMMAND TBTDevAddrRemote SetHostNameL BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command4SetHostNameL |
|
66 COMMAND TBTDevAddrRemote GetDeviceAddress BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command5GetDeviceAddress |
|
67 OUTSTANDING |
|
68 COMMAND TRfcommSockAddr1 Construct |
|
69 COMMAND TRfcommSockAddr1 SetSecurity BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command8SetSecurity |
|
70 COMMAND TRfcommSockAddr1 SetBTAddr BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command9SetBTAddr |
|
71 COMMAND TRfcommSockAddr1 BTAddr BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command10BTAddr |
|
72 COMMAND TRfcommSockAddr1 SetPort BTSDP-Database-PublicApi-Active-SetBTAddresses-0002command11SetPort |
|
73 STORE CBluetoothSocket1 |
|
74 STORE TBTServiceSecurity1 |
|
75 STORE TBTDevAddrRemote |
|
76 END_TEST_BLOCK |
|
77 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses-0002 |
|
78 END_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses |
|
79 |
|
80 |
|
81 // **************************************************************************** |
|
82 // CSdpAgent Tests |
|
83 // **************************************************************************** |
|
84 |
|
85 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3601 |
|
86 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3601 |
|
87 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
88 //! |
|
89 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
90 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
91 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
92 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
93 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
94 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
95 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
96 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
97 //! 2. Add some attribute ids into the idmatchlist |
|
98 //! 3. Construct a CSdpSearchPattern object |
|
99 //! 4. Add service UUID into searchpattern |
|
100 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
101 //! Verify the resulting err code is KErrNone. |
|
102 //! 6. Set the service record filter with the serchpattern |
|
103 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
104 //! Verify the resulting err code is KErrNone. |
|
105 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
106 //! Verify the number of service records being found. |
|
107 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
108 //! Verify the resulting err code is KErrNone. |
|
109 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
110 //! the result of attribute request comes back in the form of a list. |
|
111 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
112 //! Verify the resulting err code is KErrNone. |
|
113 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
114 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
115 //! |
|
116 //! @SYMTestStatus Implemented |
|
117 //! @SYMTestPriority Critical |
|
118 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
119 //! @SYMTestType CIT |
|
120 |
|
121 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3661-0001 |
|
122 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
123 SHARED_ACTIVE_SCHEDULER |
|
124 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
125 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
126 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
127 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
128 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
129 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
130 COMMAND TBTSearchpattern1 NewL |
|
131 COMMAND TBTSearchpattern1 ConstructL |
|
132 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3601-0001command4AddL |
|
133 COMMAND TBTAttrValueDES1 NewDESL |
|
134 COMMAND TBTSdpagent NewL BTSDP-Database-PublicApi-Active-3601-0001command8NewL |
|
135 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3601-0001command9SetRecordFilterL |
|
136 COMMAND TBTSdpagent NextRecordRequestL |
|
137 OUTSTANDING 1000000 |
|
138 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3601-0001command12AttributeRequestL |
|
139 OUTSTANDING 1000000 |
|
140 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-Database-PublicApi-Active-3601-0001command15AppendValueL |
|
141 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3601-0001command16AcceptVisitorL |
|
142 STORE CBluetoothSocket1 |
|
143 STORE TBTServiceSecurity1 |
|
144 STORE TBTDevAddrRemote |
|
145 STORE_ACTIVE_SCHEDULER |
|
146 END_TEST_BLOCK |
|
147 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3661-0001 |
|
148 |
|
149 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3661-0002 |
|
150 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3661-0002 |
|
151 |
|
152 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3601 |
|
153 |
|
154 |
|
155 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3602 |
|
156 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3602 |
|
157 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier |
|
158 //! |
|
159 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
160 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
161 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
162 //! NewDESL() from CSdpAttrValueDES |
|
163 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
164 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
165 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
166 //! |
|
167 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
168 //! 2. Add some attribute ids into the idmatchlist |
|
169 //! 3. Construct a CSdpSearchPattern object |
|
170 //! 4. Add service UUID into searchpattern |
|
171 //! 5. Construct a CSdpAttrValueDES to hold attribute search result of step 12 |
|
172 //! 6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
173 //! Verify the resulting err code is KErrNone. |
|
174 //! 7. Set the service record filter with the serchpattern |
|
175 //! 8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
176 //! Verify the resulting err code is KErrNone. |
|
177 //! 9. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
178 //! Verify that the service record has been retrieved. |
|
179 //! 10. Search for service attributes of the service we've found using the attridmatchlist. |
|
180 //! Verify the resulting err code is KErrNone. |
|
181 //! 11. The call back functions AttributeRequestComplete() is executed when |
|
182 //! the result of attribute request comes back. Result will be put into CSdpAttrValueDES object. |
|
183 //! 12. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. |
|
184 //! Verify the resulting err code is KErrNone. |
|
185 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
186 //! |
|
187 //! @SYMTestStatus Implemented |
|
188 //! @SYMTestPriority Critical |
|
189 //! @SYMTestExpectedResults CSdpAgent object was created successfully |
|
190 //! @SYMTestType CIT |
|
191 |
|
192 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3662-0001 |
|
193 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
194 SHARED_ACTIVE_SCHEDULER |
|
195 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
196 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
197 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
198 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
199 CREATE_OBJECT CSdpAttrIdMatchList TBTAttridmatchlist1 |
|
200 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
201 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
202 COMMAND TBTAttridmatchlist1 NewL |
|
203 COMMAND TBTAttridmatchlist1 AddL BTSDP-Database-PublicApi-Active-3602-0001command3AddL |
|
204 COMMAND TBTAttridmatchlist1 AddL BTSDP-Database-PublicApi-Active-3602-0001command4AddL |
|
205 COMMAND TBTSearchpattern1 NewL |
|
206 COMMAND TBTSearchpattern1 ConstructL |
|
207 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3602-0001command8AddL |
|
208 COMMAND TBTAttrValueDES1 NewDESL |
|
209 COMMAND TBTSdpagent NewL BTSDP-Database-PublicApi-Active-3602-0001command12NewL |
|
210 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3602-0001command13SetRecordFilterL |
|
211 COMMAND TBTSdpagent NextRecordRequestL |
|
212 OUTSTANDING 1000000 |
|
213 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3602-0001command16AttributeRequestL |
|
214 OUTSTANDING 1000000 |
|
215 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3602-0001command19AcceptVisitorL |
|
216 STORE CBluetoothSocket1 |
|
217 STORE TBTServiceSecurity1 |
|
218 STORE TBTDevAddrRemote |
|
219 STORE_ACTIVE_SCHEDULER |
|
220 END_TEST_BLOCK |
|
221 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3662-0001 |
|
222 |
|
223 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3662-0002 |
|
224 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3662-0002 |
|
225 |
|
226 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3602 |
|
227 |
|
228 |
|
229 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3603 |
|
230 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3603 |
|
231 //! @SYMAPI CSdpAgent, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
232 //! |
|
233 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
234 //! Uses API elements: NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
235 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
236 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
237 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
238 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
239 //! @SYMTestActions 1. Construct a CSdpSearchPattern object |
|
240 //! 2. Add service UUID into searchpattern |
|
241 //! 3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
242 //! Verify the resulting err code is KErrNone. |
|
243 //! 4. Set the service record filter with the serchpattern |
|
244 //! 5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
245 //! Verify the resulting err code is KErrNone. |
|
246 //! 6. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
247 //! Verify that the service record has been retrieved. |
|
248 //! 7. Search for a particular service attribute of the service |
|
249 //! 8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
250 //! the result of attribute request comes back in the form of a list. |
|
251 //! 9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
252 //! Verify the resulting err code is KErrNone. |
|
253 //! 10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
254 //! 11. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
255 //! |
|
256 //! @SYMTestStatus Implemented |
|
257 //! @SYMTestPriority Critical |
|
258 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
259 //! @SYMTestType CIT |
|
260 |
|
261 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3663-0001 |
|
262 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
263 SHARED_ACTIVE_SCHEDULER |
|
264 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
265 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
266 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
267 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
268 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
269 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
270 COMMAND TBTSearchpattern1 NewL |
|
271 COMMAND TBTSearchpattern1 ConstructL |
|
272 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3603-0001command4AddL |
|
273 COMMAND TBTAttrValueDES1 NewDESL |
|
274 COMMAND TBTSdpagent NewL BTSDP-Database-PublicApi-Active-3603-0001command8NewL |
|
275 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3603-0001command9SetRecordFilterL |
|
276 COMMAND TBTSdpagent NextRecordRequestL |
|
277 OUTSTANDING 1000000 |
|
278 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3603-0001command12AttributeRequestL |
|
279 OUTSTANDING 1000000 |
|
280 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-Database-PublicApi-Active-3603-0001command15AppendValueL |
|
281 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3603-0001command16AcceptVisitorL |
|
282 STORE CBluetoothSocket1 |
|
283 STORE TBTServiceSecurity1 |
|
284 STORE TBTDevAddrRemote |
|
285 STORE_ACTIVE_SCHEDULER |
|
286 END_TEST_BLOCK |
|
287 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3663-0001 |
|
288 |
|
289 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3663-0002 |
|
290 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3663-0002 |
|
291 |
|
292 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3603 |
|
293 |
|
294 |
|
295 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3604 |
|
296 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3604 |
|
297 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier |
|
298 //! |
|
299 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
300 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
301 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
302 //! NewDESL() from CSdpAttrValueDES |
|
303 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
304 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
305 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
306 //! |
|
307 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
308 //! 2. Add some attribute ids into the idmatchlist |
|
309 //! 3. Construct a CSdpSearchPattern object |
|
310 //! 4. Add service UUID into searchpattern |
|
311 //! 5. Construct a CSdpAttrValueDES to hold attribute search result of step 12 |
|
312 //! 6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
313 //! Verify the resulting err code is KErrNone. |
|
314 //! 7. Set the service record filter with the serchpattern |
|
315 //! 8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
316 //! Verify the resulting err code is KErrNone. |
|
317 //! 9. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
318 //! Verify that the service record has been retrieved. |
|
319 //! 10. Search for a particular service attribute of the service we've found |
|
320 //! Verify the resulting err code is KErrNone. |
|
321 //! 11. The call back functions AttributeRequestComplete() is executed when |
|
322 //! the result of attribute request comes back. Result will be put into CSdpAttrValueDES object. |
|
323 //! 12. AcceptVisitorL() is called on the attribute we've got. |
|
324 //! Verify the resulting err code is KErrNone. |
|
325 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
326 //! |
|
327 //! @SYMTestStatus Implemented |
|
328 //! @SYMTestPriority Critical |
|
329 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
330 //! @SYMTestType CIT |
|
331 |
|
332 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3664-0001 |
|
333 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
334 SHARED_ACTIVE_SCHEDULER |
|
335 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
336 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
337 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
338 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
339 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
340 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
341 COMMAND TBTSearchpattern1 NewL |
|
342 COMMAND TBTSearchpattern1 ConstructL |
|
343 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3604-0001command4AddL |
|
344 COMMAND TBTAttrValueDES1 NewDESL |
|
345 COMMAND TBTSdpagent NewL BTSDP-Database-PublicApi-Active-3604-0001command8NewL |
|
346 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3604-0001command9SetRecordFilterL |
|
347 COMMAND TBTSdpagent NextRecordRequestL |
|
348 OUTSTANDING 1000000 |
|
349 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3604-0001command12AttributeRequestL |
|
350 OUTSTANDING 1000000 |
|
351 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3604-0001command15AcceptVisitorL |
|
352 STORE CBluetoothSocket1 |
|
353 STORE TBTServiceSecurity1 |
|
354 STORE TBTDevAddrRemote |
|
355 STORE_ACTIVE_SCHEDULER |
|
356 END_TEST_BLOCK |
|
357 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3664-0001 |
|
358 |
|
359 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3664-0002 |
|
360 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3664-0002 |
|
361 |
|
362 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3604 |
|
363 |
|
364 |
|
365 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3605 |
|
366 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3605 |
|
367 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
368 //! |
|
369 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
370 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
371 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
372 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
373 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
374 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL(), SetAttributePredictorListL() from CSdpAgent |
|
375 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
376 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
377 //! 2. Add some attribute ids into the attridmatchlist |
|
378 //! 3. Construct a CSdpSearchPattern object |
|
379 //! 4. Add service UUID into searchpattern |
|
380 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
381 //! Verify the resulting err code is KErrNone. |
|
382 //! 6. Set the service record filter with the serchpattern |
|
383 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
384 //! Verify the resulting err code is KErrNone. |
|
385 //! 8. Set the predictor list with the attridmatchlist of step 1 |
|
386 //! 9. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
387 //! Verify that the service record has been retrieved. |
|
388 //! 10. Search for a particular service attribute of the service |
|
389 //! Verify the resulting err code is KErrNone. |
|
390 //! 11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
391 //! the result of attribute request comes back in the form of a list. |
|
392 //! 12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
393 //! Verify the resulting err code is KErrNone. |
|
394 //! 13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
395 //! 14. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
396 //! |
|
397 //! @SYMTestStatus Implemented |
|
398 //! @SYMTestPriority High |
|
399 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
400 //! @SYMTestType CIT |
|
401 |
|
402 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3665-0001 |
|
403 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
404 SHARED_ACTIVE_SCHEDULER |
|
405 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
406 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
407 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
408 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
409 CREATE_OBJECT CSdpAttrIdMatchList TBTAttridmatchlist1 |
|
410 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
411 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
412 COMMAND TBTAttridmatchlist1 NewL |
|
413 COMMAND TBTAttridmatchlist1 AddL BTSDP-Database-PublicApi-Active-3605-0001command3AddL |
|
414 COMMAND TBTAttridmatchlist1 AddL BTSDP-Database-PublicApi-Active-3605-0001command4AddL |
|
415 COMMAND TBTSearchpattern1 NewL |
|
416 COMMAND TBTSearchpattern1 ConstructL |
|
417 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3605-0001command8AddL |
|
418 COMMAND TBTAttrValueDES1 NewDESL |
|
419 COMMAND TBTSdpagent NewL BTSDP-Database-PublicApi-Active-3605-0001command12NewL |
|
420 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3605-0001command13SetRecordFilterL |
|
421 COMMAND TBTSdpagent NextRecordRequestL |
|
422 OUTSTANDING 1000000 |
|
423 COMMAND TBTSdpagent SetAttributePredictorListL BTSDP-Database-PublicApi-Active-3605-0001command16SetAttributePredictorListL |
|
424 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3605-0001command17AttributeRequestL |
|
425 OUTSTANDING 1000000 |
|
426 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3605-0001command20AcceptVisitorL |
|
427 STORE CBluetoothSocket1 |
|
428 STORE TBTServiceSecurity1 |
|
429 STORE TBTDevAddrRemote |
|
430 STORE_ACTIVE_SCHEDULER |
|
431 END_TEST_BLOCK |
|
432 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3665-0001 |
|
433 |
|
434 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3665-0002 |
|
435 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3665-0002 |
|
436 |
|
437 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3605 |
|
438 |
|
439 |
|
440 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3606 |
|
441 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3606 |
|
442 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAgentNotifier |
|
443 //! |
|
444 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
445 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
446 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
447 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
448 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
449 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL(), SetAttributePredictorListL() from CSdpAgent |
|
450 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
451 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
452 //! 2. Add some attribute ids into the attridmatchlist |
|
453 //! 3. Construct a CSdpSearchPattern object |
|
454 //! 4. Add service UUID into searchpattern |
|
455 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
456 //! Verify the resulting err code is KErrNone. |
|
457 //! 6. Set the service record filter with the serchpattern |
|
458 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
459 //! Verify the resulting err code is KErrNone. |
|
460 //! 8. Set the predictor list with the attridmatchlist of step 1 |
|
461 //! 9. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
462 //! Verify that the service record has been retrieved. |
|
463 //! 10. Search for a particular service attribute of the service |
|
464 //! Verify the resulting err code is KErrNone. |
|
465 //! 11. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
466 //! the result of attribute request comes back in the form of a list. |
|
467 //! 12. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
468 //! Verify the resulting err code is KErrNone. |
|
469 //! 13. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
470 //! 14. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
471 //! |
|
472 //! @SYMTestStatus Implemented |
|
473 //! @SYMTestPriority Medium |
|
474 //! @SYMTestExpectedResults Service record is found as expected. AttributeRequest is cancelled as expected. |
|
475 //! @SYMTestType CIT |
|
476 |
|
477 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3666-0001 |
|
478 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
479 SHARED_ACTIVE_SCHEDULER |
|
480 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
481 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
482 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
483 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
484 CREATE_OBJECT CSdpAttrIdMatchList TBTAttridmatchlist1 |
|
485 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
486 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
487 COMMAND TBTAttridmatchlist1 NewL |
|
488 COMMAND TBTAttridmatchlist1 AddL BTSDP-Database-PublicApi-Active-3606-0001command3AddL |
|
489 COMMAND TBTAttridmatchlist1 AddL BTSDP-Database-PublicApi-Active-3606-0001command4AddL |
|
490 COMMAND TBTSearchpattern1 NewL |
|
491 COMMAND TBTSearchpattern1 ConstructL |
|
492 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3606-0001command8AddL |
|
493 COMMAND TBTAttrValueDES1 NewDESL |
|
494 COMMAND TBTSdpagent NewL BTSDP-Database-PublicApi-Active-3606-0001command12NewL |
|
495 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3606-0001command13SetRecordFilterL |
|
496 COMMAND TBTSdpagent NextRecordRequestL |
|
497 OUTSTANDING 1000000 |
|
498 COMMAND TBTSdpagent SetAttributePredictorListL BTSDP-Database-PublicApi-Active-3606-0001command16SetAttributePredictorListL |
|
499 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3606-0001command17AttributeRequestL |
|
500 OUTSTANDING 1000000 |
|
501 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3606-0001command20AcceptVisitorL |
|
502 STORE CBluetoothSocket1 |
|
503 STORE TBTServiceSecurity1 |
|
504 STORE TBTDevAddrRemote |
|
505 STORE_ACTIVE_SCHEDULER |
|
506 END_TEST_BLOCK |
|
507 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3666-0001 |
|
508 |
|
509 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3666-0002 |
|
510 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3666-0002 |
|
511 |
|
512 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3606 |
|
513 |
|
514 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3607 |
|
515 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3607 |
|
516 //! @SYMAPI CSdpAgent, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
517 //! |
|
518 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
519 //! Uses API elements: NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
520 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
521 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
522 //! NewLC(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
523 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
524 //! @SYMTestActions 1. Construct a CSdpSearchPattern object |
|
525 //! 2. Add service UUID into searchpattern |
|
526 //! 3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
527 //! Verify the resulting err code is KErrNone. |
|
528 //! 4. Set the service record filter with the serchpattern |
|
529 //! 5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
530 //! Verify the resulting err code is KErrNone. |
|
531 //! 6. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
532 //! Verify that the service record has been retrieved. |
|
533 //! 7. Search for a particular service attribute of the service |
|
534 //! 8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
535 //! the result of attribute request comes back in the form of a list. |
|
536 //! 9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
537 //! Verify the resulting err code is KErrNone. |
|
538 //! 10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
539 //! 11. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
540 //! |
|
541 //! @SYMTestStatus Implemented |
|
542 //! @SYMTestPriority Critical |
|
543 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
544 //! @SYMTestType CIT |
|
545 |
|
546 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3667-0001 |
|
547 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
548 SHARED_ACTIVE_SCHEDULER |
|
549 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
550 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
551 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
552 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
553 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
554 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
555 COMMAND TBTSearchpattern1 NewL |
|
556 COMMAND TBTSearchpattern1 ConstructL |
|
557 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3607-0001command4AddL |
|
558 COMMAND TBTAttrValueDES1 NewDESL |
|
559 COMMAND TBTSdpagent NewLC BTSDP-Database-PublicApi-Active-3607-0001command8NewLC |
|
560 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3607-0001command9SetRecordFilterL |
|
561 COMMAND TBTSdpagent NextRecordRequestL |
|
562 OUTSTANDING 1000000 |
|
563 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3607-0001command12AttributeRequestL |
|
564 OUTSTANDING 1000000 |
|
565 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-Database-PublicApi-Active-3607-0001command15AppendValueL |
|
566 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3607-0001command16AcceptVisitorL |
|
567 STORE CBluetoothSocket1 |
|
568 STORE TBTServiceSecurity1 |
|
569 STORE TBTDevAddrRemote |
|
570 STORE_ACTIVE_SCHEDULER |
|
571 END_TEST_BLOCK |
|
572 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3667-0001 |
|
573 |
|
574 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3667-0002 |
|
575 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3667-0002 |
|
576 |
|
577 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3607 |
|
578 |
|
579 |
|
580 START_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3608 |
|
581 //! @SYMTestCaseID BTSDP-Database-PublicApi-Active-Slave-3608 |
|
582 //! @SYMAPI CSdpAgent |
|
583 //! |
|
584 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
585 //! Uses API elements: NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
586 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
587 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
588 //! NewLC(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
589 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
590 //! @SYMTestActions 1. Construct a CSdpSearchPattern object |
|
591 //! 2. Add service UUID into searchpattern |
|
592 //! 3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
593 //! Verify the resulting err code is KErrNone. |
|
594 //! 4. Set the service record filter with the serchpattern |
|
595 //! 5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
596 //! Verify the resulting err code is KErrNone. |
|
597 //! 6. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
598 //! Verify that the service record has been retrieved. |
|
599 //! 7. Search for a particular service attribute of the service |
|
600 //! 8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
601 //! the result of attribute request comes back in the form of a list. |
|
602 //! 9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
603 //! Verify the resulting err code is KErrNone. |
|
604 //! 10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
605 //! 11. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
606 //! |
|
607 //! @SYMTestStatus Implemented |
|
608 //! @SYMTestPriority Low |
|
609 //! @SYMTestExpectedResults Function is executed without error |
|
610 //! @SYMTestType CIT |
|
611 |
|
612 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3668-0001 |
|
613 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
614 SHARED_ACTIVE_SCHEDULER |
|
615 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
616 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
617 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
618 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
619 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
620 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
621 COMMAND TBTSearchpattern1 NewL |
|
622 COMMAND TBTSearchpattern1 ConstructL |
|
623 COMMAND TBTSearchpattern1 AddL BTSDP-Database-PublicApi-Active-3608-0001command4AddL |
|
624 COMMAND TBTAttrValueDES1 NewDESL |
|
625 COMMAND TBTSdpagent NewLC BTSDP-Database-PublicApi-Active-3608-0001command8NewLC |
|
626 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Database-PublicApi-Active-3608-0001command9SetRecordFilterL |
|
627 COMMAND TBTSdpagent NextRecordRequestL |
|
628 OUTSTANDING 1000000 |
|
629 COMMAND TBTSdpagent AttributeRequestL BTSDP-Database-PublicApi-Active-3608-0001command12AttributeRequestL |
|
630 OUTSTANDING 1000000 |
|
631 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-Database-PublicApi-Active-3608-0001command15AppendValueL |
|
632 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Database-PublicApi-Active-3608-0001command16AcceptVisitorL |
|
633 STORE CBluetoothSocket1 |
|
634 STORE TBTServiceSecurity1 |
|
635 STORE TBTDevAddrRemote |
|
636 STORE_ACTIVE_SCHEDULER |
|
637 END_TEST_BLOCK |
|
638 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3668-0001 |
|
639 |
|
640 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3668-0002 |
|
641 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3668-0002 |
|
642 |
|
643 END_TESTCASE BTSDP-Database-PublicApi-Active-Slave-3608 |
|
644 |
|
645 // **************************************************************************** |
|
646 // RSdp Tests |
|
647 // **************************************************************************** |
|
648 |
|
649 START_TESTCASE BTSDP-Rsdp-PublicApi-Active-Slave-3701 |
|
650 //! @SYMTestCaseID BTSDP-Rsdp-PublicApi-Active-Slave-3701 |
|
651 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
652 //! |
|
653 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
654 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
655 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
656 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
657 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
658 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
659 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
660 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
661 //! 2. Add some attribute ids into the idmatchlist |
|
662 //! 3. Construct a CSdpSearchPattern object |
|
663 //! 4. Add service UUID into searchpattern |
|
664 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
665 //! Verify the resulting err code is KErrNone. |
|
666 //! 6. Set the service record filter with the serchpattern |
|
667 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
668 //! Verify the resulting err code is KErrNone. |
|
669 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
670 //! Verify the number of service records being found. |
|
671 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
672 //! Verify the resulting err code is KErrNone. |
|
673 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
674 //! the result of attribute request comes back in the form of a list. |
|
675 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
676 //! Verify the resulting err code is KErrNone. |
|
677 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
678 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
679 //! |
|
680 //! @SYMTestStatus Implemented |
|
681 //! @SYMTestPriority Critical |
|
682 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
683 //! @SYMTestType CIT |
|
684 |
|
685 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3761-0001 |
|
686 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
687 SHARED_ACTIVE_SCHEDULER |
|
688 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
689 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
690 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
691 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
692 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
693 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
694 COMMAND TBTSearchpattern1 NewL |
|
695 COMMAND TBTSearchpattern1 ConstructL |
|
696 COMMAND TBTSearchpattern1 AddL BTSDP-Rsdp-PublicApi-Active-3701-0001command4AddL |
|
697 COMMAND TBTAttrValueDES1 NewDESL |
|
698 COMMAND TBTSdpagent NewL BTSDP-Rsdp-PublicApi-Active-3701-0001command8NewL |
|
699 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Rsdp-PublicApi-Active-3701-0001command9SetRecordFilterL |
|
700 COMMAND TBTSdpagent NextRecordRequestL |
|
701 OUTSTANDING 1000000 |
|
702 COMMAND TBTSdpagent AttributeRequestL BTSDP-Rsdp-PublicApi-Active-3701-0001command12AttributeRequestL |
|
703 OUTSTANDING 1000000 |
|
704 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-Rsdp-PublicApi-Active-3701-0001command15AppendValueL |
|
705 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Rsdp-PublicApi-Active-3701-0001command16AcceptVisitorL |
|
706 STORE CBluetoothSocket1 |
|
707 STORE TBTServiceSecurity1 |
|
708 STORE TBTDevAddrRemote |
|
709 STORE_ACTIVE_SCHEDULER |
|
710 END_TEST_BLOCK |
|
711 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3761-0001 |
|
712 |
|
713 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3761-0002 |
|
714 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3761-0002 |
|
715 |
|
716 END_TESTCASE BTSDP-Rsdp-PublicApi-Active-Slave-3701 |
|
717 |
|
718 |
|
719 START_TESTCASE BTSDP-Rsdp-PublicApi-Active-Slave-3702 |
|
720 //! @SYMTestCaseID BTSDP-Rsdp-PublicApi-Active-Slave-3702 |
|
721 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, CSdpAttrValueDES, MSdpAttributeValueVisitor, MSdpAgentNotifier |
|
722 //! |
|
723 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
724 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
725 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
726 //! NewDESL() from CSdpAttrValueDES |
|
727 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
728 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
729 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
730 //! |
|
731 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
732 //! 2. Add some attribute ids into the idmatchlist |
|
733 //! 3. Construct a CSdpSearchPattern object |
|
734 //! 4. Add service UUID into searchpattern |
|
735 //! 5. Construct a CSdpAttrValueDES to hold attribute search result of step 12 |
|
736 //! 6. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
737 //! Verify the resulting err code is KErrNone. |
|
738 //! 7. Set the service record filter with the serchpattern |
|
739 //! 8. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
740 //! Verify the resulting err code is KErrNone. |
|
741 //! 9. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
742 //! Verify that the service record has been retrieved. |
|
743 //! 10. Search for service attributes of the service we've found using the attridmatchlist. |
|
744 //! Verify the resulting err code is KErrNone. |
|
745 //! 11. The call back functions AttributeRequestComplete() is executed when |
|
746 //! the result of attribute request comes back. Result will be put into CSdpAttrValueDES object. |
|
747 //! 12. AcceptVisitorL() is called on the CSdpAttrValueDES object to get the attribute values. |
|
748 //! Verify the resulting err code is KErrNone. |
|
749 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
750 //! |
|
751 //! @SYMTestStatus Implemented |
|
752 //! @SYMTestPriority Critical |
|
753 //! @SYMTestExpectedResults CSdpAgent object was created successfully |
|
754 //! @SYMTestType CIT |
|
755 |
|
756 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3762-0001 |
|
757 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
758 SHARED_ACTIVE_SCHEDULER |
|
759 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
760 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
761 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
762 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
763 CREATE_OBJECT CSdpAttrIdMatchList TBTAttridmatchlist1 |
|
764 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
765 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
766 COMMAND TBTAttridmatchlist1 NewL |
|
767 COMMAND TBTAttridmatchlist1 AddL BTSDP-Rsdp-PublicApi-Active-3702-0001command3AddL |
|
768 COMMAND TBTAttridmatchlist1 AddL BTSDP-Rsdp-PublicApi-Active-3702-0001command4AddL |
|
769 COMMAND TBTSearchpattern1 NewL |
|
770 COMMAND TBTSearchpattern1 ConstructL |
|
771 COMMAND TBTSearchpattern1 AddL BTSDP-Rsdp-PublicApi-Active-3702-0001command8AddL |
|
772 COMMAND TBTAttrValueDES1 NewDESL |
|
773 COMMAND TBTSdpagent NewL BTSDP-Rsdp-PublicApi-Active-3702-0001command12NewL |
|
774 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Rsdp-PublicApi-Active-3702-0001command13SetRecordFilterL |
|
775 COMMAND TBTSdpagent NextRecordRequestL |
|
776 OUTSTANDING 1000000 |
|
777 COMMAND TBTSdpagent AttributeRequestL BTSDP-Rsdp-PublicApi-Active-3702-0001command16AttributeRequestL |
|
778 OUTSTANDING 1000000 |
|
779 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Rsdp-PublicApi-Active-3702-0001command19AcceptVisitorL |
|
780 STORE CBluetoothSocket1 |
|
781 STORE TBTServiceSecurity1 |
|
782 STORE TBTDevAddrRemote |
|
783 STORE_ACTIVE_SCHEDULER |
|
784 END_TEST_BLOCK |
|
785 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3762-0001 |
|
786 |
|
787 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3762-0002 |
|
788 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3762-0002 |
|
789 |
|
790 END_TESTCASE BTSDP-Rsdp-PublicApi-Active-Slave-3702 |
|
791 |
|
792 |
|
793 START_TESTCASE BTSDP-Rsdp-PublicApi-Active-Slave-3703 |
|
794 //! @SYMTestCaseID BTSDP-Rsdp-PublicApi-Active-Slave-3703 |
|
795 //! @SYMAPI CSdpAgent, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
796 //! |
|
797 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
798 //! Uses API elements: NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
799 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
800 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
801 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
802 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
803 //! @SYMTestActions 1. Construct a CSdpSearchPattern object |
|
804 //! 2. Add service UUID into searchpattern |
|
805 //! 3. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object |
|
806 //! Verify the resulting err code is KErrNone. |
|
807 //! 4. Set the service record filter with the serchpattern |
|
808 //! 5. Call NextRecordRequestL() to get service record of slave device which matches the search pattern |
|
809 //! Verify the resulting err code is KErrNone. |
|
810 //! 6. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
811 //! Verify that the service record has been retrieved. |
|
812 //! 7. Search for a particular service attribute of the service |
|
813 //! 8. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
814 //! the result of attribute request comes back in the form of a list. |
|
815 //! 9. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
816 //! Verify the resulting err code is KErrNone. |
|
817 //! 10. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
818 //! 11. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
819 //! |
|
820 //! @SYMTestStatus Implemented |
|
821 //! @SYMTestPriority Critical |
|
822 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
823 //! @SYMTestType CIT |
|
824 |
|
825 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3763-0001 |
|
826 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
827 SHARED_ACTIVE_SCHEDULER |
|
828 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
829 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
830 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
831 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
832 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
833 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
834 COMMAND TBTSearchpattern1 NewL |
|
835 COMMAND TBTSearchpattern1 ConstructL |
|
836 COMMAND TBTSearchpattern1 AddL BTSDP-Rsdp-PublicApi-Active-3703-0001command4AddL |
|
837 COMMAND TBTAttrValueDES1 NewDESL |
|
838 COMMAND TBTSdpagent NewL BTSDP-Rsdp-PublicApi-Active-3703-0001command8NewL |
|
839 COMMAND TBTSdpagent SetRecordFilterL BTSDP-Rsdp-PublicApi-Active-3703-0001command9SetRecordFilterL |
|
840 COMMAND TBTSdpagent NextRecordRequestL |
|
841 OUTSTANDING 1000000 |
|
842 COMMAND TBTSdpagent AttributeRequestL BTSDP-Rsdp-PublicApi-Active-3703-0001command12AttributeRequestL |
|
843 OUTSTANDING 1000000 |
|
844 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-Rsdp-PublicApi-Active-3703-0001command15AppendValueL |
|
845 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-Rsdp-PublicApi-Active-3703-0001command16AcceptVisitorL |
|
846 STORE CBluetoothSocket1 |
|
847 STORE TBTServiceSecurity1 |
|
848 STORE TBTDevAddrRemote |
|
849 END_TEST_BLOCK |
|
850 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3763-0001 |
|
851 |
|
852 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3763-0002 |
|
853 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3763-0002 |
|
854 |
|
855 END_TESTCASE BTSDP-Rsdp-PublicApi-Active-Slave-3703 |
|
856 |
|
857 |
|
858 // **************************************************************************** |
|
859 // CSdpAttrValueInt Tests |
|
860 // **************************************************************************** |
|
861 |
|
862 START_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3801 |
|
863 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Active-Slave-3801 |
|
864 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
865 //! |
|
866 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
867 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
868 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
869 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
870 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
871 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
872 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
873 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
874 //! 2. Add some attribute ids into the idmatchlist |
|
875 //! 3. Construct a CSdpSearchPattern object |
|
876 //! 4. Add service UUID into searchpattern |
|
877 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
878 //! Verify the resulting err code is KErrNone. |
|
879 //! 6. Set the service record filter with the serchpattern |
|
880 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
881 //! Verify the resulting err code is KErrNone. |
|
882 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
883 //! Verify the number of service records being found. |
|
884 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
885 //! Verify the resulting err code is KErrNone. |
|
886 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
887 //! the result of attribute request comes back in the form of a list. |
|
888 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
889 //! Verify the resulting err code is KErrNone. |
|
890 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
891 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
892 //! |
|
893 //! @SYMTestStatus Implemented |
|
894 //! @SYMTestPriority Low |
|
895 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
896 //! @SYMTestType CIT |
|
897 |
|
898 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3861-0001 |
|
899 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
900 SHARED_ACTIVE_SCHEDULER |
|
901 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
902 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
903 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
904 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
905 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
906 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
907 COMMAND TBTSearchpattern1 NewL |
|
908 COMMAND TBTSearchpattern1 ConstructL |
|
909 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValInt-PublicApi-Active-3801-0001command4AddL |
|
910 COMMAND TBTAttrValueDES1 NewDESL |
|
911 COMMAND TBTSdpagent NewL BTSDP-AttrValInt-PublicApi-Active-3801-0001command8NewL |
|
912 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValInt-PublicApi-Active-3801-0001command9SetRecordFilterL |
|
913 COMMAND TBTSdpagent NextRecordRequestL |
|
914 OUTSTANDING 1000000 |
|
915 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValInt-PublicApi-Active-3801-0001command12AttributeRequestL |
|
916 OUTSTANDING 1000000 |
|
917 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValInt-PublicApi-Active-3801-0001command15AppendValueL |
|
918 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValInt-PublicApi-Active-3801-0001command16AcceptVisitorL |
|
919 STORE CBluetoothSocket1 |
|
920 STORE TBTServiceSecurity1 |
|
921 STORE TBTDevAddrRemote |
|
922 END_TEST_BLOCK |
|
923 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3861-0001 |
|
924 |
|
925 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3861-0002 |
|
926 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3861-0002 |
|
927 |
|
928 END_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3801 |
|
929 |
|
930 START_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3802 |
|
931 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Active-Slave-3802 |
|
932 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
933 //! |
|
934 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
935 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
936 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
937 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
938 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
939 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
940 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
941 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
942 //! 2. Add some attribute ids into the idmatchlist |
|
943 //! 3. Construct a CSdpSearchPattern object |
|
944 //! 4. Add service UUID into searchpattern |
|
945 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
946 //! Verify the resulting err code is KErrNone. |
|
947 //! 6. Set the service record filter with the serchpattern |
|
948 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
949 //! Verify the resulting err code is KErrNone. |
|
950 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
951 //! Verify the number of service records being found. |
|
952 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
953 //! Verify the resulting err code is KErrNone. |
|
954 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
955 //! the result of attribute request comes back in the form of a list. |
|
956 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
957 //! Verify the resulting err code is KErrNone. |
|
958 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
959 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
960 //! |
|
961 //! @SYMTestStatus Implemented |
|
962 //! @SYMTestPriority Low |
|
963 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
964 //! @SYMTestType CIT |
|
965 |
|
966 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3862-0001 |
|
967 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
968 SHARED_ACTIVE_SCHEDULER |
|
969 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
970 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
971 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
972 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
973 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
974 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
975 COMMAND TBTSearchpattern1 NewL |
|
976 COMMAND TBTSearchpattern1 ConstructL |
|
977 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValInt-PublicApi-Active-3802-0001command4AddL |
|
978 COMMAND TBTAttrValueDES1 NewDESL |
|
979 COMMAND TBTSdpagent NewL BTSDP-AttrValInt-PublicApi-Active-3802-0001command8NewL |
|
980 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValInt-PublicApi-Active-3802-0001command9SetRecordFilterL |
|
981 COMMAND TBTSdpagent NextRecordRequestL |
|
982 OUTSTANDING 1000000 |
|
983 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValInt-PublicApi-Active-3802-0001command12AttributeRequestL |
|
984 OUTSTANDING 1000000 |
|
985 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValInt-PublicApi-Active-3802-0001command15AppendValueL |
|
986 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValInt-PublicApi-Active-3802-0001command16AcceptVisitorL |
|
987 STORE CBluetoothSocket1 |
|
988 STORE TBTServiceSecurity1 |
|
989 STORE TBTDevAddrRemote |
|
990 END_TEST_BLOCK |
|
991 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3862-0001 |
|
992 |
|
993 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3862-0002 |
|
994 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3862-0002 |
|
995 |
|
996 END_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3802 |
|
997 |
|
998 START_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3803 |
|
999 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Active-Slave-3803 |
|
1000 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1001 //! |
|
1002 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1003 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1004 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1005 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1006 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1007 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1008 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1009 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1010 //! 2. Add some attribute ids into the idmatchlist |
|
1011 //! 3. Construct a CSdpSearchPattern object |
|
1012 //! 4. Add service UUID into searchpattern |
|
1013 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1014 //! Verify the resulting err code is KErrNone. |
|
1015 //! 6. Set the service record filter with the serchpattern |
|
1016 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1017 //! Verify the resulting err code is KErrNone. |
|
1018 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1019 //! Verify the number of service records being found. |
|
1020 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1021 //! Verify the resulting err code is KErrNone. |
|
1022 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1023 //! the result of attribute request comes back in the form of a list. |
|
1024 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1025 //! Verify the resulting err code is KErrNone. |
|
1026 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1027 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1028 //! |
|
1029 //! @SYMTestStatus Implemented |
|
1030 //! @SYMTestPriority Low |
|
1031 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1032 //! @SYMTestType CIT |
|
1033 |
|
1034 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3863-0001 |
|
1035 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1036 SHARED_ACTIVE_SCHEDULER |
|
1037 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1038 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1039 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1040 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1041 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1042 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1043 COMMAND TBTSearchpattern1 NewL |
|
1044 COMMAND TBTSearchpattern1 ConstructL |
|
1045 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValInt-PublicApi-Active-3803-0001command4AddL |
|
1046 COMMAND TBTAttrValueDES1 NewDESL |
|
1047 COMMAND TBTSdpagent NewL BTSDP-AttrValInt-PublicApi-Active-3803-0001command8NewL |
|
1048 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValInt-PublicApi-Active-3803-0001command9SetRecordFilterL |
|
1049 COMMAND TBTSdpagent NextRecordRequestL |
|
1050 OUTSTANDING 1000000 |
|
1051 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValInt-PublicApi-Active-3803-0001command12AttributeRequestL |
|
1052 OUTSTANDING 1000000 |
|
1053 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValInt-PublicApi-Active-3803-0001command15AppendValueL |
|
1054 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValInt-PublicApi-Active-3803-0001command16AcceptVisitorL |
|
1055 STORE CBluetoothSocket1 |
|
1056 STORE TBTServiceSecurity1 |
|
1057 STORE TBTDevAddrRemote |
|
1058 END_TEST_BLOCK |
|
1059 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3863-0001 |
|
1060 |
|
1061 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3863-0002 |
|
1062 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3863-0002 |
|
1063 |
|
1064 END_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3803 |
|
1065 |
|
1066 START_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3804 |
|
1067 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Active-Slave-3804 |
|
1068 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1069 //! |
|
1070 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1071 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1072 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1073 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1074 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1075 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1076 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1077 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1078 //! 2. Add some attribute ids into the idmatchlist |
|
1079 //! 3. Construct a CSdpSearchPattern object |
|
1080 //! 4. Add service UUID into searchpattern |
|
1081 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1082 //! Verify the resulting err code is KErrNone. |
|
1083 //! 6. Set the service record filter with the serchpattern |
|
1084 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1085 //! Verify the resulting err code is KErrNone. |
|
1086 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1087 //! Verify the number of service records being found. |
|
1088 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1089 //! Verify the resulting err code is KErrNone. |
|
1090 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1091 //! the result of attribute request comes back in the form of a list. |
|
1092 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1093 //! Verify the resulting err code is KErrNone. |
|
1094 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1095 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1096 //! |
|
1097 //! @SYMTestStatus Implemented |
|
1098 //! @SYMTestPriority Low |
|
1099 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1100 //! @SYMTestType CIT |
|
1101 |
|
1102 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3864-0001 |
|
1103 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1104 SHARED_ACTIVE_SCHEDULER |
|
1105 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1106 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1107 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1108 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1109 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1110 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1111 COMMAND TBTSearchpattern1 NewL |
|
1112 COMMAND TBTSearchpattern1 ConstructL |
|
1113 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValInt-PublicApi-Active-3804-0001command4AddL |
|
1114 COMMAND TBTAttrValueDES1 NewDESL |
|
1115 COMMAND TBTSdpagent NewL BTSDP-AttrValInt-PublicApi-Active-3804-0001command8NewL |
|
1116 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValInt-PublicApi-Active-3804-0001command9SetRecordFilterL |
|
1117 COMMAND TBTSdpagent NextRecordRequestL |
|
1118 OUTSTANDING 1000000 |
|
1119 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValInt-PublicApi-Active-3804-0001command12AttributeRequestL |
|
1120 OUTSTANDING 1000000 |
|
1121 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValInt-PublicApi-Active-3804-0001command15AppendValueL |
|
1122 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValInt-PublicApi-Active-3804-0001command16AcceptVisitorL |
|
1123 STORE CBluetoothSocket1 |
|
1124 STORE TBTServiceSecurity1 |
|
1125 STORE TBTDevAddrRemote |
|
1126 END_TEST_BLOCK |
|
1127 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3864-0001 |
|
1128 |
|
1129 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3864-0002 |
|
1130 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3864-0002 |
|
1131 |
|
1132 END_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3804 |
|
1133 |
|
1134 START_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3805 |
|
1135 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Active-Slave-3805 |
|
1136 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1137 //! |
|
1138 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1139 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1140 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1141 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1142 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1143 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1144 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1145 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1146 //! 2. Add some attribute ids into the idmatchlist |
|
1147 //! 3. Construct a CSdpSearchPattern object |
|
1148 //! 4. Add service UUID into searchpattern |
|
1149 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1150 //! Verify the resulting err code is KErrNone. |
|
1151 //! 6. Set the service record filter with the serchpattern |
|
1152 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1153 //! Verify the resulting err code is KErrNone. |
|
1154 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1155 //! Verify the number of service records being found. |
|
1156 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1157 //! Verify the resulting err code is KErrNone. |
|
1158 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1159 //! the result of attribute request comes back in the form of a list. |
|
1160 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1161 //! Verify the resulting err code is KErrNone. |
|
1162 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1163 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1164 //! |
|
1165 //! @SYMTestStatus Implemented |
|
1166 //! @SYMTestPriority Low |
|
1167 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1168 //! @SYMTestType CIT |
|
1169 |
|
1170 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3865-0001 |
|
1171 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1172 SHARED_ACTIVE_SCHEDULER |
|
1173 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1174 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1175 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1176 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1177 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1178 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1179 COMMAND TBTSearchpattern1 NewL |
|
1180 COMMAND TBTSearchpattern1 ConstructL |
|
1181 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValInt-PublicApi-Active-3805-0001command4AddL |
|
1182 COMMAND TBTAttrValueDES1 NewDESL |
|
1183 COMMAND TBTSdpagent NewL BTSDP-AttrValInt-PublicApi-Active-3805-0001command8NewL |
|
1184 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValInt-PublicApi-Active-3805-0001command9SetRecordFilterL |
|
1185 COMMAND TBTSdpagent NextRecordRequestL |
|
1186 OUTSTANDING 1000000 |
|
1187 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValInt-PublicApi-Active-3805-0001command12AttributeRequestL |
|
1188 OUTSTANDING 1000000 |
|
1189 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValInt-PublicApi-Active-3805-0001command15AppendValueL |
|
1190 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValInt-PublicApi-Active-3805-0001command16AcceptVisitorL |
|
1191 STORE CBluetoothSocket1 |
|
1192 STORE TBTServiceSecurity1 |
|
1193 STORE TBTDevAddrRemote |
|
1194 END_TEST_BLOCK |
|
1195 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3865-0001 |
|
1196 |
|
1197 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3865-0002 |
|
1198 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3865-0002 |
|
1199 |
|
1200 END_TESTCASE BTSDP-AttrValInt-PublicApi-Active-Slave-3805 |
|
1201 |
|
1202 |
|
1203 // **************************************************************************** |
|
1204 // CSdpAttrValueUint Tests |
|
1205 // **************************************************************************** |
|
1206 |
|
1207 START_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3901 |
|
1208 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Active-Slave-3901 |
|
1209 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1210 //! |
|
1211 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1212 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1213 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1214 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1215 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1216 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1217 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1218 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1219 //! 2. Add some attribute ids into the idmatchlist |
|
1220 //! 3. Construct a CSdpSearchPattern object |
|
1221 //! 4. Add service UUID into searchpattern |
|
1222 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1223 //! Verify the resulting err code is KErrNone. |
|
1224 //! 6. Set the service record filter with the serchpattern |
|
1225 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1226 //! Verify the resulting err code is KErrNone. |
|
1227 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1228 //! Verify the number of service records being found. |
|
1229 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1230 //! Verify the resulting err code is KErrNone. |
|
1231 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1232 //! the result of attribute request comes back in the form of a list. |
|
1233 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1234 //! Verify the resulting err code is KErrNone. |
|
1235 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1236 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1237 //! |
|
1238 //! @SYMTestStatus Implemented |
|
1239 //! @SYMTestPriority Low |
|
1240 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1241 //! @SYMTestType CIT |
|
1242 |
|
1243 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3961-0001 |
|
1244 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1245 SHARED_ACTIVE_SCHEDULER |
|
1246 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1247 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1248 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1249 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1250 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1251 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1252 COMMAND TBTSearchpattern1 NewL |
|
1253 COMMAND TBTSearchpattern1 ConstructL |
|
1254 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValUint-PublicApi-Active-3901-0001command4AddL |
|
1255 COMMAND TBTAttrValueDES1 NewDESL |
|
1256 COMMAND TBTSdpagent NewL BTSDP-AttrValUint-PublicApi-Active-3901-0001command8NewL |
|
1257 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValUint-PublicApi-Active-3901-0001command9SetRecordFilterL |
|
1258 COMMAND TBTSdpagent NextRecordRequestL |
|
1259 OUTSTANDING 1000000 |
|
1260 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValUint-PublicApi-Active-3901-0001command12AttributeRequestL |
|
1261 OUTSTANDING 1000000 |
|
1262 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValUint-PublicApi-Active-3901-0001command15AppendValueL |
|
1263 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValUint-PublicApi-Active-3901-0001command16AcceptVisitorL |
|
1264 STORE CBluetoothSocket1 |
|
1265 STORE TBTServiceSecurity1 |
|
1266 STORE TBTDevAddrRemote |
|
1267 END_TEST_BLOCK |
|
1268 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3961-0001 |
|
1269 |
|
1270 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3961-0002 |
|
1271 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3961-0002 |
|
1272 |
|
1273 END_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3901 |
|
1274 |
|
1275 START_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3902 |
|
1276 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Active-Slave-3902 |
|
1277 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1278 //! |
|
1279 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1280 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1281 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1282 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1283 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1284 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1285 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1286 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1287 //! 2. Add some attribute ids into the idmatchlist |
|
1288 //! 3. Construct a CSdpSearchPattern object |
|
1289 //! 4. Add service UUID into searchpattern |
|
1290 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1291 //! Verify the resulting err code is KErrNone. |
|
1292 //! 6. Set the service record filter with the serchpattern |
|
1293 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1294 //! Verify the resulting err code is KErrNone. |
|
1295 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1296 //! Verify the number of service records being found. |
|
1297 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1298 //! Verify the resulting err code is KErrNone. |
|
1299 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1300 //! the result of attribute request comes back in the form of a list. |
|
1301 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1302 //! Verify the resulting err code is KErrNone. |
|
1303 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1304 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1305 //! |
|
1306 //! @SYMTestStatus Implemented |
|
1307 //! @SYMTestPriority Low |
|
1308 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1309 //! @SYMTestType CIT |
|
1310 |
|
1311 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3962-0001 |
|
1312 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1313 SHARED_ACTIVE_SCHEDULER |
|
1314 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1315 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1316 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1317 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1318 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1319 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1320 COMMAND TBTSearchpattern1 NewL |
|
1321 COMMAND TBTSearchpattern1 ConstructL |
|
1322 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValUint-PublicApi-Active-3902-0001command4AddL |
|
1323 COMMAND TBTAttrValueDES1 NewDESL |
|
1324 COMMAND TBTSdpagent NewL BTSDP-AttrValUint-PublicApi-Active-3902-0001command8NewL |
|
1325 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValUint-PublicApi-Active-3902-0001command9SetRecordFilterL |
|
1326 COMMAND TBTSdpagent NextRecordRequestL |
|
1327 OUTSTANDING 1000000 |
|
1328 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValUint-PublicApi-Active-3902-0001command12AttributeRequestL |
|
1329 OUTSTANDING 1000000 |
|
1330 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValUint-PublicApi-Active-3902-0001command15AppendValueL |
|
1331 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValUint-PublicApi-Active-3902-0001command16AcceptVisitorL |
|
1332 STORE CBluetoothSocket1 |
|
1333 STORE TBTServiceSecurity1 |
|
1334 STORE TBTDevAddrRemote |
|
1335 END_TEST_BLOCK |
|
1336 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3962-0001 |
|
1337 |
|
1338 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3962-0002 |
|
1339 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3962-0002 |
|
1340 |
|
1341 END_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3902 |
|
1342 |
|
1343 START_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3903 |
|
1344 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Active-Slave-3903 |
|
1345 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1346 //! |
|
1347 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1348 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1349 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1350 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1351 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1352 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1353 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1354 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1355 //! 2. Add some attribute ids into the idmatchlist |
|
1356 //! 3. Construct a CSdpSearchPattern object |
|
1357 //! 4. Add service UUID into searchpattern |
|
1358 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1359 //! Verify the resulting err code is KErrNone. |
|
1360 //! 6. Set the service record filter with the serchpattern |
|
1361 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1362 //! Verify the resulting err code is KErrNone. |
|
1363 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1364 //! Verify the number of service records being found. |
|
1365 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1366 //! Verify the resulting err code is KErrNone. |
|
1367 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1368 //! the result of attribute request comes back in the form of a list. |
|
1369 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1370 //! Verify the resulting err code is KErrNone. |
|
1371 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1372 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1373 //! |
|
1374 //! @SYMTestStatus Implemented |
|
1375 //! @SYMTestPriority Low |
|
1376 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1377 //! @SYMTestType CIT |
|
1378 |
|
1379 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3963-0001 |
|
1380 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1381 SHARED_ACTIVE_SCHEDULER |
|
1382 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1383 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1384 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1385 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1386 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1387 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1388 COMMAND TBTSearchpattern1 NewL |
|
1389 COMMAND TBTSearchpattern1 ConstructL |
|
1390 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValUint-PublicApi-Active-3903-0001command4AddL |
|
1391 COMMAND TBTAttrValueDES1 NewDESL |
|
1392 COMMAND TBTSdpagent NewL BTSDP-AttrValUint-PublicApi-Active-3903-0001command8NewL |
|
1393 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValUint-PublicApi-Active-3903-0001command9SetRecordFilterL |
|
1394 COMMAND TBTSdpagent NextRecordRequestL |
|
1395 OUTSTANDING 1000000 |
|
1396 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValUint-PublicApi-Active-3903-0001command12AttributeRequestL |
|
1397 OUTSTANDING 1000000 |
|
1398 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValUint-PublicApi-Active-3903-0001command15AppendValueL |
|
1399 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValUint-PublicApi-Active-3903-0001command16AcceptVisitorL |
|
1400 STORE CBluetoothSocket1 |
|
1401 STORE TBTServiceSecurity1 |
|
1402 STORE TBTDevAddrRemote |
|
1403 END_TEST_BLOCK |
|
1404 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3963-0001 |
|
1405 |
|
1406 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3963-0002 |
|
1407 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3963-0002 |
|
1408 |
|
1409 END_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3903 |
|
1410 |
|
1411 START_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3904 |
|
1412 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Active-Slave-3904 |
|
1413 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1414 //! |
|
1415 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1416 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1417 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1418 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1419 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1420 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1421 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1422 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1423 //! 2. Add some attribute ids into the idmatchlist |
|
1424 //! 3. Construct a CSdpSearchPattern object |
|
1425 //! 4. Add service UUID into searchpattern |
|
1426 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1427 //! Verify the resulting err code is KErrNone. |
|
1428 //! 6. Set the service record filter with the serchpattern |
|
1429 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1430 //! Verify the resulting err code is KErrNone. |
|
1431 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1432 //! Verify the number of service records being found. |
|
1433 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1434 //! Verify the resulting err code is KErrNone. |
|
1435 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1436 //! the result of attribute request comes back in the form of a list. |
|
1437 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1438 //! Verify the resulting err code is KErrNone. |
|
1439 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1440 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1441 //! |
|
1442 //! @SYMTestStatus Implemented |
|
1443 //! @SYMTestPriority Low |
|
1444 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1445 //! @SYMTestType CIT |
|
1446 |
|
1447 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3964-0001 |
|
1448 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1449 SHARED_ACTIVE_SCHEDULER |
|
1450 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1451 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1452 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1453 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1454 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1455 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1456 COMMAND TBTSearchpattern1 NewL |
|
1457 COMMAND TBTSearchpattern1 ConstructL |
|
1458 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValUint-PublicApi-Active-3904-0001command4AddL |
|
1459 COMMAND TBTAttrValueDES1 NewDESL |
|
1460 COMMAND TBTSdpagent NewL BTSDP-AttrValUint-PublicApi-Active-3904-0001command8NewL |
|
1461 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValUint-PublicApi-Active-3904-0001command9SetRecordFilterL |
|
1462 COMMAND TBTSdpagent NextRecordRequestL |
|
1463 OUTSTANDING 1000000 |
|
1464 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValUint-PublicApi-Active-3904-0001command12AttributeRequestL |
|
1465 OUTSTANDING 1000000 |
|
1466 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValUint-PublicApi-Active-3904-0001command15AppendValueL |
|
1467 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValUint-PublicApi-Active-3904-0001command16AcceptVisitorL |
|
1468 STORE CBluetoothSocket1 |
|
1469 STORE TBTServiceSecurity1 |
|
1470 STORE TBTDevAddrRemote |
|
1471 END_TEST_BLOCK |
|
1472 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3964-0001 |
|
1473 |
|
1474 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3964-0002 |
|
1475 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3964-0002 |
|
1476 |
|
1477 END_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3904 |
|
1478 |
|
1479 START_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3905 |
|
1480 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Active-Slave-3905 |
|
1481 //! @SYMAPI CSdpAgent, CSdpAttrIdMatchList, CSdpSearchPattern, MSdpAttributeValueVisitor, MSdpAgentNotifier, CSdpAttrValueDES |
|
1482 //! |
|
1483 //! @SYMTestCaseDesc Search for service on slave device, search for service attributes and retrieve attribute values |
|
1484 //! Uses API elements: NewL(), AddL() from CSdpAttrIdMatchList |
|
1485 //! NewL(), ConstructL(), AddL from CSdpSearchPattern |
|
1486 //! VisitAttributeValueL() from MSdpAttributeValueVisitor |
|
1487 //! NewDESL(), AppendValueL(), AcceptVisitorL() from CSdpAttrValueDES |
|
1488 //! AttributeRequestComplete(), AttributeRequestResult(), NextRecordRequestComplete() from MSdpAgentNotifier |
|
1489 //! NewL(), SetRecordFilterL(), NextRecordRequestL(), AttributeRequestL() from CSdpAgent |
|
1490 //! @SYMTestActions 1. Construct a CSdpAttrIdMatchList object |
|
1491 //! 2. Add some attribute ids into the idmatchlist |
|
1492 //! 3. Construct a CSdpSearchPattern object |
|
1493 //! 4. Add service UUID into searchpattern |
|
1494 //! 5. Construct a CSdpAgent object with the bt-address of the slave device provided by the TBTDevAddr object. |
|
1495 //! Verify the resulting err code is KErrNone. |
|
1496 //! 6. Set the service record filter with the serchpattern |
|
1497 //! 7. Call NextRecordRequestL() to get service record of slave device which matches the search pattern. |
|
1498 //! Verify the resulting err code is KErrNone. |
|
1499 //! 8. The call back function NextRecordRequestComplete() is executed if the results comes back. |
|
1500 //! Verify the number of service records being found. |
|
1501 //! 9. Search for service attributes of the service we've found using the attridmatchlist. |
|
1502 //! Verify the resulting err code is KErrNone. |
|
1503 //! 10. The call back functions AttributeRequestComplete() and AttributeRequestResult() are executed when |
|
1504 //! the result of attribute request comes back in the form of a list. |
|
1505 //! 11. Switch to CSdpAttrValueDES data wrapper. Append the request results of CSdpAgent onto CSdpAttrValueDES object. |
|
1506 //! Verify the resulting err code is KErrNone. |
|
1507 //! 12. Call CSdpAttrValueDES::AcceptVisitorL to retrieve the data. Verify the resulting err code is KErrNone. |
|
1508 //! 13. Check the result by comparing the result string generated by VisitAttributeValueL(). |
|
1509 //! |
|
1510 //! @SYMTestStatus Implemented |
|
1511 //! @SYMTestPriority Low |
|
1512 //! @SYMTestExpectedResults Attribute values are retrieved from slave device and the result is as expected. |
|
1513 //! @SYMTestType CIT |
|
1514 |
|
1515 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3965-0001 |
|
1516 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Active-Slave.ini |
|
1517 SHARED_ACTIVE_SCHEDULER |
|
1518 CREATE_OBJECT CSdpAgent TBTSdpagent |
|
1519 RESTORE_OBJECT TBTDevAddr TBTDevAddrRemote |
|
1520 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
1521 RESTORE_OBJECT TBTServiceSecurity TBTServiceSecurity1 |
|
1522 CREATE_OBJECT CSdpSearchPattern TBTSearchpattern1 |
|
1523 CREATE_OBJECT CSdpAttrValueDES TBTAttrValueDES1 |
|
1524 COMMAND TBTSearchpattern1 NewL |
|
1525 COMMAND TBTSearchpattern1 ConstructL |
|
1526 COMMAND TBTSearchpattern1 AddL BTSDP-AttrValUint-PublicApi-Active-3905-0001command4AddL |
|
1527 COMMAND TBTAttrValueDES1 NewDESL |
|
1528 COMMAND TBTSdpagent NewL BTSDP-AttrValUint-PublicApi-Active-3905-0001command8NewL |
|
1529 COMMAND TBTSdpagent SetRecordFilterL BTSDP-AttrValUint-PublicApi-Active-3905-0001command9SetRecordFilterL |
|
1530 COMMAND TBTSdpagent NextRecordRequestL |
|
1531 OUTSTANDING 1000000 |
|
1532 COMMAND TBTSdpagent AttributeRequestL BTSDP-AttrValUint-PublicApi-Active-3905-0001command12AttributeRequestL |
|
1533 OUTSTANDING 1000000 |
|
1534 COMMAND TBTAttrValueDES1 AppendValueL BTSDP-AttrValUint-PublicApi-Active-3905-0001command15AppendValueL |
|
1535 COMMAND TBTAttrValueDES1 AcceptVisitorL BTSDP-AttrValUint-PublicApi-Active-3905-0001command16AcceptVisitorL |
|
1536 STORE_ACTIVE_SCHEDULER |
|
1537 END_TEST_BLOCK |
|
1538 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3965-0001 |
|
1539 |
|
1540 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3965-0002 |
|
1541 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3965-0002 |
|
1542 |
|
1543 END_TESTCASE BTSDP-AttrValUint-PublicApi-Active-Slave-3905 |
|
1544 |
|
1545 |
|
1546 DELAY 2000 |