|
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 CSdpDatabase 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 21/09/2006 |
|
28 /////////////////////////////////////////////////////////////////////////////// |
|
29 |
|
30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\ |
|
31 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\sdp\ |
|
32 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\sdp\t_RSdpdatabase\ |
|
33 |
|
34 LOAD_SUITE T_BTSdpAPI -SharedData |
|
35 DELAY 500 |
|
36 |
|
37 // **************************************************************************** |
|
38 // Set up BT Addresses |
|
39 // **************************************************************************** |
|
40 |
|
41 START_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses |
|
42 |
|
43 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
44 SHARED_ACTIVE_SCHEDULER |
|
45 CREATE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
46 CREATE_OBJECT TRfcommSockAddr TRfcommSockAddr1 |
|
47 CREATE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
48 COMMAND CBluetoothSocket1 RSocketServerConnect |
|
49 COMMAND CBluetoothSocket1 NewL BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command3NewL |
|
50 COMMAND TRfcommSockAddr1 Construct |
|
51 COMMAND TRfcommSockAddr1 SetFamily BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command6SetFamily |
|
52 COMMAND TRfcommSockAddr1 SetPort BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command7SetPort |
|
53 COMMAND CBluetoothSocket1 Bind BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command9Bind |
|
54 COMMAND CBluetoothSocket1 Listen BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command10Listen |
|
55 COMMAND CBluetoothSessionSocket SetRsocketServerFromCBTSocket BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command12SetRsocketServerFromCBTSocket |
|
56 COMMAND CBluetoothSessionSocket NewL BTSDP-Database-PublicApi-Passive-SetBTAddresses-0001command13NewL |
|
57 STORE CBluetoothSocket1 |
|
58 STORE CBluetoothSessionSocket |
|
59 STORE_ACTIVE_SCHEDULER |
|
60 END_TEST_BLOCK |
|
61 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-SetBTAddresses-0001 |
|
62 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
63 SHARED_ACTIVE_SCHEDULER |
|
64 RESTORE_OBJECT CBluetoothSocket CBluetoothSocket1 |
|
65 RESTORE_OBJECT CBluetoothSocket CBluetoothSessionSocket |
|
66 CREATE_OBJECT TBTDevAddr TBTDevAddrLocal |
|
67 COMMAND TBTDevAddrLocal Construct |
|
68 COMMAND TBTDevAddrLocal OpenHostResolver BTSDP-Database-PublicApi-Passive-SetBTAddresses-0002command3OpenHostResolver |
|
69 COMMAND TBTDevAddrLocal SetHostNameL BTSDP-Database-PublicApi-Passive-SetBTAddresses-0002command4SetHostNameL |
|
70 COMMAND TBTDevAddrLocal SetDiscoverable |
|
71 STORE CBluetoothSocket1 |
|
72 STORE CBluetoothSessionSocket |
|
73 STORE TBTDevAddrLocal |
|
74 END_TEST_BLOCK |
|
75 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-SetBTAddresses-0001 |
|
76 END_TESTCASE BTSDP-Database-PublicApi-Passive-SetBTAddresses |
|
77 |
|
78 // **************************************************************************** |
|
79 // T_RSdpdatabase |
|
80 // **************************************************************************** |
|
81 |
|
82 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3661 |
|
83 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3661 |
|
84 //! @SYMAPI RSdpDatabase |
|
85 //! |
|
86 //! @SYMTestCaseDesc Updated a service record attribute with a value, |
|
87 //! and prepare, set up the service record for the master device to retrieve |
|
88 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
89 //! Constructor(), Connect(), Close() from RSdp |
|
90 //! NewIntL() from CSdpAttrValueInt |
|
91 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
92 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
93 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
94 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
95 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
96 //! 6. Read an input service record UUID from test data if successful. |
|
97 //! 7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
98 //! 8. Read an input attribute ID from test data if successful. |
|
99 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
100 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
101 //! 11.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
102 //! 12.Close the SDP database subsession using Close() function. |
|
103 //! 13.Close the client process using Close() function. |
|
104 //! @SYMTestStatus Implemented |
|
105 //! @SYMTestPriority High |
|
106 //! @SYMTestExpectedResults Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
107 //! @SYMTestType CIT |
|
108 |
|
109 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-SetBTAddresses-0002 |
|
110 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
111 SHARED_ACTIVE_SCHEDULER |
|
112 CREATE_OBJECT RSdpDatabase database |
|
113 CREATE_OBJECT RSdp rsdp |
|
114 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
115 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3661-0001command2NewIntL |
|
116 COMMAND rsdp Constructor |
|
117 COMMAND rsdp Connect |
|
118 OUTSTANDING |
|
119 COMMAND database Constructor |
|
120 COMMAND database Open BTSDP-Database-PublicApi-Passive-3661-0001command8Open |
|
121 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3661-0001command9CreateServiceRecordL |
|
122 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3661-0001command10UpdateAttributeL |
|
123 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3661-0001command12NewIntL |
|
124 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3661-0001command14UpdateAttributeL |
|
125 STORE database |
|
126 STORE rsdp |
|
127 STORE_ACTIVE_SCHEDULER |
|
128 END_TEST_BLOCK |
|
129 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-SetBTAddresses-0002 |
|
130 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3601-0001 |
|
131 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3601-0001 |
|
132 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3601-0002 |
|
133 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
134 SHARED_ACTIVE_SCHEDULER |
|
135 RESTORE_OBJECT RSdpDatabase database |
|
136 RESTORE_OBJECT RSdp rsdp |
|
137 ASYNC_DELAY 5000000 |
|
138 COMMAND database DeleteRecordL |
|
139 COMMAND database Close |
|
140 COMMAND rsdp Close |
|
141 END_TEST_BLOCK |
|
142 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3601-0002 |
|
143 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3661 |
|
144 |
|
145 |
|
146 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3662 |
|
147 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3662 |
|
148 //! @SYMAPI RSdpDatabase |
|
149 //! |
|
150 //! @SYMTestCaseDesc Updated multiple service records with attribute value, |
|
151 //! and prepare, set up the service record for the master device to retrieve |
|
152 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
153 //! Constructor(), Connect(), Close() from RSdp |
|
154 //! NewIntL() from CSdpAttrValueInt |
|
155 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
156 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
157 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
158 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
159 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
160 //! 6. Read Multiple input service record UUIDs from test data if successful. |
|
161 //! 7. Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed. |
|
162 //! 8. Read an input attribute ID from test data if successful. |
|
163 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
164 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
165 //! 11.Re-Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
166 //! 12.Updates a service record attribute again with a new value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
167 //! 13.Deletes the multiple service records using DeleteRecordL() function and return KErrNone if successed. |
|
168 //! 14.Close the SDP database subsession using Close() function. |
|
169 //! 15.Close the client process using Close() function. |
|
170 //! @SYMTestStatus Implemented |
|
171 //! @SYMTestPriority High |
|
172 //! @SYMTestExpectedResults Updated multiple service records with attribute value encapsulated in a CSdpAttrValue successfully. |
|
173 //! @SYMTestType CIT |
|
174 |
|
175 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
176 SHARED_ACTIVE_SCHEDULER |
|
177 CREATE_OBJECT RSdpDatabase database |
|
178 CREATE_OBJECT RSdp rsdp |
|
179 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
180 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3662-0001command2NewIntL |
|
181 COMMAND rsdp Constructor |
|
182 COMMAND rsdp Connect |
|
183 OUTSTANDING |
|
184 COMMAND database Constructor |
|
185 COMMAND database Open BTSDP-Database-PublicApi-Passive-3662-0001command8Open |
|
186 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3662-0001command9CreateServiceRecordL |
|
187 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3662-0001command10CreateServiceRecordL |
|
188 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3662-0001command11CreateServiceRecordL |
|
189 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3662-0001command12CreateServiceRecordL |
|
190 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3662-0001command13CreateServiceRecordL |
|
191 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3662-0001command14UpdateAttributeL |
|
192 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3662-0001command16NewIntL |
|
193 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3662-0001command18UpdateAttributeL |
|
194 STORE database |
|
195 STORE rsdp |
|
196 STORE_ACTIVE_SCHEDULER |
|
197 END_TEST_BLOCK |
|
198 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3602-0001 |
|
199 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3602-0001 |
|
200 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3602-0002 |
|
201 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
202 SHARED_ACTIVE_SCHEDULER |
|
203 RESTORE_OBJECT RSdpDatabase database |
|
204 RESTORE_OBJECT RSdp rsdp |
|
205 COMMAND database DeleteRecordL |
|
206 COMMAND database DeleteRecordL |
|
207 COMMAND database DeleteRecordL |
|
208 COMMAND database DeleteRecordL |
|
209 COMMAND database DeleteRecordL |
|
210 COMMAND database Close |
|
211 COMMAND rsdp Close |
|
212 END_TEST_BLOCK |
|
213 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3602-0002 |
|
214 |
|
215 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3662 |
|
216 |
|
217 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3663 |
|
218 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3663 |
|
219 //! @SYMAPI RSdpDatabase |
|
220 //! |
|
221 //! @SYMTestCaseDesc Updated multiple service records using CSdpAttrValueDES object UUID list with attribute value, |
|
222 //! and prepare, set up the service record for the master device to retrieve |
|
223 //! Uses API elements: NewDESL(), StartListL(), EndListL(), BuildUUIDL() from CSdpAttrValueDES |
|
224 //! Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
225 //! Constructor(), Connect(), Close() from RSdp |
|
226 //! NewIntL() from CSdpAttrValueInt |
|
227 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueDES object using NewDESL() function and return KErrNone if successed. |
|
228 //! 2. Start to build a list of UUIDs using StartListL() function and return KErrNone if successed. |
|
229 //! 3. Build multiple UUIDs using BuildUUIDL() and return KErrNone if successed. |
|
230 //! 4. Stop to build a list of UUIDs using EndListL() and return KErrNone if successed. |
|
231 //! 5. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
232 //! 6. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
233 //! 7. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
234 //! 8. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
235 //! 9. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
236 //! 10.Creates multiple new service records from CSdpAttrValueDES object UUID list using CreateServiceRecordL() function and return KErrNone if successed. |
|
237 //! 11.Read an input attribute ID from test data if successful. |
|
238 //! 12.Read the CSdpAttrValueInt object from test data if successful. |
|
239 //! 13.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
240 //! 14.Re-Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
241 //! 15.Updates a service record attribute again with a new value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
242 //! 16.Deletes the multiple service records using DeleteRecordL() function and return KErrNone if successed. |
|
243 //! 17.Close the SDP database subsession using Close() function. |
|
244 //! 18.Close the client process using Close() function. |
|
245 //! @SYMTestStatus Implemented |
|
246 //! @SYMTestPriority Critical |
|
247 //! @SYMTestExpectedResults Updated multiple service records using CSdpAttrValueDES object UUID list with attribute value encapsulated in a CSdpAttrValue successfully. |
|
248 //! @SYMTestType CIT |
|
249 |
|
250 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
251 SHARED_ACTIVE_SCHEDULER |
|
252 CREATE_OBJECT RSdpDatabase database |
|
253 CREATE_OBJECT RSdp rsdp |
|
254 CREATE_OBJECT CSdpAttrValueDES attrValueDES |
|
255 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
256 COMMAND attrValueDES NewDESL |
|
257 COMMAND attrValueDES StartListL |
|
258 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3663-0001command4BuildUUIDL |
|
259 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3663-0001command5BuildUUIDL |
|
260 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3663-0001command6BuildUUIDL |
|
261 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3663-0001command7BuildUUIDL |
|
262 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3663-0001command8BuildUUIDL |
|
263 COMMAND attrValueDES EndListL |
|
264 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3663-0001command11NewIntL |
|
265 COMMAND rsdp Constructor |
|
266 COMMAND rsdp Connect |
|
267 OUTSTANDING |
|
268 COMMAND database Constructor |
|
269 COMMAND database Open BTSDP-Database-PublicApi-Passive-3663-0001command17Open |
|
270 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3663-0001command18CreateServiceRecordL |
|
271 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3663-0001command19CreateServiceRecordL |
|
272 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3663-0001command20UpdateAttributeL |
|
273 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3663-0001command22NewIntL |
|
274 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3663-0001command24UpdateAttributeL |
|
275 STORE database |
|
276 STORE rsdp |
|
277 STORE_ACTIVE_SCHEDULER |
|
278 END_TEST_BLOCK |
|
279 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3603-0001 |
|
280 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3603-0001 |
|
281 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3603-0002 |
|
282 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
283 SHARED_ACTIVE_SCHEDULER |
|
284 RESTORE_OBJECT RSdpDatabase database |
|
285 RESTORE_OBJECT RSdp rsdp |
|
286 COMMAND database DeleteRecordL |
|
287 COMMAND database DeleteRecordL |
|
288 COMMAND database Close |
|
289 COMMAND rsdp Close |
|
290 END_TEST_BLOCK |
|
291 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3603-0002 |
|
292 |
|
293 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3663 |
|
294 |
|
295 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3664 |
|
296 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3664 |
|
297 //! @SYMAPI RSdpDatabase |
|
298 //! |
|
299 //! @SYMTestCaseDesc Updated a service record attribute with different type of objects : DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
300 //! and prepare, set up the service record for the master device to retrieve |
|
301 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
302 //! Constructor(), Connect(), Close() from RSdp |
|
303 //! NewIntL() from CSdpAttrValueInt |
|
304 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
305 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
306 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
307 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
308 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
309 //! 6. Read an input service record UUID from test data if successful. |
|
310 //! 7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
311 //! 8. Read an input attribute ID from test data if successful. |
|
312 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
313 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
314 //! 11.Updates a service record attribute with a value of Desc16 using UpdateAttributeL() function and return KErrNone if successed. |
|
315 //! 12.Updates a service record attribute with a value of DesC8 using UpdateAttributeL() function and return KErrNone if successed. |
|
316 //! 13.Updates a service record attribute with a value of integer using UpdateAttributeL() function and return KErrNone if successed. |
|
317 //! 14.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
318 //! 15.Close the SDP database subsession using Close() function. |
|
319 //! 16.Close the client process using Close() function. |
|
320 //! @SYMTestStatus Implemented |
|
321 //! @SYMTestPriority High |
|
322 //! @SYMTestExpectedResults Updated a service record attribute with different type of value: Desc16, DesC8 and integer in a CSdpAttrValue successfully. |
|
323 //! @SYMTestType CIT |
|
324 |
|
325 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
326 SHARED_ACTIVE_SCHEDULER |
|
327 CREATE_OBJECT RSdpDatabase database |
|
328 CREATE_OBJECT RSdp rsdp |
|
329 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
330 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3664-0001command2NewIntL |
|
331 COMMAND rsdp Constructor |
|
332 COMMAND rsdp Connect |
|
333 OUTSTANDING |
|
334 COMMAND database Constructor |
|
335 COMMAND database Open BTSDP-Database-PublicApi-Passive-3664-0001command8Open |
|
336 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3664-0001command9CreateServiceRecordL |
|
337 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3664-0001command10UpdateAttributeL |
|
338 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3664-0001command11UpdateAttributeL |
|
339 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3664-0001command12UpdateAttributeL |
|
340 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3664-0001command13UpdateAttributeL |
|
341 STORE database |
|
342 STORE rsdp |
|
343 STORE_ACTIVE_SCHEDULER |
|
344 END_TEST_BLOCK |
|
345 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3604-0001 |
|
346 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3604-0001 |
|
347 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3604-0002 |
|
348 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
349 SHARED_ACTIVE_SCHEDULER |
|
350 RESTORE_OBJECT RSdpDatabase database |
|
351 RESTORE_OBJECT RSdp rsdp |
|
352 COMMAND database DeleteRecordL |
|
353 COMMAND database Close |
|
354 COMMAND rsdp Close |
|
355 END_TEST_BLOCK |
|
356 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3604-0002 |
|
357 |
|
358 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3664 |
|
359 |
|
360 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3665 |
|
361 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3665 |
|
362 //! @SYMAPI RSdpDatabase |
|
363 //! |
|
364 //! @SYMTestCaseDesc Updated a service record attribute with different type of objects : DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
365 //! then delete the multiple attributes, |
|
366 //! and prepare, set up the service record for the master device to retrieve |
|
367 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
368 //! Constructor(), Connect(), Close() from RSdp |
|
369 //! NewIntL() from CSdpAttrValueInt |
|
370 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
371 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
372 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
373 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
374 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
375 //! 6. Read an input service record UUID from test data if successful. |
|
376 //! 7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
377 //! 8. Read an input attribute ID from test data if successful. |
|
378 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
379 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
380 //! 11.Updates a service record attribute with a value of Desc16 using UpdateAttributeL() function and return KErrNone if successed. |
|
381 //! 12.Updates a service record attribute with a value of DesC8 using UpdateAttributeL() function and return KErrNone if successed. |
|
382 //! 13.Updates a service record attribute with a value of integer using UpdateAttributeL() function and return KErrNone if successed. |
|
383 //! 14.Delete multiple attributes from service record using DeleteAttributeL() function and return KErrNone if successed. |
|
384 //! 15.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
385 //! 16.Close the SDP database subsession using Close() function. |
|
386 //! 17.Close the client process using Close() function. |
|
387 //! @SYMTestStatus Implemented |
|
388 //! @SYMTestPriority Critical |
|
389 //! @SYMTestExpectedResults Updated a service record attribute with different type of value: Desc16, DesC8 and integer in a CSdpAttrValue, then delete the multiple attributes successfully. |
|
390 //! @SYMTestType CIT |
|
391 |
|
392 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
393 SHARED_ACTIVE_SCHEDULER |
|
394 CREATE_OBJECT RSdpDatabase database |
|
395 CREATE_OBJECT RSdp rsdp |
|
396 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
397 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3665-0001command2NewIntL |
|
398 COMMAND rsdp Constructor |
|
399 COMMAND rsdp Connect |
|
400 OUTSTANDING |
|
401 COMMAND database Constructor |
|
402 COMMAND database Open BTSDP-Database-PublicApi-Passive-3665-0001command8Open |
|
403 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3665-0001command9CreateServiceRecordL |
|
404 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command10UpdateAttributeL |
|
405 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command11UpdateAttributeL |
|
406 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command12UpdateAttributeL |
|
407 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command13UpdateAttributeL |
|
408 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3665-0001command15NewIntL |
|
409 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command17UpdateAttributeL |
|
410 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command18UpdateAttributeL |
|
411 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command19UpdateAttributeL |
|
412 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command20UpdateAttributeL |
|
413 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command21DeleteAttributeL |
|
414 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command22DeleteAttributeL |
|
415 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command23DeleteAttributeL |
|
416 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command24DeleteAttributeL |
|
417 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command25DeleteAttributeL |
|
418 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3665-0001command26DeleteAttributeL |
|
419 STORE database |
|
420 STORE rsdp |
|
421 STORE_ACTIVE_SCHEDULER |
|
422 END_TEST_BLOCK |
|
423 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3605-0001 |
|
424 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3605-0001 |
|
425 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3605-0002 |
|
426 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
427 SHARED_ACTIVE_SCHEDULER |
|
428 RESTORE_OBJECT RSdpDatabase database |
|
429 RESTORE_OBJECT RSdp rsdp |
|
430 COMMAND database DeleteRecordL |
|
431 COMMAND database Close |
|
432 COMMAND rsdp Close |
|
433 END_TEST_BLOCK |
|
434 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3605-0002 |
|
435 |
|
436 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3665 |
|
437 |
|
438 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3666 |
|
439 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3666 |
|
440 //! @SYMAPI RSdpDatabase |
|
441 //! |
|
442 //! @SYMTestCaseDesc Updated a service record attribute with different type of objects : CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
443 //! and prepare, set up the service record for the master device to retrieve |
|
444 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
445 //! Constructor(), Connect(), Close() from RSdp |
|
446 //! NewIntL() from CSdpAttrValueInt |
|
447 //! NewBoolL() from CSdpAttrValueBoolean |
|
448 //! NewStringL() from CSdpAttrValueString |
|
449 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
450 //! 2. Allocate and construct a new CSdpAttrValueBoolean object using NewBoolL() function and return KErrNone if successed. |
|
451 //! 3. Allocate and construct a new CSdpAttrValueString object using NewStringL() function and return KErrNone if successed. |
|
452 //! 4. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
453 //! 5. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
454 //! 6. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
455 //! 7. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
456 //! 8. Read an input service record UUID from test data if successful. |
|
457 //! 9. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
458 //! 10.Read an input attribute ID from test data if successful. |
|
459 //! 11.Read the CSdpAttrValueInt object from test data if successful. |
|
460 //! 12.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
461 //! 13.Read an input attribute ID from test data if successful. |
|
462 //! 14.Read the CSdpAttrValueBoolean object from test data if successful. |
|
463 //! 15.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed. |
|
464 //! 16.Read an input attribute ID from test data if successful. |
|
465 //! 17.Read the CSdpAttrValueString object from test data if successful. |
|
466 //! 18.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed. |
|
467 //! 19.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
468 //! 20.Close the SDP database subsession using Close() function. |
|
469 //! 21.Close the client process using Close() function. |
|
470 //! @SYMTestStatus Implemented |
|
471 //! @SYMTestPriority Critical |
|
472 //! @SYMTestExpectedResults Updated a service record attribute with different type of object: CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString successfully. |
|
473 //! @SYMTestType CIT |
|
474 |
|
475 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
476 SHARED_ACTIVE_SCHEDULER |
|
477 CREATE_OBJECT RSdpDatabase database |
|
478 CREATE_OBJECT RSdp rsdp |
|
479 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
480 CREATE_OBJECT CSdpAttrValueBoolean attrValueBoolean |
|
481 CREATE_OBJECT CSdpAttrValueString attrValueString |
|
482 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3666-0001command2NewIntL |
|
483 COMMAND attrValueBoolean NewBoolL BTSDP-Database-PublicApi-Passive-3666-0001command4NewBoolL |
|
484 COMMAND attrValueString NewStringL BTSDP-Database-PublicApi-Passive-3666-0001command6NewStringL |
|
485 COMMAND rsdp Constructor |
|
486 COMMAND rsdp Connect |
|
487 OUTSTANDING |
|
488 COMMAND database Constructor |
|
489 COMMAND database Open BTSDP-Database-PublicApi-Passive-3666-0001command12Open |
|
490 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3666-0001command13CreateServiceRecordL |
|
491 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3666-0001command14UpdateAttributeL |
|
492 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3666-0001command15UpdateAttributeL |
|
493 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3666-0001command16UpdateAttributeL |
|
494 STORE database |
|
495 STORE rsdp |
|
496 STORE_ACTIVE_SCHEDULER |
|
497 END_TEST_BLOCK |
|
498 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3606-0001 |
|
499 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3606-0001 |
|
500 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3606-0002 |
|
501 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
502 SHARED_ACTIVE_SCHEDULER |
|
503 RESTORE_OBJECT RSdpDatabase database |
|
504 RESTORE_OBJECT RSdp rsdp |
|
505 COMMAND database DeleteRecordL |
|
506 COMMAND database Close |
|
507 COMMAND rsdp Close |
|
508 END_TEST_BLOCK |
|
509 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3606-0002 |
|
510 |
|
511 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3666 |
|
512 |
|
513 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3667 |
|
514 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3667 |
|
515 //! @SYMAPI RSdpDatabase |
|
516 //! |
|
517 //! @SYMTestCaseDesc Updated a service record attribute with different type of objects : CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
518 //! then Updated the service record attribute again with new type of values, |
|
519 //! and prepare, set up the service record for the master device to retrieve |
|
520 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
521 //! Constructor(), Connect(), Close() from RSdp |
|
522 //! NewIntL() from CSdpAttrValueInt |
|
523 //! NewBoolL() from CSdpAttrValueBoolean |
|
524 //! NewStringL() from CSdpAttrValueString |
|
525 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
526 //! 2. Allocate and construct a new CSdpAttrValueBoolean object using NewBoolL() function and return KErrNone if successed. |
|
527 //! 3. Allocate and construct a new CSdpAttrValueString object using NewStringL() function and return KErrNone if successed. |
|
528 //! 4. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
529 //! 5. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
530 //! 6. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
531 //! 7. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
532 //! 8. Read an input service record UUID from test data if successful. |
|
533 //! 9. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
534 //! 10.Read an input attribute ID from test data if successful. |
|
535 //! 11.Read the CSdpAttrValueInt object from test data if successful. |
|
536 //! 12.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
537 //! 13.Read an input attribute ID from test data if successful. |
|
538 //! 14.Read the CSdpAttrValueBoolean object from test data if successful. |
|
539 //! 15.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed. |
|
540 //! 16.Read an input attribute ID from test data if successful. |
|
541 //! 17.Read the CSdpAttrValueString object from test data if successful. |
|
542 //! 18.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed. |
|
543 //! 19.Re-Allocate and construct a new CSdpAttrValueInt object again using NewIntL() function and return KErrNone if successed. |
|
544 //! 20.Re-Allocate and construct a new CSdpAttrValueBoolean object again using NewBoolL() function and return KErrNone if successed. |
|
545 //! 21.Re-Allocate and construct a new CSdpAttrValueString object again using NewStringL() function and return KErrNone if successed. |
|
546 //! 22.Read an input attribute ID from test data if successful. |
|
547 //! 23.Read the CSdpAttrValueInt object from test data if successful. |
|
548 //! 24.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
549 //! 25.Read an input attribute ID from test data if successful. |
|
550 //! 26.Read the CSdpAttrValueBoolean object from test data if successful. |
|
551 //! 27.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed. |
|
552 //! 28.Read an input attribute ID from test data if successful. |
|
553 //! 29.Read the CSdpAttrValueString object from test data if successful. |
|
554 //! 30.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed. |
|
555 //! 31.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
556 //! 32.Close the SDP database subsession using Close() function. |
|
557 //! 33.Close the client process using Close() function. |
|
558 //! @SYMTestStatus Implemented |
|
559 //! @SYMTestPriority Critical |
|
560 //! @SYMTestExpectedResults Updated a service record attribute with different type of object: CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
561 //! then re-create the CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString again and update them to serive record attribute successfully. |
|
562 //! @SYMTestType CIT |
|
563 |
|
564 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
565 SHARED_ACTIVE_SCHEDULER |
|
566 CREATE_OBJECT RSdpDatabase database |
|
567 CREATE_OBJECT RSdp rsdp |
|
568 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
569 CREATE_OBJECT CSdpAttrValueBoolean attrValueBoolean |
|
570 CREATE_OBJECT CSdpAttrValueString attrValueString |
|
571 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3667-0001command2NewIntL |
|
572 COMMAND attrValueBoolean NewBoolL BTSDP-Database-PublicApi-Passive-3667-0001command4NewBoolL |
|
573 COMMAND attrValueString NewStringL BTSDP-Database-PublicApi-Passive-3667-0001command6NewStringL |
|
574 COMMAND rsdp Constructor |
|
575 COMMAND rsdp Connect |
|
576 OUTSTANDING |
|
577 COMMAND database Constructor |
|
578 COMMAND database Open BTSDP-Database-PublicApi-Passive-3667-0001command12Open |
|
579 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3667-0001command13CreateServiceRecordL |
|
580 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3667-0001command14UpdateAttributeL |
|
581 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3667-0001command15UpdateAttributeL |
|
582 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3667-0001command16UpdateAttributeL |
|
583 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3667-0001command18NewIntL |
|
584 COMMAND attrValueBoolean NewBoolL BTSDP-Database-PublicApi-Passive-3667-0001command20NewBoolL |
|
585 COMMAND attrValueString NewStringL BTSDP-Database-PublicApi-Passive-3667-0001command22NewStringL |
|
586 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3667-0001command24UpdateAttributeL |
|
587 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3667-0001command25UpdateAttributeL |
|
588 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3667-0001command26UpdateAttributeL |
|
589 STORE database |
|
590 STORE rsdp |
|
591 STORE_ACTIVE_SCHEDULER |
|
592 END_TEST_BLOCK |
|
593 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3607-0001 |
|
594 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3607-0001 |
|
595 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3607-0002 |
|
596 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
597 SHARED_ACTIVE_SCHEDULER |
|
598 RESTORE_OBJECT RSdpDatabase database |
|
599 RESTORE_OBJECT RSdp rsdp |
|
600 COMMAND database DeleteRecordL |
|
601 COMMAND database Close |
|
602 COMMAND rsdp Close |
|
603 END_TEST_BLOCK |
|
604 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3607-0002 |
|
605 |
|
606 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3667 |
|
607 |
|
608 START_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3668 |
|
609 //! @SYMTestCaseID BTSDP-Database-PublicApi-Passive-Slave-3668 |
|
610 //! @SYMAPI RSdpDatabase |
|
611 //! |
|
612 //! @SYMTestCaseDesc Updated a service record attribute with different type of objects : DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
613 //! then Updated the service record attribute again with new type of values, |
|
614 //! and prepare, set up the service record for the master device to retrieve |
|
615 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
616 //! Constructor(), Connect(), Close() from RSdp |
|
617 //! NewIntL() from CSdpAttrValueInt |
|
618 //! NewBoolL() from CSdpAttrValueBoolean |
|
619 //! NewStringL() from CSdpAttrValueString |
|
620 //! NewDESL(), StartListL(), EndListL(), BuildUUIDL() from CSdpAttrValueDES |
|
621 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueDES object using NewDESL() function and return KErrNone if successed. |
|
622 //! 2. Start to build a list of UUIDs using StartListL() function and return KErrNone if successed. |
|
623 //! 3. Build multiple UUIDs using BuildUUIDL() and return KErrNone if successed. |
|
624 //! 4. Stop to build a list of UUIDs using EndListL() and return KErrNone if successed. |
|
625 //! 5. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
626 //! 6. Allocate and construct a new CSdpAttrValueBoolean object using NewBoolL() function and return KErrNone if successed. |
|
627 //! 7. Allocate and construct a new CSdpAttrValueString object using NewStringL() function and return KErrNone if successed. |
|
628 //! 8. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
629 //! 9. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
630 //! 10.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
631 //! 11.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
632 //! 12.Creates multiple new service records from CSdpAttrValueDES object UUID list using CreateServiceRecordL() function and return KErrNone if successed. |
|
633 //! 13.Repeate read Multiple input service record UUIDs from test data if successful. |
|
634 //! 14.Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed. |
|
635 //! 15.Read an input attribute ID from test data if successful. |
|
636 //! 16.Read the CSdpAttrValueInt object from test data if successful. |
|
637 //! 17.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
638 //! 18.Read an input attribute ID from test data if successful. |
|
639 //! 19.Read the CSdpAttrValueBoolean object from test data if successful. |
|
640 //! 20.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed. |
|
641 //! 21.Read an input attribute ID from test data if successful. |
|
642 //! 22.Read the CSdpAttrValueString object from test data if successful. |
|
643 //! 23.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed. |
|
644 //! 24.Re-Allocate and construct a new CSdpAttrValueInt object again using NewIntL() function and return KErrNone if successed. |
|
645 //! 25.Re-Allocate and construct a new CSdpAttrValueBoolean object again using NewBoolL() function and return KErrNone if successed. |
|
646 //! 26.Re-Allocate and construct a new CSdpAttrValueString object again using NewStringL() function and return KErrNone if successed. |
|
647 //! 27.Read an input attribute ID from test data if successful. |
|
648 //! 28.Read the CSdpAttrValueInt object from test data if successful. |
|
649 //! 29.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
650 //! 30.Read an input attribute ID from test data if successful. |
|
651 //! 31.Read the CSdpAttrValueBoolean object from test data if successful. |
|
652 //! 32.Updates a service record attribute with a value encapsulated in a CSdpAttrValueBoolean using UpdateAttributeL() function and return KErrNone if successed. |
|
653 //! 33.Read an input attribute ID from test data if successful. |
|
654 //! 34.Read the CSdpAttrValueString object from test data if successful. |
|
655 //! 35.Updates a service record attribute with a value encapsulated in a CSdpAttrValueString using UpdateAttributeL() function and return KErrNone if successed. |
|
656 //! 36.Updates a service record attribute with a value of Desc16 using UpdateAttributeL() function and return KErrNone if successed. |
|
657 //! 37.Updates a service record attribute with a value of DesC8 using UpdateAttributeL() function and return KErrNone if successed. |
|
658 //! 38.Updates a service record attribute with a value of integer using UpdateAttributeL() function and return KErrNone if successed. |
|
659 //! 39.Delete multiple attributes from service record using DeleteAttributeL() function and return KErrNone if successed. |
|
660 //! 40.Deletes multiple service records using DeleteRecordL() function and return KErrNone if successed. |
|
661 //! 41.Close the SDP database subsession using Close() function. |
|
662 //! 42.Close the client process using Close() function. |
|
663 //! @SYMTestStatus Implemented |
|
664 //! @SYMTestPriority Critical |
|
665 //! @SYMTestExpectedResults Updated a service record attribute with different type of object: DesC8, Desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString, |
|
666 //! then re-create the desc8, desc16, integer, CSdpAttrValueInt, CSdpAttrValueBoolean and CSdpAttrValueString again and update them to serive record attribute successfully. |
|
667 //! @SYMTestType CIT |
|
668 |
|
669 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
670 SHARED_ACTIVE_SCHEDULER |
|
671 CREATE_OBJECT RSdpDatabase database |
|
672 CREATE_OBJECT RSdp rsdp |
|
673 CREATE_OBJECT CSdpAttrValueDES attrValueDES |
|
674 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
675 CREATE_OBJECT CSdpAttrValueBoolean attrValueBoolean |
|
676 CREATE_OBJECT CSdpAttrValueString attrValueString |
|
677 COMMAND attrValueDES NewDESL |
|
678 COMMAND attrValueDES StartListL |
|
679 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3668-0001command4BuildUUIDL |
|
680 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3668-0001command5BuildUUIDL |
|
681 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3668-0001command6BuildUUIDL |
|
682 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3668-0001command7BuildUUIDL |
|
683 COMMAND attrValueDES BuildUUIDL BTSDP-Database-PublicApi-Passive-3668-0001command8BuildUUIDL |
|
684 COMMAND attrValueDES EndListL |
|
685 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3668-0001command11NewIntL |
|
686 COMMAND attrValueBoolean NewBoolL BTSDP-Database-PublicApi-Passive-3668-0001command13NewBoolL |
|
687 COMMAND attrValueString NewStringL BTSDP-Database-PublicApi-Passive-3668-0001command15NewStringL |
|
688 COMMAND rsdp Constructor |
|
689 COMMAND rsdp Connect |
|
690 OUTSTANDING |
|
691 COMMAND database Constructor |
|
692 COMMAND database Open BTSDP-Database-PublicApi-Passive-3668-0001command21Open |
|
693 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3668-0001command22CreateServiceRecordL |
|
694 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3668-0001command23CreateServiceRecordL |
|
695 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3668-0001command24CreateServiceRecordL |
|
696 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3668-0001command25CreateServiceRecordL |
|
697 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3668-0001command26CreateServiceRecordL |
|
698 COMMAND database CreateServiceRecordL BTSDP-Database-PublicApi-Passive-3668-0001command27CreateServiceRecordL |
|
699 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command28UpdateAttributeL |
|
700 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command29UpdateAttributeL |
|
701 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command30UpdateAttributeL |
|
702 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command31UpdateAttributeL |
|
703 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command32UpdateAttributeL |
|
704 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command33UpdateAttributeL |
|
705 COMMAND attrValueInt NewIntL BTSDP-Database-PublicApi-Passive-3668-0001command35NewIntL |
|
706 COMMAND attrValueBoolean NewBoolL BTSDP-Database-PublicApi-Passive-3668-0001command37NewBoolL |
|
707 COMMAND attrValueString NewStringL BTSDP-Database-PublicApi-Passive-3668-0001command39NewStringL |
|
708 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command41UpdateAttributeL |
|
709 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command42UpdateAttributeL |
|
710 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command43UpdateAttributeL |
|
711 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command44UpdateAttributeL |
|
712 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command45UpdateAttributeL |
|
713 COMMAND database UpdateAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command46UpdateAttributeL |
|
714 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command47DeleteAttributeL |
|
715 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command48DeleteAttributeL |
|
716 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command49DeleteAttributeL |
|
717 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command50DeleteAttributeL |
|
718 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command51DeleteAttributeL |
|
719 COMMAND database DeleteAttributeL BTSDP-Database-PublicApi-Passive-3668-0001command52DeleteAttributeL |
|
720 STORE database |
|
721 STORE rsdp |
|
722 STORE_ACTIVE_SCHEDULER |
|
723 END_TEST_BLOCK |
|
724 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3608-0001 |
|
725 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3608-0001 |
|
726 START_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3608-0002 |
|
727 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
728 SHARED_ACTIVE_SCHEDULER |
|
729 RESTORE_OBJECT RSdpDatabase database |
|
730 RESTORE_OBJECT RSdp rsdp |
|
731 COMMAND database DeleteRecordL |
|
732 COMMAND database DeleteRecordL |
|
733 COMMAND database DeleteRecordL |
|
734 COMMAND database DeleteRecordL |
|
735 COMMAND database DeleteRecordL |
|
736 COMMAND database DeleteRecordL |
|
737 COMMAND database Close |
|
738 COMMAND rsdp Close |
|
739 END_TEST_BLOCK |
|
740 END_SYNCHRONISED_TESTCASE BTSDP-Database-PublicApi-Active-3608-0002 |
|
741 |
|
742 END_TESTCASE BTSDP-Database-PublicApi-Passive-Slave-3668 |
|
743 |
|
744 |
|
745 // **************************************************************************** |
|
746 // RSdp Tests |
|
747 // **************************************************************************** |
|
748 |
|
749 START_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Slave-3761 |
|
750 //! @SYMTestCaseID BTSDP-Rsdp-PublicApi-Passive-Slave-3761 |
|
751 //! @SYMAPI RSdp |
|
752 //! |
|
753 //! @SYMTestCaseDesc Prepare and set up the service record for the master device to retrieve, then check the number of open subsessions on the database. |
|
754 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
755 //! Constructor(), Connect(), Close(), ResourceCountMarkStart(), ResourceCountMarkEnd(), ResourceCount() from RSdp |
|
756 //! NewIntL() from CSdpAttrValueInt |
|
757 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
758 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
759 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
760 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
761 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
762 //! 6. Read an input service record UUID from test data if successful. |
|
763 //! 7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
764 //! 8. Read an input attribute ID from test data if successful. |
|
765 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
766 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
767 //! 11.Open multiple SDP database subsessions using Open() function and return KErrNone if successed. |
|
768 //! 12.Start the counter to keep track of how many open subsessions and return KErrNone if successed. |
|
769 //! 13.Get the number of open subsessions are on the database. |
|
770 //! 14.Function passes if the number of open subsessions are same as expected number. |
|
771 //! 15.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
772 //! 16.Close the SDP database subsession using Close() function. |
|
773 //! 17.Close the client process using Close() function. |
|
774 //! @SYMTestStatus Implemented |
|
775 //! @SYMTestPriority Medium |
|
776 //! @SYMTestExpectedResults Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
777 //! Get the number of open subsessions on the database are same as expected number. |
|
778 //! @SYMTestType CIT |
|
779 |
|
780 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
781 SHARED_ACTIVE_SCHEDULER |
|
782 CREATE_OBJECT RSdpDatabase database |
|
783 CREATE_OBJECT RSdp rsdp |
|
784 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
785 COMMAND attrValueInt NewIntL BTSDP-Rsdp-PublicApi-Passive-3761-0001command2NewIntL |
|
786 COMMAND rsdp Constructor |
|
787 COMMAND rsdp Connect |
|
788 OUTSTANDING |
|
789 COMMAND database Constructor |
|
790 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3761-0001command8Open |
|
791 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3761-0001command9CreateServiceRecordL |
|
792 COMMAND database UpdateAttributeL BTSDP-Rsdp-PublicApi-Passive-3761-0001command10UpdateAttributeL |
|
793 COMMAND attrValueInt NewIntL BTSDP-Rsdp-PublicApi-Passive-3761-0001command12NewIntL |
|
794 COMMAND database UpdateAttributeL BTSDP-Rsdp-PublicApi-Passive-3761-0001command14UpdateAttributeL |
|
795 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3761-0001command15Open |
|
796 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3761-0001command16Open |
|
797 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3761-0001command17Open |
|
798 COMMAND rsdp ResourceCountMarkStart |
|
799 COMMAND rsdp ResourceCount BTSDP-Rsdp-PublicApi-Passive-3761-0001command20ResourceCount |
|
800 COMMAND rsdp ResourceCountMarkEnd |
|
801 STORE database |
|
802 STORE rsdp |
|
803 STORE_ACTIVE_SCHEDULER |
|
804 END_TEST_BLOCK |
|
805 START_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3701-0001 |
|
806 END_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3701-0001 |
|
807 START_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3701-0002 |
|
808 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
809 SHARED_ACTIVE_SCHEDULER |
|
810 RESTORE_OBJECT RSdpDatabase database |
|
811 RESTORE_OBJECT RSdp rsdp |
|
812 COMMAND database DeleteRecordL |
|
813 COMMAND database Close |
|
814 COMMAND rsdp Close |
|
815 END_TEST_BLOCK |
|
816 END_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3701-0002 |
|
817 END_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Slave-3761 |
|
818 |
|
819 |
|
820 START_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Slave-3762 |
|
821 //! @SYMTestCaseID BTSDP-Rsdp-PublicApi-Passive-Slave-3762 |
|
822 //! @SYMAPI Rsdp |
|
823 //! |
|
824 //! @SYMTestCaseDesc Prepare and set up the service record for the master device to retrieve, then check check the version of the database server name, version number on the database. |
|
825 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
826 //! Constructor(), Connect(), Close(), Version() from RSdp |
|
827 //! NewIntL() from CSdpAttrValueInt |
|
828 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
829 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
830 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
831 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
832 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
833 //! 6. Read Multiple input service record UUIDs from test data if successful. |
|
834 //! 7. Creates multiple new service records with the service record UUIDs using CreateServiceRecordL() function and return KErrNone if successed. |
|
835 //! 8. Read an input attribute ID from test data if successful. |
|
836 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
837 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
838 //! 11.Re-Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
839 //! 12.Update a service record attribute again with a new value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
840 //! 13.Get the version of the database server name, version number and return KErrNone if successed. |
|
841 //! 14.Function passes if the version name and version number of the database server are same as expected. |
|
842 //! 15.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
843 //! 16.Close the SDP database subsession using Close() function. |
|
844 //! 17.Close the client process using Close() function. |
|
845 //! @SYMTestStatus Implemented |
|
846 //! @SYMTestPriority Medium |
|
847 //! @SYMTestExpectedResults Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
848 //! Get the version of the database server name, version number on the database are same as expected. |
|
849 //! @SYMTestType CIT |
|
850 |
|
851 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
852 SHARED_ACTIVE_SCHEDULER |
|
853 CREATE_OBJECT RSdpDatabase database |
|
854 CREATE_OBJECT RSdp rsdp |
|
855 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
856 COMMAND attrValueInt NewIntL BTSDP-Rsdp-PublicApi-Passive-3762-0001command2NewIntL |
|
857 COMMAND rsdp Constructor |
|
858 COMMAND rsdp Connect |
|
859 OUTSTANDING |
|
860 COMMAND database Constructor |
|
861 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3762-0001command8Open |
|
862 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3762-0001command9CreateServiceRecordL |
|
863 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3762-0001command10CreateServiceRecordL |
|
864 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3762-0001command11CreateServiceRecordL |
|
865 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3762-0001command12CreateServiceRecordL |
|
866 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3762-0001command13CreateServiceRecordL |
|
867 COMMAND database UpdateAttributeL BTSDP-Rsdp-PublicApi-Passive-3762-0001command14UpdateAttributeL |
|
868 COMMAND attrValueInt NewIntL BTSDP-Rsdp-PublicApi-Passive-3762-0001command16NewIntL |
|
869 COMMAND database UpdateAttributeL BTSDP-Rsdp-PublicApi-Passive-3762-0001command18UpdateAttributeL |
|
870 COMMAND rsdp Version BTSDP-Rsdp-PublicApi-Passive-3762-0001command20Version |
|
871 STORE database |
|
872 STORE rsdp |
|
873 STORE_ACTIVE_SCHEDULER |
|
874 END_TEST_BLOCK |
|
875 START_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3702-0001 |
|
876 END_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3702-0001 |
|
877 START_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3702-0002 |
|
878 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
879 SHARED_ACTIVE_SCHEDULER |
|
880 RESTORE_OBJECT RSdpDatabase database |
|
881 RESTORE_OBJECT RSdp rsdp |
|
882 COMMAND database DeleteRecordL |
|
883 COMMAND database DeleteRecordL |
|
884 COMMAND database DeleteRecordL |
|
885 COMMAND database DeleteRecordL |
|
886 COMMAND database DeleteRecordL |
|
887 COMMAND database Close |
|
888 COMMAND rsdp Close |
|
889 END_TEST_BLOCK |
|
890 END_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3702-0002 |
|
891 |
|
892 END_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Slave-3762 |
|
893 |
|
894 START_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Slave-3763 |
|
895 //! @SYMTestCaseID BTSDP-Rsdp-PublicApi-Passive-Slave-3763 |
|
896 //! @SYMAPI Rsdp |
|
897 //! |
|
898 //! @SYMTestCaseDesc Prepare and set up the service record for the master device to retrieve, then check the number of open subsessions on the database and |
|
899 //! check the version of the database server name, version number on the database |
|
900 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
901 //! Constructor(), Connect(), Close(), ResourceCountMarkStart(), ResourceCountMarkEnd(), ResourceCount() from RSdp |
|
902 //! NewIntL() from CSdpAttrValueInt |
|
903 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
904 //! 2. Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
905 //! 3. Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
906 //! 4. Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
907 //! 5. Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
908 //! 6. Read an input service record UUID from test data if successful. |
|
909 //! 7. Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
910 //! 8. Read an input attribute ID from test data if successful. |
|
911 //! 9. Read the CSdpAttrValueInt object from test data if successful. |
|
912 //! 10.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
913 //! 11.Open multiple SDP database subsessions using Open() function and return KErrNone if successed. |
|
914 //! 12.Start the counter to keep track of how many open subsessions and return KErrNone if successed. |
|
915 //! 13.Get the number of open subsessions are on the database. |
|
916 //! 14.Function passes if the number of open subsessions are same as expected number. |
|
917 //! 15.Get the version of the database server name, version number and return KErrNone if successed. |
|
918 //! 16.Function passes if the version name and version number of the database server are same as expected. |
|
919 //! 17.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
920 //! 18.Close the SDP database subsession using Close() function. |
|
921 //! 19.Close the client process using Close() function. |
|
922 //! @SYMTestStatus Implemented |
|
923 //! @SYMTestPriority Medium |
|
924 //! @SYMTestExpectedResults Updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
925 //! Get the number of open subsessions on the database are same as expected number. |
|
926 //! Get the version of the database server name, version number on the database are same as expected. |
|
927 //! @SYMTestType CIT |
|
928 |
|
929 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
930 SHARED_ACTIVE_SCHEDULER |
|
931 CREATE_OBJECT RSdpDatabase database |
|
932 CREATE_OBJECT RSdp rsdp |
|
933 CREATE_OBJECT CSdpAttrValueDES attrValueDES |
|
934 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
935 COMMAND attrValueDES NewDESL |
|
936 COMMAND attrValueDES StartListL |
|
937 COMMAND attrValueDES BuildUUIDL BTSDP-Rsdp-PublicApi-Passive-3763-0001command4BuildUUIDL |
|
938 COMMAND attrValueDES BuildUUIDL BTSDP-Rsdp-PublicApi-Passive-3763-0001command5BuildUUIDL |
|
939 COMMAND attrValueDES BuildUUIDL BTSDP-Rsdp-PublicApi-Passive-3763-0001command6BuildUUIDL |
|
940 COMMAND attrValueDES BuildUUIDL BTSDP-Rsdp-PublicApi-Passive-3763-0001command7BuildUUIDL |
|
941 COMMAND attrValueDES BuildUUIDL BTSDP-Rsdp-PublicApi-Passive-3763-0001command8BuildUUIDL |
|
942 COMMAND attrValueDES EndListL |
|
943 COMMAND attrValueInt NewIntL BTSDP-Rsdp-PublicApi-Passive-3763-0001command11NewIntL |
|
944 COMMAND rsdp Constructor |
|
945 COMMAND rsdp Connect |
|
946 OUTSTANDING |
|
947 COMMAND database Constructor |
|
948 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3763-0001command17Open |
|
949 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3763-0001command18CreateServiceRecordL |
|
950 COMMAND database CreateServiceRecordL BTSDP-Rsdp-PublicApi-Passive-3763-0001command19CreateServiceRecordL |
|
951 COMMAND database UpdateAttributeL BTSDP-Rsdp-PublicApi-Passive-3763-0001command20UpdateAttributeL |
|
952 COMMAND attrValueInt NewIntL BTSDP-Rsdp-PublicApi-Passive-3763-0001command22NewIntL |
|
953 COMMAND database UpdateAttributeL BTSDP-Rsdp-PublicApi-Passive-3763-0001command24UpdateAttributeL |
|
954 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3763-0001command25Open |
|
955 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3763-0001command26Open |
|
956 COMMAND database Open BTSDP-Rsdp-PublicApi-Passive-3763-0001command27Open |
|
957 COMMAND rsdp ResourceCountMarkStart |
|
958 COMMAND rsdp ResourceCount BTSDP-Rsdp-PublicApi-Passive-3763-0001command30ResourceCount |
|
959 COMMAND rsdp ResourceCountMarkEnd |
|
960 COMMAND rsdp Version BTSDP-Rsdp-PublicApi-Passive-3763-0001command32Version |
|
961 STORE database |
|
962 STORE rsdp |
|
963 STORE_ACTIVE_SCHEDULER |
|
964 END_TEST_BLOCK |
|
965 START_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3703-0001 |
|
966 END_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3703-0001 |
|
967 START_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3703-0002 |
|
968 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
969 SHARED_ACTIVE_SCHEDULER |
|
970 RESTORE_OBJECT RSdpDatabase database |
|
971 RESTORE_OBJECT RSdp rsdp |
|
972 COMMAND database DeleteRecordL |
|
973 COMMAND database DeleteRecordL |
|
974 COMMAND database Close |
|
975 COMMAND rsdp Close |
|
976 END_TEST_BLOCK |
|
977 END_SYNCHRONISED_TESTCASE BTSDP-Rsdp-PublicApi-Active-3703-0002 |
|
978 |
|
979 END_TESTCASE BTSDP-Rsdp-PublicApi-Passive-Slave-3763 |
|
980 |
|
981 |
|
982 // **************************************************************************** |
|
983 // CSdpAttrValueInt Tests |
|
984 // **************************************************************************** |
|
985 |
|
986 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3861 |
|
987 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Passive-Slave-3861 |
|
988 //! @SYMAPI CSdpAttrValueInt |
|
989 //! |
|
990 //! @SYMTestCaseDesc Updated a service record attribute with integer type of objects : CSdpAttrValueInt, |
|
991 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
992 //! and check if the object can hold the Integer value, |
|
993 //! then prepare, set up the service record for the master device to retrieve |
|
994 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
995 //! Constructor(), Connect(), Close() from RSdp |
|
996 //! NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt |
|
997 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
998 //! 2. Get the current size of CSdpAttrValueInt object using DataSize() function |
|
999 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1000 //! 4. Test failed if sizes doesn't match. |
|
1001 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1002 //! 6. Test failed if type doesn't match. |
|
1003 //! 7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value |
|
1004 //! is same as actual signed integer value. |
|
1005 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1006 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1007 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1008 //! 11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor. |
|
1009 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1010 //! and check if actual integer value is same as expected input integer value. |
|
1011 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1012 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1013 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1014 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1015 //! 17.Read an input service record UUID from test data if successful. |
|
1016 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1017 //! 19.Read an input attribute ID from test data if successful. |
|
1018 //! 20.Read the CSdpAttrValueInt object from test data if successful. |
|
1019 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
1020 //! 22.Deconstructs CSdpAttrValueInt object. |
|
1021 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1022 //! 24.Close the SDP database subsession using Close() function. |
|
1023 //! 25.Close the client process using Close() function. |
|
1024 //! @SYMTestStatus Implemented |
|
1025 //! @SYMTestPriority Low |
|
1026 //! @SYMTestExpectedResults Verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1027 //! and check if the object can hold the Integer value, |
|
1028 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1029 //! @SYMTestType CIT |
|
1030 |
|
1031 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1032 SHARED_ACTIVE_SCHEDULER |
|
1033 CREATE_OBJECT RSdpDatabase database |
|
1034 CREATE_OBJECT RSdp rsdp |
|
1035 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
1036 COMMAND attrValueInt NewIntL BTSDP-AttrValInt-PublicApi-Passive-3861-0001command2NewIntL |
|
1037 COMMAND attrValueInt DataSize BTSDP-AttrValInt-PublicApi-Passive-3861-0001command3DataSize |
|
1038 COMMAND attrValueInt Type BTSDP-AttrValInt-PublicApi-Passive-3861-0001command4Type |
|
1039 COMMAND attrValueInt Int BTSDP-AttrValInt-PublicApi-Passive-3861-0001command5Int |
|
1040 COMMAND attrValueInt DoesIntFit BTSDP-AttrValInt-PublicApi-Passive-3861-0001command6DoesIntFit |
|
1041 COMMAND attrValueInt Des BTSDP-AttrValInt-PublicApi-Passive-3861-0001command7Des |
|
1042 COMMAND rsdp Constructor |
|
1043 COMMAND rsdp Connect |
|
1044 OUTSTANDING |
|
1045 COMMAND database Constructor |
|
1046 COMMAND database Open BTSDP-AttrValInt-PublicApi-Passive-3861-0001command13Open |
|
1047 COMMAND database CreateServiceRecordL BTSDP-AttrValInt-PublicApi-Passive-3861-0001command14CreateServiceRecordL |
|
1048 COMMAND database UpdateAttributeL BTSDP-AttrValInt-PublicApi-Passive-3861-0001command15UpdateAttributeL |
|
1049 COMMAND attrValueInt ~ |
|
1050 STORE database |
|
1051 STORE rsdp |
|
1052 STORE_ACTIVE_SCHEDULER |
|
1053 END_TEST_BLOCK |
|
1054 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3801-0001 |
|
1055 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3801-0001 |
|
1056 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3801-0002 |
|
1057 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1058 SHARED_ACTIVE_SCHEDULER |
|
1059 RESTORE_OBJECT RSdpDatabase database |
|
1060 RESTORE_OBJECT RSdp rsdp |
|
1061 COMMAND database DeleteRecordL |
|
1062 COMMAND database Close |
|
1063 COMMAND rsdp Close |
|
1064 END_TEST_BLOCK |
|
1065 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3801-0002 |
|
1066 END_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3861 |
|
1067 |
|
1068 |
|
1069 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3862 |
|
1070 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Passive-Slave-3862 |
|
1071 //! @SYMAPI CSdpAttrValueInt |
|
1072 //! |
|
1073 //! @SYMTestCaseDesc Updated a service record attribute with 32 bits of integer type of objects : CSdpAttrValueInt, |
|
1074 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1075 //! and check if the object can hold the Integer value, |
|
1076 //! then prepare, set up the service record for the master device to retrieve |
|
1077 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1078 //! Constructor(), Connect(), Close() from RSdp |
|
1079 //! NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt |
|
1080 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
1081 //! 2. Get the current size of CSdpAttrValueInt object using DataSize() function |
|
1082 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1083 //! 4. Test failed if sizes doesn't match. |
|
1084 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1085 //! 6. Test failed if type doesn't match. |
|
1086 //! 7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value |
|
1087 //! is same as actual signed integer value. |
|
1088 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1089 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1090 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1091 //! 11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor. |
|
1092 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1093 //! and check if actual integer value is same as expected input integer value. |
|
1094 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1095 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1096 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1097 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1098 //! 17.Read an input service record UUID from test data if successful. |
|
1099 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1100 //! 19.Read an input attribute ID from test data if successful. |
|
1101 //! 20.Read the CSdpAttrValueInt object from test data if successful. |
|
1102 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
1103 //! 22.Deconstructs CSdpAttrValueInt object. |
|
1104 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1105 //! 24.Close the SDP database subsession using Close() function. |
|
1106 //! 25.Close the client process using Close() function. |
|
1107 //! @SYMTestStatus Implemented |
|
1108 //! @SYMTestPriority Low |
|
1109 //! @SYMTestExpectedResults Verify the 32 bits of integer object's data size, type, Integer value, data pointer descriptor, |
|
1110 //! and check if the object can hold the Integer value, |
|
1111 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1112 //! @SYMTestType CIT |
|
1113 |
|
1114 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1115 SHARED_ACTIVE_SCHEDULER |
|
1116 CREATE_OBJECT RSdpDatabase database |
|
1117 CREATE_OBJECT RSdp rsdp |
|
1118 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
1119 COMMAND attrValueInt NewIntL BTSDP-AttrValInt-PublicApi-Passive-3862-0001command2NewIntL |
|
1120 COMMAND attrValueInt DataSize BTSDP-AttrValInt-PublicApi-Passive-3862-0001command3DataSize |
|
1121 COMMAND attrValueInt Type BTSDP-AttrValInt-PublicApi-Passive-3862-0001command4Type |
|
1122 COMMAND attrValueInt Int BTSDP-AttrValInt-PublicApi-Passive-3862-0001command5Int |
|
1123 COMMAND attrValueInt DoesIntFit BTSDP-AttrValInt-PublicApi-Passive-3862-0001command6DoesIntFit |
|
1124 COMMAND attrValueInt Des BTSDP-AttrValInt-PublicApi-Passive-3862-0001command7Des |
|
1125 COMMAND rsdp Constructor |
|
1126 COMMAND rsdp Connect |
|
1127 OUTSTANDING |
|
1128 COMMAND database Constructor |
|
1129 COMMAND database Open BTSDP-AttrValInt-PublicApi-Passive-3862-0001command13Open |
|
1130 COMMAND database CreateServiceRecordL BTSDP-AttrValInt-PublicApi-Passive-3862-0001command14CreateServiceRecordL |
|
1131 COMMAND database UpdateAttributeL BTSDP-AttrValInt-PublicApi-Passive-3862-0001command15UpdateAttributeL |
|
1132 COMMAND attrValueInt ~ |
|
1133 STORE database |
|
1134 STORE rsdp |
|
1135 STORE_ACTIVE_SCHEDULER |
|
1136 END_TEST_BLOCK |
|
1137 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3802-0001 |
|
1138 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3802-0001 |
|
1139 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3802-0002 |
|
1140 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1141 SHARED_ACTIVE_SCHEDULER |
|
1142 RESTORE_OBJECT RSdpDatabase database |
|
1143 RESTORE_OBJECT RSdp rsdp |
|
1144 COMMAND database DeleteRecordL |
|
1145 COMMAND database Close |
|
1146 COMMAND rsdp Close |
|
1147 END_TEST_BLOCK |
|
1148 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3802-0002 |
|
1149 |
|
1150 END_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3862 |
|
1151 |
|
1152 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3863 |
|
1153 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Passive-Slave-3863 |
|
1154 //! @SYMAPI CSdpAttrValueInt |
|
1155 //! |
|
1156 //! @SYMTestCaseDesc Updated a service record attribute with negative 32 bits of integer type of objects : CSdpAttrValueInt, |
|
1157 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1158 //! and check if the object can hold the Integer value, |
|
1159 //! then prepare, set up the service record for the master device to retrieve |
|
1160 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1161 //! Constructor(), Connect(), Close() from RSdp |
|
1162 //! NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt |
|
1163 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
1164 //! 2. Get the current size of CSdpAttrValueInt object using DataSize() function |
|
1165 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1166 //! 4. Test failed if sizes doesn't match. |
|
1167 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1168 //! 6. Test failed if type doesn't match. |
|
1169 //! 7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value |
|
1170 //! is same as actual signed integer value. |
|
1171 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1172 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1173 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1174 //! 11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor. |
|
1175 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1176 //! and check if actual integer value is same as expected input integer value. |
|
1177 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1178 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1179 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1180 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1181 //! 17.Read an input service record UUID from test data if successful. |
|
1182 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1183 //! 19.Read an input attribute ID from test data if successful. |
|
1184 //! 20.Read the CSdpAttrValueInt object from test data if successful. |
|
1185 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
1186 //! 22.Deconstructs CSdpAttrValueInt object. |
|
1187 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1188 //! 24.Close the SDP database subsession using Close() function. |
|
1189 //! 25.Close the client process using Close() function. |
|
1190 //! @SYMTestStatus Implemented |
|
1191 //! @SYMTestPriority Low |
|
1192 //! @SYMTestExpectedResults Verify the negative 32 bits of integer object's data size, type, Integer value, data pointer descriptor, |
|
1193 //! and check if the object can hold the Integer value, |
|
1194 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1195 //! @SYMTestType CIT |
|
1196 |
|
1197 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1198 SHARED_ACTIVE_SCHEDULER |
|
1199 CREATE_OBJECT RSdpDatabase database |
|
1200 CREATE_OBJECT RSdp rsdp |
|
1201 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
1202 COMMAND attrValueInt NewIntL BTSDP-AttrValInt-PublicApi-Passive-3863-0001command2NewIntL |
|
1203 COMMAND attrValueInt DataSize BTSDP-AttrValInt-PublicApi-Passive-3863-0001command3DataSize |
|
1204 COMMAND attrValueInt Type BTSDP-AttrValInt-PublicApi-Passive-3863-0001command4Type |
|
1205 COMMAND attrValueInt Int BTSDP-AttrValInt-PublicApi-Passive-3863-0001command5Int |
|
1206 COMMAND attrValueInt DoesIntFit BTSDP-AttrValInt-PublicApi-Passive-3863-0001command6DoesIntFit |
|
1207 COMMAND attrValueInt Des BTSDP-AttrValInt-PublicApi-Passive-3863-0001command7Des |
|
1208 COMMAND rsdp Constructor |
|
1209 COMMAND rsdp Connect |
|
1210 OUTSTANDING |
|
1211 COMMAND database Constructor |
|
1212 COMMAND database Open BTSDP-AttrValInt-PublicApi-Passive-3863-0001command13Open |
|
1213 COMMAND database CreateServiceRecordL BTSDP-AttrValInt-PublicApi-Passive-3863-0001command14CreateServiceRecordL |
|
1214 COMMAND database UpdateAttributeL BTSDP-AttrValInt-PublicApi-Passive-3863-0001command15UpdateAttributeL |
|
1215 COMMAND attrValueInt ~ |
|
1216 STORE database |
|
1217 STORE rsdp |
|
1218 STORE_ACTIVE_SCHEDULER |
|
1219 END_TEST_BLOCK |
|
1220 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3803-0001 |
|
1221 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3803-0001 |
|
1222 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3803-0002 |
|
1223 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1224 SHARED_ACTIVE_SCHEDULER |
|
1225 RESTORE_OBJECT RSdpDatabase database |
|
1226 RESTORE_OBJECT RSdp rsdp |
|
1227 COMMAND database DeleteRecordL |
|
1228 COMMAND database Close |
|
1229 COMMAND rsdp Close |
|
1230 END_TEST_BLOCK |
|
1231 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3803-0002 |
|
1232 |
|
1233 END_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3863 |
|
1234 |
|
1235 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3864 |
|
1236 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Passive-Slave-3864 |
|
1237 //! @SYMAPI CSdpAttrValueInt |
|
1238 //! |
|
1239 //! @SYMTestCaseDesc Updated a service record attribute with 16 bits of integer type of objects : CSdpAttrValueInt, |
|
1240 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1241 //! and check if the object can hold the Integer value, |
|
1242 //! then prepare, set up the service record for the master device to retrieve |
|
1243 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1244 //! Constructor(), Connect(), Close() from RSdp |
|
1245 //! NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt |
|
1246 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
1247 //! 2. Get the current size of CSdpAttrValueInt object using DataSize() function |
|
1248 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1249 //! 4. Test failed if sizes doesn't match. |
|
1250 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1251 //! 6. Test failed if type doesn't match. |
|
1252 //! 7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value |
|
1253 //! is same as actual signed integer value. |
|
1254 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1255 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1256 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1257 //! 11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor. |
|
1258 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1259 //! and check if actual integer value is same as expected input integer value. |
|
1260 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1261 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1262 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1263 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1264 //! 17.Read an input service record UUID from test data if successful. |
|
1265 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1266 //! 19.Read an input attribute ID from test data if successful. |
|
1267 //! 20.Read the CSdpAttrValueInt object from test data if successful. |
|
1268 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
1269 //! 22.Deconstructs CSdpAttrValueInt object. |
|
1270 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1271 //! 24.Close the SDP database subsession using Close() function. |
|
1272 //! 25.Close the client process using Close() function. |
|
1273 //! @SYMTestStatus Implemented |
|
1274 //! @SYMTestPriority Low |
|
1275 //! @SYMTestExpectedResults Verify the 16 bits of integer object's data size, type, Integer value, data pointer descriptor, |
|
1276 //! and check if the object can hold the Integer value, |
|
1277 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1278 //! @SYMTestType CIT |
|
1279 |
|
1280 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1281 SHARED_ACTIVE_SCHEDULER |
|
1282 CREATE_OBJECT RSdpDatabase database |
|
1283 CREATE_OBJECT RSdp rsdp |
|
1284 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
1285 COMMAND attrValueInt NewIntL BTSDP-AttrValInt-PublicApi-Passive-3864-0001command2NewIntL |
|
1286 COMMAND attrValueInt DataSize BTSDP-AttrValInt-PublicApi-Passive-3864-0001command3DataSize |
|
1287 COMMAND attrValueInt Type BTSDP-AttrValInt-PublicApi-Passive-3864-0001command4Type |
|
1288 COMMAND attrValueInt Int BTSDP-AttrValInt-PublicApi-Passive-3864-0001command5Int |
|
1289 COMMAND attrValueInt DoesIntFit BTSDP-AttrValInt-PublicApi-Passive-3864-0001command6DoesIntFit |
|
1290 COMMAND attrValueInt Des BTSDP-AttrValInt-PublicApi-Passive-3864-0001command7Des |
|
1291 COMMAND rsdp Constructor |
|
1292 COMMAND rsdp Connect |
|
1293 OUTSTANDING |
|
1294 COMMAND database Constructor |
|
1295 COMMAND database Open BTSDP-AttrValInt-PublicApi-Passive-3864-0001command13Open |
|
1296 COMMAND database CreateServiceRecordL BTSDP-AttrValInt-PublicApi-Passive-3864-0001command14CreateServiceRecordL |
|
1297 COMMAND database UpdateAttributeL BTSDP-AttrValInt-PublicApi-Passive-3864-0001command15UpdateAttributeL |
|
1298 COMMAND attrValueInt ~ |
|
1299 STORE database |
|
1300 STORE rsdp |
|
1301 STORE_ACTIVE_SCHEDULER |
|
1302 END_TEST_BLOCK |
|
1303 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3804-0001 |
|
1304 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3804-0001 |
|
1305 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3804-0002 |
|
1306 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1307 SHARED_ACTIVE_SCHEDULER |
|
1308 RESTORE_OBJECT RSdpDatabase database |
|
1309 RESTORE_OBJECT RSdp rsdp |
|
1310 COMMAND database DeleteRecordL |
|
1311 COMMAND database Close |
|
1312 COMMAND rsdp Close |
|
1313 END_TEST_BLOCK |
|
1314 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3804-0002 |
|
1315 |
|
1316 END_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3864 |
|
1317 |
|
1318 START_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3865 |
|
1319 //! @SYMTestCaseID BTSDP-AttrValInt-PublicApi-Passive-Slave-3865 |
|
1320 //! @SYMAPI CSdpAttrValueInt |
|
1321 //! |
|
1322 //! @SYMTestCaseDesc Updated a service record attribute with negative 16 bits of integer type of objects : CSdpAttrValueInt, |
|
1323 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1324 //! and check if the object can hold the Integer value, |
|
1325 //! then prepare, set up the service record for the master device to retrieve |
|
1326 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1327 //! Constructor(), Connect(), Close() from RSdp |
|
1328 //! NewIntL(), DataSize(), Type(), Int(), DoesIntFit(), Des() from CSdpAttrValueInt |
|
1329 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueInt object using NewIntL() function and return KErrNone if successed. |
|
1330 //! 2. Get the current size of CSdpAttrValueInt object using DataSize() function |
|
1331 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1332 //! 4. Test failed if sizes doesn't match. |
|
1333 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1334 //! 6. Test failed if type doesn't match. |
|
1335 //! 7. Verify the object signed integer value using Int() function. Test pass if expected signed integer value |
|
1336 //! is same as actual signed integer value. |
|
1337 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1338 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1339 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1340 //! 11.Use Des() function to retrieve CSdpAttrValueInt object's data pointer descriptor. |
|
1341 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1342 //! and check if actual integer value is same as expected input integer value. |
|
1343 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1344 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1345 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1346 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1347 //! 17.Read an input service record UUID from test data if successful. |
|
1348 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1349 //! 19.Read an input attribute ID from test data if successful. |
|
1350 //! 20.Read the CSdpAttrValueInt object from test data if successful. |
|
1351 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueInt using UpdateAttributeL() function and return KErrNone if successed. |
|
1352 //! 22.Deconstructs CSdpAttrValueInt object. |
|
1353 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1354 //! 24.Close the SDP database subsession using Close() function. |
|
1355 //! 25.Close the client process using Close() function. |
|
1356 //! @SYMTestStatus Implemented |
|
1357 //! @SYMTestPriority Low |
|
1358 //! @SYMTestExpectedResults Verify the negative 16 bits of integer object's data size, type, Integer value, data pointer descriptor, |
|
1359 //! and check if the object can hold the Integer value, |
|
1360 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1361 //! @SYMTestType CIT |
|
1362 |
|
1363 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1364 SHARED_ACTIVE_SCHEDULER |
|
1365 CREATE_OBJECT RSdpDatabase database |
|
1366 CREATE_OBJECT RSdp rsdp |
|
1367 CREATE_OBJECT CSdpAttrValueInt attrValueInt |
|
1368 COMMAND attrValueInt NewIntL BTSDP-AttrValInt-PublicApi-Passive-3865-0001command2NewIntL |
|
1369 COMMAND attrValueInt DataSize BTSDP-AttrValInt-PublicApi-Passive-3865-0001command3DataSize |
|
1370 COMMAND attrValueInt Type BTSDP-AttrValInt-PublicApi-Passive-3865-0001command4Type |
|
1371 COMMAND attrValueInt Int BTSDP-AttrValInt-PublicApi-Passive-3865-0001command5Int |
|
1372 COMMAND attrValueInt DoesIntFit BTSDP-AttrValInt-PublicApi-Passive-3865-0001command6DoesIntFit |
|
1373 COMMAND attrValueInt Des BTSDP-AttrValInt-PublicApi-Passive-3865-0001command7Des |
|
1374 COMMAND rsdp Constructor |
|
1375 COMMAND rsdp Connect |
|
1376 OUTSTANDING |
|
1377 COMMAND database Constructor |
|
1378 COMMAND database Open BTSDP-AttrValInt-PublicApi-Passive-3865-0001command13Open |
|
1379 COMMAND database CreateServiceRecordL BTSDP-AttrValInt-PublicApi-Passive-3865-0001command14CreateServiceRecordL |
|
1380 COMMAND database UpdateAttributeL BTSDP-AttrValInt-PublicApi-Passive-3865-0001command15UpdateAttributeL |
|
1381 COMMAND attrValueInt ~ |
|
1382 STORE database |
|
1383 STORE rsdp |
|
1384 STORE_ACTIVE_SCHEDULER |
|
1385 END_TEST_BLOCK |
|
1386 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3805-0001 |
|
1387 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3805-0001 |
|
1388 START_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3805-0002 |
|
1389 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1390 SHARED_ACTIVE_SCHEDULER |
|
1391 RESTORE_OBJECT RSdpDatabase database |
|
1392 RESTORE_OBJECT RSdp rsdp |
|
1393 COMMAND database DeleteRecordL |
|
1394 COMMAND database Close |
|
1395 COMMAND rsdp Close |
|
1396 END_TEST_BLOCK |
|
1397 END_SYNCHRONISED_TESTCASE BTSDP-AttrValInt-PublicApi-Active-3805-0002 |
|
1398 |
|
1399 END_TESTCASE BTSDP-AttrValInt-PublicApi-Passive-Slave-3865 |
|
1400 |
|
1401 |
|
1402 // **************************************************************************** |
|
1403 // CSdpAttrValueUint Tests |
|
1404 // **************************************************************************** |
|
1405 |
|
1406 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3961 |
|
1407 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Passive-Slave-3961 |
|
1408 //! @SYMAPI CSdpAttrValueUint |
|
1409 //! |
|
1410 //! @SYMTestCaseDesc Updated a service record attribute with 32 bits of unsigned integer type of objects : CSdpAttrValueUint, |
|
1411 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1412 //! and check if the object can hold the Integer value, |
|
1413 //! then prepare, set up the service record for the master device to retrieve |
|
1414 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1415 //! Constructor(), Connect(), Close() from RSdp |
|
1416 //! NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint |
|
1417 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed. |
|
1418 //! 2. Get the current size of CSdpAttrValueUint object using DataSize() function |
|
1419 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1420 //! 4. Test failed if sizes doesn't match. |
|
1421 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1422 //! 6. Test failed if type doesn't match. |
|
1423 //! 7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value |
|
1424 //! is same as actual signed integer value. |
|
1425 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1426 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1427 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1428 //! 11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor. |
|
1429 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1430 //! and check if actual integer value is same as expected input integer value. |
|
1431 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1432 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1433 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1434 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1435 //! 17.Read an input service record UUID from test data if successful. |
|
1436 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1437 //! 19.Read an input attribute ID from test data if successful. |
|
1438 //! 20.Read the CSdpAttrValueUint object from test data if successful. |
|
1439 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed. |
|
1440 //! 22.Deconstructs CSdpAttrValueUint object. |
|
1441 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1442 //! 24.Close the SDP database subsession using Close() function. |
|
1443 //! 25.Close the client process using Close() function. |
|
1444 //! @SYMTestStatus Implemented |
|
1445 //! @SYMTestPriority Low |
|
1446 //! @SYMTestExpectedResults Verify the 32 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor, |
|
1447 //! and check if the object can hold the Integer value, |
|
1448 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1449 //! @SYMTestType CIT |
|
1450 |
|
1451 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1452 SHARED_ACTIVE_SCHEDULER |
|
1453 CREATE_OBJECT RSdpDatabase database |
|
1454 CREATE_OBJECT RSdp rsdp |
|
1455 CREATE_OBJECT CSdpAttrValueUint attrValueUint |
|
1456 COMMAND attrValueUint NewUintL BTSDP-AttrValUint-PublicApi-Passive-3961-0001command2NewUintL |
|
1457 COMMAND attrValueUint DataSize BTSDP-AttrValUint-PublicApi-Passive-3961-0001command3DataSize |
|
1458 COMMAND attrValueUint Type BTSDP-AttrValUint-PublicApi-Passive-3961-0001command4Type |
|
1459 COMMAND attrValueUint Uint BTSDP-AttrValUint-PublicApi-Passive-3961-0001command5Uint |
|
1460 COMMAND attrValueUint DoesIntFit BTSDP-AttrValUint-PublicApi-Passive-3961-0001command6DoesIntFit |
|
1461 COMMAND attrValueUint Des BTSDP-AttrValUint-PublicApi-Passive-3961-0001command7Des |
|
1462 COMMAND rsdp Constructor |
|
1463 COMMAND rsdp Connect |
|
1464 OUTSTANDING |
|
1465 COMMAND database Constructor |
|
1466 COMMAND database Open BTSDP-AttrValUint-PublicApi-Passive-3961-0001command13Open |
|
1467 COMMAND database CreateServiceRecordL BTSDP-AttrValUint-PublicApi-Passive-3961-0001command14CreateServiceRecordL |
|
1468 COMMAND database UpdateAttributeL BTSDP-AttrValUint-PublicApi-Passive-3961-0001command15UpdateAttributeL |
|
1469 COMMAND attrValueUint ~ |
|
1470 STORE database |
|
1471 STORE rsdp |
|
1472 STORE_ACTIVE_SCHEDULER |
|
1473 END_TEST_BLOCK |
|
1474 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3901-0001 |
|
1475 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3901-0001 |
|
1476 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3901-0002 |
|
1477 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1478 SHARED_ACTIVE_SCHEDULER |
|
1479 RESTORE_OBJECT RSdpDatabase database |
|
1480 RESTORE_OBJECT RSdp rsdp |
|
1481 COMMAND database DeleteRecordL |
|
1482 COMMAND database Close |
|
1483 COMMAND rsdp Close |
|
1484 END_TEST_BLOCK |
|
1485 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3901-0002 |
|
1486 END_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3961 |
|
1487 |
|
1488 |
|
1489 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3962 |
|
1490 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Passive-Slave-3962 |
|
1491 //! @SYMAPI CSdpAttrValueUint |
|
1492 //! |
|
1493 //! @SYMTestCaseDesc Updated a service record attribute with 128 bits of unsigned integer type of objects : CSdpAttrValueUint, |
|
1494 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1495 //! and check if the object can hold the Integer value, |
|
1496 //! then prepare, set up the service record for the master device to retrieve |
|
1497 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1498 //! Constructor(), Connect(), Close() from RSdp |
|
1499 //! NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint |
|
1500 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed. |
|
1501 //! 2. Get the current size of CSdpAttrValueUint object using DataSize() function |
|
1502 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1503 //! 4. Test failed if sizes doesn't match. |
|
1504 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1505 //! 6. Test failed if type doesn't match. |
|
1506 //! 7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value |
|
1507 //! is same as actual signed integer value. |
|
1508 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1509 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1510 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1511 //! 11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor. |
|
1512 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1513 //! and check if actual integer value is same as expected input integer value. |
|
1514 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1515 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1516 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1517 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1518 //! 17.Read an input service record UUID from test data if successful. |
|
1519 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1520 //! 19.Read an input attribute ID from test data if successful. |
|
1521 //! 20.Read the CSdpAttrValueUint object from test data if successful. |
|
1522 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed. |
|
1523 //! 22.Deconstructs CSdpAttrValueUint object. |
|
1524 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1525 //! 24.Close the SDP database subsession using Close() function. |
|
1526 //! 25.Close the client process using Close() function. |
|
1527 //! @SYMTestStatus Implemented |
|
1528 //! @SYMTestPriority Low |
|
1529 //! @SYMTestExpectedResults Verify the 128 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor, |
|
1530 //! and check if the object can hold the Integer value, |
|
1531 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1532 //! @SYMTestType CIT |
|
1533 |
|
1534 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1535 SHARED_ACTIVE_SCHEDULER |
|
1536 CREATE_OBJECT RSdpDatabase database |
|
1537 CREATE_OBJECT RSdp rsdp |
|
1538 CREATE_OBJECT CSdpAttrValueUint attrValueUint |
|
1539 COMMAND attrValueUint NewUintL BTSDP-AttrValUint-PublicApi-Passive-3962-0001command2NewUintL |
|
1540 COMMAND attrValueUint DataSize BTSDP-AttrValUint-PublicApi-Passive-3962-0001command3DataSize |
|
1541 COMMAND attrValueUint Type BTSDP-AttrValUint-PublicApi-Passive-3962-0001command4Type |
|
1542 COMMAND attrValueUint DoesIntFit BTSDP-AttrValUint-PublicApi-Passive-3962-0001command5DoesIntFit |
|
1543 COMMAND attrValueUint Des BTSDP-AttrValUint-PublicApi-Passive-3962-0001command6Des |
|
1544 COMMAND rsdp Constructor |
|
1545 COMMAND rsdp Connect |
|
1546 OUTSTANDING |
|
1547 COMMAND database Constructor |
|
1548 COMMAND database Open BTSDP-AttrValUint-PublicApi-Passive-3962-0001command12Open |
|
1549 COMMAND database CreateServiceRecordL BTSDP-AttrValUint-PublicApi-Passive-3962-0001command13CreateServiceRecordL |
|
1550 COMMAND database UpdateAttributeL BTSDP-AttrValUint-PublicApi-Passive-3962-0001command14UpdateAttributeL |
|
1551 COMMAND attrValueUint ~ |
|
1552 STORE database |
|
1553 STORE rsdp |
|
1554 STORE_ACTIVE_SCHEDULER |
|
1555 END_TEST_BLOCK |
|
1556 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3902-0001 |
|
1557 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3902-0001 |
|
1558 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3902-0002 |
|
1559 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1560 SHARED_ACTIVE_SCHEDULER |
|
1561 RESTORE_OBJECT RSdpDatabase database |
|
1562 RESTORE_OBJECT RSdp rsdp |
|
1563 COMMAND database DeleteRecordL |
|
1564 COMMAND database Close |
|
1565 COMMAND rsdp Close |
|
1566 END_TEST_BLOCK |
|
1567 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3902-0002 |
|
1568 |
|
1569 END_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3962 |
|
1570 |
|
1571 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3963 |
|
1572 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Passive-Slave-3963 |
|
1573 //! @SYMAPI CSdpAttrValueUint |
|
1574 //! |
|
1575 //! @SYMTestCaseDesc Updated a service record attribute with 64 bits of unsigned integer type of objects : CSdpAttrValueUint, |
|
1576 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1577 //! and check if the object can hold the Integer value, |
|
1578 //! then prepare, set up the service record for the master device to retrieve |
|
1579 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1580 //! Constructor(), Connect(), Close() from RSdp |
|
1581 //! NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint |
|
1582 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed. |
|
1583 //! 2. Get the current size of CSdpAttrValueUint object using DataSize() function |
|
1584 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1585 //! 4. Test failed if sizes doesn't match. |
|
1586 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1587 //! 6. Test failed if type doesn't match. |
|
1588 //! 7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value |
|
1589 //! is same as actual signed integer value. |
|
1590 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1591 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1592 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1593 //! 11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor. |
|
1594 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1595 //! and check if actual integer value is same as expected input integer value. |
|
1596 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1597 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1598 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1599 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1600 //! 17.Read an input service record UUID from test data if successful. |
|
1601 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1602 //! 19.Read an input attribute ID from test data if successful. |
|
1603 //! 20.Read the CSdpAttrValueUint object from test data if successful. |
|
1604 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed. |
|
1605 //! 22.Deconstructs CSdpAttrValueUint object. |
|
1606 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1607 //! 24.Close the SDP database subsession using Close() function. |
|
1608 //! 25.Close the client process using Close() function. |
|
1609 //! @SYMTestStatus Implemented |
|
1610 //! @SYMTestPriority Low |
|
1611 //! @SYMTestExpectedResults Verify the 64 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor, |
|
1612 //! and check if the object can hold the Integer value, |
|
1613 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1614 //! @SYMTestType CIT |
|
1615 |
|
1616 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1617 SHARED_ACTIVE_SCHEDULER |
|
1618 CREATE_OBJECT RSdpDatabase database |
|
1619 CREATE_OBJECT RSdp rsdp |
|
1620 CREATE_OBJECT CSdpAttrValueUint attrValueUint |
|
1621 COMMAND attrValueUint NewUintL BTSDP-AttrValUint-PublicApi-Passive-3963-0001command2NewUintL |
|
1622 COMMAND attrValueUint DataSize BTSDP-AttrValUint-PublicApi-Passive-3963-0001command3DataSize |
|
1623 COMMAND attrValueUint Type BTSDP-AttrValUint-PublicApi-Passive-3963-0001command4Type |
|
1624 COMMAND attrValueUint DoesIntFit BTSDP-AttrValUint-PublicApi-Passive-3963-0001command5DoesIntFit |
|
1625 COMMAND attrValueUint Des BTSDP-AttrValUint-PublicApi-Passive-3963-0001command6Des |
|
1626 COMMAND rsdp Constructor |
|
1627 COMMAND rsdp Connect |
|
1628 OUTSTANDING |
|
1629 COMMAND database Constructor |
|
1630 COMMAND database Open BTSDP-AttrValUint-PublicApi-Passive-3963-0001command12Open |
|
1631 COMMAND database CreateServiceRecordL BTSDP-AttrValUint-PublicApi-Passive-3963-0001command13CreateServiceRecordL |
|
1632 COMMAND database UpdateAttributeL BTSDP-AttrValUint-PublicApi-Passive-3963-0001command14UpdateAttributeL |
|
1633 COMMAND attrValueUint ~ |
|
1634 STORE database |
|
1635 STORE rsdp |
|
1636 STORE_ACTIVE_SCHEDULER |
|
1637 END_TEST_BLOCK |
|
1638 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3903-0001 |
|
1639 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3903-0001 |
|
1640 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3903-0002 |
|
1641 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1642 SHARED_ACTIVE_SCHEDULER |
|
1643 RESTORE_OBJECT RSdpDatabase database |
|
1644 RESTORE_OBJECT RSdp rsdp |
|
1645 COMMAND database DeleteRecordL |
|
1646 COMMAND database Close |
|
1647 COMMAND rsdp Close |
|
1648 END_TEST_BLOCK |
|
1649 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3903-0002 |
|
1650 |
|
1651 END_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3963 |
|
1652 |
|
1653 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3964 |
|
1654 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Passive-Slave-3964 |
|
1655 //! @SYMAPI CSdpAttrValueUint |
|
1656 //! |
|
1657 //! @SYMTestCaseDesc Updated a service record attribute with 32 bits of unsigned integer type of objects : CSdpAttrValueUint, |
|
1658 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1659 //! and check if the object can hold the Integer value, |
|
1660 //! then prepare, set up the service record for the master device to retrieve |
|
1661 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1662 //! Constructor(), Connect(), Close() from RSdp |
|
1663 //! NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint |
|
1664 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed. |
|
1665 //! 2. Get the current size of CSdpAttrValueUint object using DataSize() function |
|
1666 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1667 //! 4. Test failed if sizes doesn't match. |
|
1668 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1669 //! 6. Test failed if type doesn't match. |
|
1670 //! 7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value |
|
1671 //! is same as actual signed integer value. |
|
1672 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1673 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1674 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1675 //! 11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor. |
|
1676 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1677 //! and check if actual integer value is same as expected input integer value. |
|
1678 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1679 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1680 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1681 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1682 //! 17.Read an input service record UUID from test data if successful. |
|
1683 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1684 //! 19.Read an input attribute ID from test data if successful. |
|
1685 //! 20.Read the CSdpAttrValueUint object from test data if successful. |
|
1686 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed. |
|
1687 //! 22.Deconstructs CSdpAttrValueUint object. |
|
1688 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1689 //! 24.Close the SDP database subsession using Close() function. |
|
1690 //! 25.Close the client process using Close() function. |
|
1691 //! @SYMTestStatus Implemented |
|
1692 //! @SYMTestPriority Low |
|
1693 //! @SYMTestExpectedResults Verify the 32 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor, |
|
1694 //! and check if the object can hold the Integer value, |
|
1695 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1696 //! @SYMTestType CIT |
|
1697 |
|
1698 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1699 SHARED_ACTIVE_SCHEDULER |
|
1700 CREATE_OBJECT RSdpDatabase database |
|
1701 CREATE_OBJECT RSdp rsdp |
|
1702 CREATE_OBJECT CSdpAttrValueUint attrValueUint |
|
1703 COMMAND attrValueUint NewUintL BTSDP-AttrValUint-PublicApi-Passive-3964-0001command2NewUintL |
|
1704 COMMAND attrValueUint DataSize BTSDP-AttrValUint-PublicApi-Passive-3964-0001command3DataSize |
|
1705 COMMAND attrValueUint Type BTSDP-AttrValUint-PublicApi-Passive-3964-0001command4Type |
|
1706 COMMAND attrValueUint Uint BTSDP-AttrValUint-PublicApi-Passive-3964-0001command5Uint |
|
1707 COMMAND attrValueUint DoesIntFit BTSDP-AttrValUint-PublicApi-Passive-3964-0001command6DoesIntFit |
|
1708 COMMAND attrValueUint Des BTSDP-AttrValUint-PublicApi-Passive-3964-0001command7Des |
|
1709 COMMAND rsdp Constructor |
|
1710 COMMAND rsdp Connect |
|
1711 OUTSTANDING |
|
1712 COMMAND database Constructor |
|
1713 COMMAND database Open BTSDP-AttrValUint-PublicApi-Passive-3964-0001command13Open |
|
1714 COMMAND database CreateServiceRecordL BTSDP-AttrValUint-PublicApi-Passive-3964-0001command14CreateServiceRecordL |
|
1715 COMMAND database UpdateAttributeL BTSDP-AttrValUint-PublicApi-Passive-3964-0001command15UpdateAttributeL |
|
1716 COMMAND attrValueUint ~ |
|
1717 STORE database |
|
1718 STORE rsdp |
|
1719 STORE_ACTIVE_SCHEDULER |
|
1720 END_TEST_BLOCK |
|
1721 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3904-0001 |
|
1722 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3904-0001 |
|
1723 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3904-0002 |
|
1724 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1725 SHARED_ACTIVE_SCHEDULER |
|
1726 RESTORE_OBJECT RSdpDatabase database |
|
1727 RESTORE_OBJECT RSdp rsdp |
|
1728 COMMAND database DeleteRecordL |
|
1729 COMMAND database Close |
|
1730 COMMAND rsdp Close |
|
1731 END_TEST_BLOCK |
|
1732 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3904-0002 |
|
1733 |
|
1734 END_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3964 |
|
1735 |
|
1736 START_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3965 |
|
1737 //! @SYMTestCaseID BTSDP-AttrValUint-PublicApi-Passive-Slave-3965 |
|
1738 //! @SYMAPI CSdpAttrValueUint |
|
1739 //! |
|
1740 //! @SYMTestCaseDesc Updated a service record attribute with 16 bits of unsigned integer type of objects : CSdpAttrValueUint, |
|
1741 //! then verify the integer object's data size, type, Integer value, data pointer descriptor, |
|
1742 //! and check if the object can hold the Integer value, |
|
1743 //! then prepare, set up the service record for the master device to retrieve |
|
1744 //! Uses API elements: Constructor(), Open(), Close(), CreateServiceRecordL(), UpdateAttributeL(), DeleteRecord() from RSdpDatabase |
|
1745 //! Constructor(), Connect(), Close() from RSdp |
|
1746 //! NewUintL(), DataSize(), Type(), Uint(), DoesIntFit(), Des() from CSdpAttrValueUint |
|
1747 //! @SYMTestActions 1. Allocate and construct a new CSdpAttrValueUint object using NewUintL() function and return KErrNone if successed. |
|
1748 //! 2. Get the current size of CSdpAttrValueUint object using DataSize() function |
|
1749 //! 3. Read the expected size from test data and compare if actual size is as expected |
|
1750 //! 4. Test failed if sizes doesn't match. |
|
1751 //! 5. Verify the object type using Type() function. Test pass if expected type is ETypeInt. |
|
1752 //! 6. Test failed if type doesn't match. |
|
1753 //! 7. Verify the object unsigned integer value using Uint() function. Test pass if expected signed integer value |
|
1754 //! is same as actual signed integer value. |
|
1755 //! 8. Verify the object can be stored in an integer value using DoesIntFit() function. |
|
1756 //! 9. Test pass if object can be stored in an integer value and return ETrue as expected. |
|
1757 //! 10.Test failed if object can't be stored in an integer value and return EFalse. |
|
1758 //! 11.Use Des() function to retrieve CSdpAttrValueUint object's data pointer descriptor. |
|
1759 //! 12.Read an input integer from test data and compare it with the contents in data pointer descriptor |
|
1760 //! and check if actual integer value is same as expected input integer value. |
|
1761 //! 13.Allocate and construct a new RSdp object using RSdp() function and return KErrNone if successed. |
|
1762 //! 14.Connect a client process to the database using Connect() function and return KErrNone if successed. |
|
1763 //! 15.Allocate and construct a new RSdpDatabase object using RSdpDatabase() function and return KErrNone if successed. |
|
1764 //! 16.Opens a SDP database subsession using Open() function and return KErrNone if successed. |
|
1765 //! 17.Read an input service record UUID from test data if successful. |
|
1766 //! 18.Creates a new service record with the service record UUID using CreateServiceRecordL() function and return KErrNone if successed. |
|
1767 //! 19.Read an input attribute ID from test data if successful. |
|
1768 //! 20.Read the CSdpAttrValueUint object from test data if successful. |
|
1769 //! 21.Updates a service record attribute with a value encapsulated in a CSdpAttrValueUint using UpdateAttributeL() function and return KErrNone if successed. |
|
1770 //! 22.Deconstructs CSdpAttrValueUint object. |
|
1771 //! 23.Deletes the service records using DeleteRecordL() function and return KErrNone if successed. |
|
1772 //! 24.Close the SDP database subsession using Close() function. |
|
1773 //! 25.Close the client process using Close() function. |
|
1774 //! @SYMTestStatus Implemented |
|
1775 //! @SYMTestPriority Low |
|
1776 //! @SYMTestExpectedResults Verify the 16 bits of unsigned integer object's data size, type, Integer value, data pointer descriptor, |
|
1777 //! and check if the object can hold the Integer value, |
|
1778 //! then updated a service record attribute with a value encapsulated in a CSdpAttrValue successfully. |
|
1779 //! @SYMTestType CIT |
|
1780 |
|
1781 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1782 SHARED_ACTIVE_SCHEDULER |
|
1783 CREATE_OBJECT RSdpDatabase database |
|
1784 CREATE_OBJECT RSdp rsdp |
|
1785 CREATE_OBJECT CSdpAttrValueUint attrValueUint |
|
1786 COMMAND attrValueUint NewUintL BTSDP-AttrValUint-PublicApi-Passive-3965-0001command2NewUintL |
|
1787 COMMAND attrValueUint DataSize BTSDP-AttrValUint-PublicApi-Passive-3965-0001command3DataSize |
|
1788 COMMAND attrValueUint Type BTSDP-AttrValUint-PublicApi-Passive-3965-0001command4Type |
|
1789 COMMAND attrValueUint Uint BTSDP-AttrValUint-PublicApi-Passive-3965-0001command5Uint |
|
1790 COMMAND attrValueUint DoesIntFit BTSDP-AttrValUint-PublicApi-Passive-3965-0001command6DoesIntFit |
|
1791 COMMAND attrValueUint Des BTSDP-AttrValUint-PublicApi-Passive-3965-0001command7Des |
|
1792 COMMAND rsdp Constructor |
|
1793 COMMAND rsdp Connect |
|
1794 OUTSTANDING |
|
1795 COMMAND database Constructor |
|
1796 COMMAND database Open BTSDP-AttrValUint-PublicApi-Passive-3965-0001command13Open |
|
1797 COMMAND database CreateServiceRecordL BTSDP-AttrValUint-PublicApi-Passive-3965-0001command14CreateServiceRecordL |
|
1798 COMMAND database UpdateAttributeL BTSDP-AttrValUint-PublicApi-Passive-3965-0001command15UpdateAttributeL |
|
1799 COMMAND attrValueUint ~ |
|
1800 STORE database |
|
1801 STORE rsdp |
|
1802 STORE_ACTIVE_SCHEDULER |
|
1803 END_TEST_BLOCK |
|
1804 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3905-0001 |
|
1805 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3905-0001 |
|
1806 START_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3905-0002 |
|
1807 START_TEST_BLOCK 100 T_BTSdpAPI \bluetooth\sdp\BTSDP-Database-PublicApi-Passive-Slave.ini |
|
1808 SHARED_ACTIVE_SCHEDULER |
|
1809 RESTORE_OBJECT RSdpDatabase database |
|
1810 RESTORE_OBJECT RSdp rsdp |
|
1811 COMMAND database DeleteRecordL |
|
1812 COMMAND database Close |
|
1813 COMMAND rsdp Close |
|
1814 END_TEST_BLOCK |
|
1815 END_SYNCHRONISED_TESTCASE BTSDP-AttrValUint-PublicApi-Active-3905-0002 |
|
1816 |
|
1817 END_TESTCASE BTSDP-AttrValUint-PublicApi-Passive-Slave-3965 |
|
1818 |
|
1819 |
|
1820 DELAY 2000 |
|
1821 |
|
1822 |