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