|
1 // |
|
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 /////////////////////////////////////////////////////////////////////////////// |
|
17 //! @file |
|
18 //! @SYMTestSuiteName T_BTUserAPI |
|
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM with bluetooth dongle. |
|
20 //! @SYMScriptDescription Tests all published partner elements of the TSEID class |
|
21 //! as a means of confidence that the API works as expected. |
|
22 //! The purpose is to provide a regression test suite of PublishedPartner APIs for |
|
23 //! BT USER related classes. |
|
24 //! Negative testing is performed to confirm that correct errors are returned |
|
25 //! when incorrect parameters are given. The tests are fully automated. |
|
26 //! @SYMAuthor Wekey Weng |
|
27 //! @SYMCreationDate 10/03/2008 |
|
28 /////////////////////////////////////////////////////////////////////////////// |
|
29 |
|
30 RUN_UTILS MkDir ${SYSDRIVE}\bluetooth\user\ |
|
31 |
|
32 LOAD_SUITE T_BTUserAPI |
|
33 DELAY 500 |
|
34 |
|
35 |
|
36 // **************************************************************************** |
|
37 // TSEID |
|
38 // **************************************************************************** |
|
39 |
|
40 START_TESTCASE BT-USER-SEID-PublishedPartner-0001 |
|
41 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0001 |
|
42 //! @SYMAPI TSEID::TSEID() |
|
43 //! @SYMAuthor Wekey Weng |
|
44 //! @SYMCreationDate 02/29/2008 |
|
45 //! @SYMTestCaseDesc Default constructor using KInvalidSEID as the stream endpoint identifier (SEID) value |
|
46 //! @SYMTestActions 1. Create a TSEID object using default constructor |
|
47 //! 2. Destruct. |
|
48 //! @SYMTestStatus Implemented |
|
49 //! @SYMTestPriority Low |
|
50 //! @SYMTestExpectedResults TSEID object is created successfully |
|
51 //! @SYMTestType CIT |
|
52 |
|
53 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
54 CREATE_OBJECT TSEID seid |
|
55 COMMAND seid new |
|
56 COMMAND seid ~ |
|
57 END_TEST_BLOCK |
|
58 |
|
59 END_TESTCASE BT-USER-SEID-PublishedPartner-0001 |
|
60 |
|
61 START_TESTCASE BT-USER-SEID-PublishedPartner-0002 |
|
62 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0002 |
|
63 //! @SYMAPI TSEID::TSEID(TUint, TBool) |
|
64 //! @SYMAuthor Wekey Weng |
|
65 //! @SYMCreationDate 02/29/2008 |
|
66 //! @SYMTestCaseDesc Construct a TSEID with stream endpoint identifier (SEID), and a local or remote endpoint values. |
|
67 //! @SYMTestActions 1. Create a TSEID object referring to a local endpoint with 0 |
|
68 //! 2. Destruct the TSEID object. |
|
69 //! 3. Create a TSEID object referring to a remote endpoint with 0 |
|
70 //! 4. Destruct the TSEID object. |
|
71 //! 5. Create a TSEID object referring to a local endpoint with 4294967295 |
|
72 //! 6. Destruct the TSEID object. |
|
73 //! 7. Create a TSEID object referring to a remote endpoint with 4294967295 |
|
74 //! 8. Destruct the TSEID object. |
|
75 //! @SYMTestStatus Implemented |
|
76 //! @SYMTestPriority Low |
|
77 //! @SYMTestExpectedResults 1. TSEID objects are created successfully |
|
78 //! @SYMTestType CIT |
|
79 |
|
80 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
81 CREATE_OBJECT TSEID seid |
|
82 COMMAND seid new BT-USER-SEID-PublishedPartner-0002-0001-new_Command1 |
|
83 COMMAND seid ~ |
|
84 CREATE_OBJECT TSEID seid2 |
|
85 COMMAND seid new BT-USER-SEID-PublishedPartner-0002-0001-new_Command3 |
|
86 COMMAND seid ~ |
|
87 CREATE_OBJECT TSEID seid3 |
|
88 COMMAND seid2 new BT-USER-SEID-PublishedPartner-0002-0001-new_Command5 |
|
89 COMMAND seid2 ~ |
|
90 CREATE_OBJECT TSEID seid4 |
|
91 COMMAND seid2 new BT-USER-SEID-PublishedPartner-0002-0001-new_Command7 |
|
92 COMMAND seid2 ~ |
|
93 END_TEST_BLOCK |
|
94 |
|
95 END_TESTCASE BT-USER-SEID-PublishedPartner-0002 |
|
96 |
|
97 START_TESTCASE BT-USER-SEID-PublishedPartner-0003 |
|
98 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0003 |
|
99 //! @SYMAPI TSEID::SEID() |
|
100 //! @SYMAuthor Wekey Weng |
|
101 //! @SYMCreationDate 02/29/2008 |
|
102 //! @SYMTestCaseDesc Get the stream endpoint identifier (SEID) value |
|
103 //! @SYMTestActions 1. Create a TSEID object using default constructor |
|
104 //! 2. Create 2 TSEID objects with same SEID |
|
105 //! 2.1 Create a TSEID object for local with SEID(10) |
|
106 //! 2.2 Create a TSEID object for remote with SEID(10) |
|
107 //! 3. Get the SEIDs of all TSEID objects |
|
108 //! 3.1 Get the SEID of object created by default constructor |
|
109 //! 3.2 Get the SEID of object referring to a local endpoint |
|
110 //! 3.3 Get the SEID of object referring to a remote endpoint |
|
111 //! 4. Destruct the 3 TSEID objects. |
|
112 //! @SYMTestStatus Implemented |
|
113 //! @SYMTestPriority High |
|
114 //! @SYMTestExpectedResults 1. Get SEIDs as expected and no panic caused |
|
115 //! 1.1 Step 3.1 returns KInvalidSEID |
|
116 //! 1.2 Step 3.2 returns 10 |
|
117 //! 1.3 Step 3.3 returns 10 |
|
118 //! @SYMTestType CIT |
|
119 |
|
120 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
121 CREATE_OBJECT TSEID seid |
|
122 COMMAND seid new |
|
123 CREATE_OBJECT TSEID seid2 |
|
124 COMMAND seid2 new BT-USER-SEID-PublishedPartner-0003-0001-new_Command2 |
|
125 CREATE_OBJECT TSEID seid3 |
|
126 COMMAND seid3 new BT-USER-SEID-PublishedPartner-0003-0001-new_Command3 |
|
127 COMMAND seid SEID BT-USER-SEID-PublishedPartner-0003-0001-SEID_Command4 |
|
128 COMMAND seid2 SEID BT-USER-SEID-PublishedPartner-0003-0001-SEID_Command5 |
|
129 COMMAND seid3 SEID BT-USER-SEID-PublishedPartner-0003-0001-SEID_Command6 |
|
130 COMMAND seid ~ |
|
131 COMMAND seid2 ~ |
|
132 COMMAND seid3 ~ |
|
133 END_TEST_BLOCK |
|
134 |
|
135 END_TESTCASE BT-USER-SEID-PublishedPartner-0003 |
|
136 |
|
137 START_TESTCASE BT-USER-SEID-PublishedPartner-0004 |
|
138 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0004 |
|
139 //! @SYMAPI TSEID::IsValid() |
|
140 //! @SYMAuthor Wekey Weng |
|
141 //! @SYMCreationDate 02/29/2008 |
|
142 //! @SYMTestCaseDesc Checks whether the SEID is allowed by the AVDTP Specification(1~63) |
|
143 //! @SYMTestActions 1. Create a TSEID object using default constructor |
|
144 //! 2. Create 3 TSEID objects |
|
145 //! 2.1 Create a TSEID object with value(0) |
|
146 //! 2.2 Create a TSEID object with value(63) |
|
147 //! 2.3 Create a TSEID object with value(64) |
|
148 //! 3. Check whether the SEID is allowed |
|
149 //! 3.1 Check the TSEID object created by default constructor |
|
150 //! 3.2 Check the TSEID with value(0) |
|
151 //! 3.3 Check the TSEID with value(63) |
|
152 //! 3.4 Check the TSEID with value(64) |
|
153 //! 4. Destruct the 3 TSEID objects. |
|
154 //! @SYMTestStatus Implemented |
|
155 //! @SYMTestPriority High |
|
156 //! @SYMTestExpectedResults 1. No panic caused and return expected value |
|
157 //! 1.1 Step 3.1 returns EFalse |
|
158 //! 1.1 Step 3.2 returns EFalse |
|
159 //! 1.2 Step 3.3 returns ETrue |
|
160 //! 1.3 Step 3.4 returns EFalse |
|
161 //! @SYMTestType CIT |
|
162 |
|
163 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
164 CREATE_OBJECT TSEID seid |
|
165 COMMAND seid new |
|
166 CREATE_OBJECT TSEID seid2 |
|
167 COMMAND seid2 new BT-USER-SEID-PublishedPartner-0004-0001-new_Command2 |
|
168 CREATE_OBJECT TSEID seid3 |
|
169 COMMAND seid3 new BT-USER-SEID-PublishedPartner-0004-0001-new_Command3 |
|
170 CREATE_OBJECT TSEID seid4 |
|
171 COMMAND seid4 new BT-USER-SEID-PublishedPartner-0004-0001-new_Command4 |
|
172 COMMAND seid IsValid BT-USER-SEID-PublishedPartner-0004-0001-IsValid_Command5 |
|
173 COMMAND seid2 IsValid BT-USER-SEID-PublishedPartner-0004-0001-IsValid_Command6 |
|
174 COMMAND seid3 IsValid BT-USER-SEID-PublishedPartner-0004-0001-IsValid_Command7 |
|
175 COMMAND seid4 IsValid BT-USER-SEID-PublishedPartner-0004-0001-IsValid_Command8 |
|
176 COMMAND seid ~ |
|
177 COMMAND seid2 ~ |
|
178 COMMAND seid3 ~ |
|
179 COMMAND seid4 ~ |
|
180 END_TEST_BLOCK |
|
181 |
|
182 END_TESTCASE BT-USER-SEID-PublishedPartner-0004 |
|
183 |
|
184 START_TESTCASE BT-USER-SEID-PublishedPartner-0005 |
|
185 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0005 |
|
186 //! @SYMAPI TSEID::operator==(TSEID) |
|
187 //! @SYMAuthor Wekey Weng |
|
188 //! @SYMCreationDate 02/29/2008 |
|
189 //! @SYMTestCaseDesc Comparison operator between 2 TSED objects created by different conditions |
|
190 //! @SYMTestActions 1. Create 2 TSEID objects using default constructor |
|
191 //! 2. Create 4 TSEID objects |
|
192 //! 2.1 Create 2 TSEID objects for local with SEID(10) |
|
193 //! 2.2 Create a TSEID object for remote with SEID(10) |
|
194 //! 2.3 Create a TSEID object for local with SEID(20) |
|
195 //! 3. Compare TSEID objects |
|
196 //! 3.1 Compare 2 objects created by default constructor |
|
197 //! 3.2 Compare 1 object created by default constructor to another object(remote) with SEID(10) |
|
198 //! 3.3 Compare 2 objects both referring to local but different SEID(10 and 20) |
|
199 //! 3.4 Compare 1 object(local) to another object(remote) with same SEID(10) |
|
200 //! 3.5 Compare 2 objects both referring to local with same SEID(10) |
|
201 //! 4. Destruct the 6 TSEID objects. |
|
202 //! @SYMTestStatus Implemented |
|
203 //! @SYMTestPriority High |
|
204 //! @SYMTestExpectedResults 1. Compare 2 objects returns expected value and no panic caused |
|
205 //! 1.1 Step 3.1 returns ETrue |
|
206 //! 1.2 Step 3.2 returns EFalse |
|
207 //! 1.3 Step 3.3 returns EFalse |
|
208 //! 1.4 Step 3.4 returns EFalse |
|
209 //! 1.5 Step 3.5 returns ETrue |
|
210 //! @SYMTestType CIT |
|
211 |
|
212 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
213 CREATE_OBJECT TSEID seid |
|
214 COMMAND seid new |
|
215 CREATE_OBJECT TSEID seid2 |
|
216 COMMAND seid2 new |
|
217 CREATE_OBJECT TSEID seid3 |
|
218 COMMAND seid3 new BT-USER-SEID-PublishedPartner-0005-0001-new_Command3 |
|
219 CREATE_OBJECT TSEID seid4 |
|
220 COMMAND seid4 new BT-USER-SEID-PublishedPartner-0005-0001-new_Command4 |
|
221 CREATE_OBJECT TSEID seid5 |
|
222 COMMAND seid5 new BT-USER-SEID-PublishedPartner-0005-0001-new_Command5 |
|
223 CREATE_OBJECT TSEID seid6 |
|
224 COMMAND seid6 new BT-USER-SEID-PublishedPartner-0005-0001-new_Command6 |
|
225 COMMAND seid == BT-USER-SEID-PublishedPartner-0005-0001-==_Command7 |
|
226 COMMAND seid == BT-USER-SEID-PublishedPartner-0005-0001-==_Command8 |
|
227 COMMAND seid3 == BT-USER-SEID-PublishedPartner-0005-0001-==_Command9 |
|
228 COMMAND seid4 == BT-USER-SEID-PublishedPartner-0005-0001-==_Command10 |
|
229 COMMAND seid3 == BT-USER-SEID-PublishedPartner-0005-0001-==_Command11 |
|
230 COMMAND seid ~ |
|
231 COMMAND seid2 ~ |
|
232 COMMAND seid3 ~ |
|
233 COMMAND seid4 ~ |
|
234 COMMAND seid5 ~ |
|
235 COMMAND seid6 ~ |
|
236 END_TEST_BLOCK |
|
237 |
|
238 END_TESTCASE BT-USER-SEID-PublishedPartner-0005 |
|
239 |
|
240 START_TESTCASE BT-USER-SEID-PublishedPartner-0006 |
|
241 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0006 |
|
242 //! @SYMAPI TSEID::operator!=(TSEID) |
|
243 //! @SYMAuthor Wekey Weng |
|
244 //! @SYMCreationDate 02/29/2008 |
|
245 //! @SYMTestCaseDesc Negative comparison operator between 2 TSED objects created by different conditions |
|
246 //! @SYMTestActions 1. Create 2 TSEID objects using default constructor |
|
247 //! 2. Create 4 TSEID objects |
|
248 //! 2.1 Create 2 TSEID objects for local with SEID(10) |
|
249 //! 2.2 Create a TSEID object for remote with SEID(10) |
|
250 //! 2.3 Create a TSEID object for local with SEID(20) |
|
251 //! 3. Negative comparison between 2 TSEID object |
|
252 //! 3.1 Negative comparison between 2 objects created by default constructor |
|
253 //! 3.2 Negative comparison between 1 object created by default constructor and another object(remote) with SEID(10) |
|
254 //! 3.3 Negative comparison between 2 objects both referring to local but different SEID(10 and 20) |
|
255 //! 3.4 Negative comparison between 1 object(local) and another object(remote) with same SEID(10) |
|
256 //! 3.5 Negative comparison between 2 objects both referring to local with same SEID(10) |
|
257 //! 4. Destruct the 6 TSEID objects. |
|
258 //! @SYMTestStatus Implemented |
|
259 //! @SYMTestPriority High |
|
260 //! @SYMTestExpectedResults 1. Negative comparison between 2 objects returns expected value and no panic caused |
|
261 //! 1.1 Step 3.1 returns EFalse |
|
262 //! 1.2 Step 3.2 returns ETrue |
|
263 //! 1.3 Step 3.3 returns ETrue |
|
264 //! 1.4 Step 3.4 returns ETrue |
|
265 //! 1.5 Step 3.5 returns EFalse |
|
266 //! @SYMTestType CIT |
|
267 |
|
268 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
269 CREATE_OBJECT TSEID seid |
|
270 COMMAND seid new |
|
271 CREATE_OBJECT TSEID seid2 |
|
272 COMMAND seid2 new |
|
273 CREATE_OBJECT TSEID seid3 |
|
274 COMMAND seid3 new BT-USER-SEID-PublishedPartner-0006-0001-new_Command3 |
|
275 CREATE_OBJECT TSEID seid4 |
|
276 COMMAND seid4 new BT-USER-SEID-PublishedPartner-0006-0001-new_Command4 |
|
277 CREATE_OBJECT TSEID seid5 |
|
278 COMMAND seid5 new BT-USER-SEID-PublishedPartner-0006-0001-new_Command5 |
|
279 CREATE_OBJECT TSEID seid6 |
|
280 COMMAND seid6 new BT-USER-SEID-PublishedPartner-0006-0001-new_Command6 |
|
281 COMMAND seid != BT-USER-SEID-PublishedPartner-0006-0001-!=_Command7 |
|
282 COMMAND seid != BT-USER-SEID-PublishedPartner-0006-0001-!=_Command8 |
|
283 COMMAND seid3 != BT-USER-SEID-PublishedPartner-0006-0001-!=_Command9 |
|
284 COMMAND seid4 != BT-USER-SEID-PublishedPartner-0006-0001-!=_Command10 |
|
285 COMMAND seid3 != BT-USER-SEID-PublishedPartner-0006-0001-!=_Command11 |
|
286 COMMAND seid ~ |
|
287 COMMAND seid2 ~ |
|
288 COMMAND seid3 ~ |
|
289 COMMAND seid4 ~ |
|
290 COMMAND seid5 ~ |
|
291 COMMAND seid6 ~ |
|
292 END_TEST_BLOCK |
|
293 |
|
294 END_TESTCASE BT-USER-SEID-PublishedPartner-0006 |
|
295 |
|
296 START_TESTCASE BT-USER-SEID-PublishedPartner-0007 |
|
297 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0007 |
|
298 //! @SYMAPI TSEID::Reset() |
|
299 //! @SYMAuthor Wekey Weng |
|
300 //! @SYMCreationDate 02/29/2008 |
|
301 //! @SYMTestCaseDesc Reset any internal state and values |
|
302 //! @SYMTestActions 1. Create 1 TSEID object using default constructor |
|
303 //! 2. Create 1 TSEID object referring to a local endpoint with SEID(10); |
|
304 //! 3. Compare these 2 objects |
|
305 //! 4. Reset the later object |
|
306 //! 5. Compare these 2 objects again |
|
307 //! 6. Destruct the 2 TSEID objects. |
|
308 //! @SYMTestStatus Implemented |
|
309 //! @SYMTestPriority High |
|
310 //! @SYMTestExpectedResults 1. Step 3 returns EFalse |
|
311 //! 2. Step 4 reset TSEID object without causing panic |
|
312 //! 3. Step 5 returns ETrue |
|
313 //! @SYMTestType CIT |
|
314 |
|
315 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
316 CREATE_OBJECT TSEID seid |
|
317 COMMAND seid new |
|
318 CREATE_OBJECT TSEID seid2 |
|
319 COMMAND seid2 new BT-USER-SEID-PublishedPartner-0007-0001-new_Command2 |
|
320 COMMAND seid == BT-USER-SEID-PublishedPartner-0007-0001-==_Command3 |
|
321 COMMAND seid2 Reset |
|
322 COMMAND seid == BT-USER-SEID-PublishedPartner-0007-0001-==_Command5 |
|
323 COMMAND seid ~ |
|
324 COMMAND seid2 ~ |
|
325 END_TEST_BLOCK |
|
326 |
|
327 END_TESTCASE BT-USER-SEID-PublishedPartner-0007 |
|
328 |
|
329 START_TESTCASE BT-USER-SEID-PublishedPartner-0008 |
|
330 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0008 |
|
331 //! @SYMAPI TSEID::IsLocal() |
|
332 //! @SYMAuthor Wekey Weng |
|
333 //! @SYMCreationDate 02/29/2008 |
|
334 //! @SYMTestCaseDesc Test whether the SEID refers to a local endpoint |
|
335 //! @SYMTestActions 1. Create 1 TSEID object referring to a local endpoint and 1 TSEID object referring to a remote endpoint with same SEID(10); |
|
336 //! 2. Test whether the TSEID object refers to a local endpoint |
|
337 //! 2.1 Test the TSEID created for local |
|
338 //! 2.2 Test the TSEID created for remote |
|
339 //! 3. Destruct the 2 TSEID objects. |
|
340 //! @SYMTestStatus Implemented |
|
341 //! @SYMTestPriority High |
|
342 //! @SYMTestExpectedResults 1. Return expected value without causing panic |
|
343 //! 1.1. Step 2.1 returns ETrue |
|
344 //! 1.2. Step 2.2 returns EFalse |
|
345 //! @SYMTestType CIT |
|
346 |
|
347 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
348 CREATE_OBJECT TSEID seid |
|
349 COMMAND seid new BT-USER-SEID-PublishedPartner-0008-0001-new_Command1 |
|
350 CREATE_OBJECT TSEID seid2 |
|
351 COMMAND seid2 new BT-USER-SEID-PublishedPartner-0008-0001-new_Command2 |
|
352 COMMAND seid IsLocal BT-USER-SEID-PublishedPartner-0008-0001-IsLocal_Command3 |
|
353 COMMAND seid2 IsLocal BT-USER-SEID-PublishedPartner-0008-0001-IsLocal_Command4 |
|
354 COMMAND seid ~ |
|
355 COMMAND seid2 ~ |
|
356 END_TEST_BLOCK |
|
357 |
|
358 END_TESTCASE BT-USER-SEID-PublishedPartner-0008 |
|
359 |
|
360 START_TESTCASE BT-USER-SEID-PublishedPartner-0012 |
|
361 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0012 |
|
362 //! @SYMAPI TSEID::TSEID(TUint, TBool) |
|
363 //! @SYMAuthor Jason Lin |
|
364 //! @SYMCreationDate 03/25/2008 |
|
365 //! @SYMTestCaseDesc Constructor taking a stream endpoint identifier (SEID) value, and whether it refers to a local or remote endpoint |
|
366 //! @SYMTestActions 1. Create a TSEID object referring to a local endpoint with 0 |
|
367 //! 2. Check the TSEID object refers to a local endpoint |
|
368 //! 3. Destruct the TSEID object. |
|
369 //! @SYMTestStatus Implemented |
|
370 //! @SYMTestPriority Low |
|
371 //! @SYMTestExpectedResults 1. TSEID objects are created successfully, and the methods are called without any panic |
|
372 //! 2.1 Step 2 return ETrue |
|
373 //! 2.2 Destruct TSEID object successfully |
|
374 //! @SYMTestType CIT |
|
375 |
|
376 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
377 CREATE_OBJECT TSEID seid |
|
378 COMMAND seid new BT-USER-SEID-PublishedPartner-0012-0001-new_Command1 |
|
379 COMMAND seid IsLocal BT-USER-SEID-PublishedPartner-0012-0001-IsLocal_Command2 |
|
380 COMMAND seid ~ |
|
381 END_TEST_BLOCK |
|
382 |
|
383 END_TESTCASE BT-USER-SEID-PublishedPartner-0012 |
|
384 |
|
385 START_TESTCASE BT-USER-SEID-PublishedPartner-0013 |
|
386 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0013 |
|
387 //! @SYMAPI TSEID::TSEID(TUint, TBool) |
|
388 //! @SYMAuthor Jason Lin |
|
389 //! @SYMCreationDate 03/25/2008 |
|
390 //! @SYMTestCaseDesc Constructor taking a stream endpoint identifier (SEID) value, and whether it refers to a local or remote endpoint |
|
391 //! @SYMTestActions 1. Create a TSEID object referring to a remote endpoint with 0 |
|
392 //! 2. Check the TSEID object refers to a remote endpoint |
|
393 //! 3. Destruct the TSEID object. |
|
394 //! @SYMTestStatus Implemented |
|
395 //! @SYMTestPriority Low |
|
396 //! @SYMTestExpectedResults 1. TSEID objects are created successfully, and the methods are called without any panic |
|
397 //! 2.1 Step 2 return EFalse |
|
398 //! 2.2 Destruct TSEID object successfully |
|
399 //! @SYMTestType CIT |
|
400 |
|
401 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
402 CREATE_OBJECT TSEID seid |
|
403 COMMAND seid new BT-USER-SEID-PublishedPartner-0013-0001-new_Command1 |
|
404 COMMAND seid IsLocal BT-USER-SEID-PublishedPartner-0013-0001-IsLocal_Command2 |
|
405 COMMAND seid ~ |
|
406 END_TEST_BLOCK |
|
407 |
|
408 END_TESTCASE BT-USER-SEID-PublishedPartner-0013 |
|
409 |
|
410 |
|
411 START_TESTCASE BT-USER-SEID-PublishedPartner-0014 |
|
412 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0014 |
|
413 //! @SYMAPI TSEID::TSEID(TUint, TBool) |
|
414 //! @SYMAuthor Jason Lin |
|
415 //! @SYMCreationDate 03/25/2008 |
|
416 //! @SYMTestCaseDesc Constructor taking a stream endpoint identifier (SEID) value, and whether it refers to a local or remote endpoint |
|
417 //! @SYMTestActions 1. Create a TSEID object referring to a local endpoint with 268435456(0x10000000) |
|
418 //! 2. Check the TSEID object refers to a local endpoint |
|
419 //! 3. Destruct the TSEID object. |
|
420 //! @SYMTestStatus Implemented |
|
421 //! @SYMTestPriority Low |
|
422 //! @SYMTestExpectedResults 1. TSEID objects are created successfully, and the methods are called without any panic |
|
423 //! 2.1 Step 2 return ETrue |
|
424 //! 2.2 Destruct TSEID object successfully |
|
425 //! @SYMTestType CIT |
|
426 |
|
427 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
428 CREATE_OBJECT TSEID seid |
|
429 COMMAND seid new BT-USER-SEID-PublishedPartner-0014-0001-new_Command1 |
|
430 COMMAND seid IsLocal BT-USER-SEID-PublishedPartner-0014-0001-IsLocal_Command2 |
|
431 COMMAND seid ~ |
|
432 END_TEST_BLOCK |
|
433 |
|
434 END_TESTCASE BT-USER-SEID-PublishedPartner-0014 |
|
435 |
|
436 |
|
437 START_TESTCASE BT-USER-SEID-PublishedPartner-0015 |
|
438 //! @SYMTestCaseID BT-USER-SEID-PublishedPartner-0015 |
|
439 //! @SYMAPI TSEID::TSEID(TUint, TBool) |
|
440 //! @SYMAuthor Jason Lin |
|
441 //! @SYMCreationDate 03/25/2008 |
|
442 //! @SYMTestCaseDesc Constructor taking a stream endpoint identifier (SEID) value, and whether it refers to a local or remote endpoint |
|
443 //! @SYMTestActions 1. Create a TSEID object referring to a remote endpoint with 268435456(0x10000000) |
|
444 //! 2. Check the TSEID object refers to a remote endpoint |
|
445 //! 3. Destruct the TSEID object. |
|
446 //! @SYMTestStatus Implemented |
|
447 //! @SYMTestPriority Low |
|
448 //! @SYMTestExpectedResults 1. TSEID objects are created successfully, and the methods are called without any panic |
|
449 //! 2.1 Step 2 return EFalse |
|
450 //! 2.2 Destruct TSEID object successfully |
|
451 //! @SYMTestType CIT |
|
452 |
|
453 START_TEST_BLOCK 10 T_BTUserAPI \bluetooth\user\BT-USER-SEID-PublishedPartner.ini |
|
454 CREATE_OBJECT TSEID seid |
|
455 COMMAND seid new BT-USER-SEID-PublishedPartner-0015-0001-new_Command1 |
|
456 COMMAND seid IsLocal BT-USER-SEID-PublishedPartner-0015-0001-IsLocal_Command2 |
|
457 COMMAND seid ~ |
|
458 END_TEST_BLOCK |
|
459 |
|
460 END_TESTCASE BT-USER-SEID-PublishedPartner-0015 |
|
461 |
|
462 DELAY 2000 |
|
463 |