os/boardsupport/haitest/bspsvs/suite/bsp/usb/scripts/base-bsp-usb-validation-automated.script
Update contrib.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName base-bsp-usb-validation-automated
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
20 // Tests all public elements of the RDevUsbcClient
21 // classes as a means of confidence that the APIs work as expected.
23 // The purpose is to provide a regression test suite of PublishedAll
24 // APIs for: RDevUsbcClient
25 // The tests are fully automated.
36 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0001
38 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0001
40 //! RDevUsbcClient::RDevUsbcClient();
41 //! RDevUsbcClient::~RDevUsbcClient()
43 //!@SYMAuthor alavariega
44 //!@SYMCreationDate 23/06/2008
45 //!@SYMTestCaseDesc Create an instance of USB
47 //! 1.- Create a RDevUsbcClient instance
48 //! 2.- Delete RDevUsbcClient instance
49 //!@SYMTestStatus Implemented
50 //!@SYMTestPriority Normal
51 //!@SYMTestExpectedResults
52 //! Create an instance of RDevUsbcClient with no errors
55 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
56 CREATE_OBJECT RDevUsbcClient devucli
60 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0001
65 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0002
67 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0002
69 //! User::LoadLogicalDevice(const TDesC {ref});
70 //!@SYMAuthor alavariega
71 //!@SYMCreationDate 21/04/2008
72 //!@SYMTestCaseDesc USB Device - Load USB Driver
74 //! 1.- Create an instance of Usb
75 //! 2.- Load driver - Load Logical Device(driver = {Driver, driver})
76 //! 3.- Delete usb instance
77 //!@SYMTestStatus Implemented
78 //!@SYMTestPriority Normal
79 //!@SYMTestExpectedResults
80 //! Load USB logical device driver with no errors
83 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
84 CREATE_OBJECT RDevUsbcClient devucli
86 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0002-0001-LoadLogicalDevice_command02
89 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0002
94 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0003
96 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0003
98 //! RDevUsbcClient::Open(TInt);
99 //!@SYMAuthor alavariega
100 //!@SYMCreationDate 21/04/2008
101 //!@SYMTestCaseDesc USB Device - Open Channel to USB Driver
103 //! 1.- Create an instance of usb
104 //! 2.- Load driver - Load Logical Device (driver = {Driver, driver})
106 //! 4.- Delete usb instance
107 //!@SYMTestStatus Implemented
108 //!@SYMTestPriority Normal
109 //!@SYMTestExpectedResults
110 //! Load USB logical device driver and open USB channel with no errors
113 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
114 CREATE_OBJECT RDevUsbcClient devucli
116 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0003-0001-LoadLogicalDevice_command02
120 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0003
125 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0004
127 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0004
129 //! RDevUsbcClient::DeviceCaps(TDes8 {ref});
130 //!@SYMAuthor alavariega
131 //!@SYMCreationDate 21/04/2008
132 //!@SYMTestCaseDesc USB Device - Verify USB Device Capabilities
134 //! 1.- Create an Instance of usb
135 //! 2.- Load driver - Load Logical Device(driver = {Driver, driver})
137 //! 4.- Read device capabilities ( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
139 //! 6.- Delete usb instance
140 //!@SYMTestStatus Verified
141 //!@SYMTestPriority Normal
142 //!@SYMTestExpectedResults
143 //! Verify USB Device Capabilities with no errors. Information obtained is:
144 //! - Device supports Software-Connect (true)
145 //! - Device is Self-Powered (true)
146 //! - Device supports Remote-Wakeup (false)
149 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
150 CREATE_OBJECT RDevUsbcClient devucli
152 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0004-0001-LoadLogicalDevice_command02
154 COMMAND devucli DeviceCaps BASE-BSP-Usb-0004-0001-DeviceCaps_command04
155 COMMAND devucli EndpointCaps
158 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0004
163 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0005
165 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0005
167 //! RDevUsbcClient::GetDeviceDescriptorSize(Tint {ref});
168 //! RDevUsbcClient::GetDeviceDescriptor(TDes8 {ref});
169 //! RDevUsbcClient::SetDeviceDescriptor(const TDes8 {ref});
170 //!@SYMAuthor alavariega
171 //!@SYMCreationDate 21/04/2008
172 //!@SYMTestCaseDesc USB Device - Set USB Device Descriptors
174 //! 1.- Create an instance of usb
175 //! 2.- Load driver (driver = {Driver, driver})
177 //! 4.- Read devide capabilities ( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
179 //! 6.- GetDeviceDescriptorSize
180 //! 7.- GetDeviceDescriptor
181 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
182 //! 9.- Delete usb instance
183 //!@SYMTestStatus Verified
184 //!@SYMTestPriority Normal
185 //!@SYMTestExpectedResults
186 //! Set USB Device Descriptors with no errors
189 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
190 CREATE_OBJECT RDevUsbcClient devucli
192 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0005-0001-LoadLogicalDevice_command02
194 COMMAND devucli DeviceCaps BASE-BSP-Usb-0005-0001-DeviceCaps_command04
195 COMMAND devucli EndpointCaps
196 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0005-0001-SetDeviceDescriptor_command06
197 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0005-0001-GetDeviceDescriptorSize_command07
198 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0005-0001-GetDeviceDescriptor_command08
201 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0005
206 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0006
208 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0006
210 //! RDevUsbcClient::Write(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref}, TInt {ref}, TBool);
211 //! RDevUsbcClient::QueryReceiveBuffer(TEndpointNumber, Tint {ref});
212 //! RDevUsbcClient::Read(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref});
214 //!@SYMAuthor alavariega
215 //!@SYMCreationDate 21/04/2008
216 //!@SYMTestCaseDesc USB Device - Configure Bulk IN and OUT Endpoints
218 //! 1.- Create an instance of usb
219 //! 2.- Load driver - Load Logical Device (driver = {Driver, driver})
221 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
223 //! 6.- GetDeviceDescriptorSize
224 //! 7.- GetDeviceDescriptor
225 //! 8.- SetDeviceDescriptor( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
226 //! 9.- Set type and direction of endpoint to 'Bulk' and 'In' ( mode = Bulk; direction = In )
227 //! 10.- Set type and direction of endpoint to 'Bulk' and 'Out' (mode = Bulk; direction = Out)
228 //! 11.- Delete usb instance
229 //!@SYMTestStatus Verified
230 //!@SYMTestPriority Normal
231 //!@SYMTestExpectedResults
232 //! Configure Bulk IN and OUT Endpoints with no errors
235 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
236 CREATE_OBJECT RDevUsbcClient devucli
238 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0006-0001-LoadLogicalDevice_command02
240 COMMAND devucli DeviceCaps BASE-BSP-Usb-0006-0001-DeviceCaps_command04
241 COMMAND devucli EndpointCaps
242 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0006-0001-SetDeviceDescriptor_command06
243 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0006-0001-GetDeviceDescriptorSize_command07
244 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0006-0001-GetDeviceDescriptor_command08
245 COMMAND devucli SetEndPoint BASE-BSP-Usb-0006-0001-SetEndPoint_command09
246 COMMAND devucli SetEndPoint BASE-BSP-Usb-0006-0001-SetEndPoint_command10
249 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0006
254 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0007
256 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0007
258 //! RDevUsbcClient::Write(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref}, TInt {ref}, TBool);
259 //! RDevUsbcClient::QueryReceiveBuffer(TEndpointNumber, Tint {ref});
260 //! RDevUsbcClient::Read(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref});
262 //!@SYMAuthor alavariega
263 //!@SYMCreationDate 21/04/2008
264 //!@SYMTestCaseDesc USB Device - Configure Interrupt IN and OUT Endpoints
266 //! 1.- Create an instance of usb
267 //! 2.- Load driver (driver = {Driver, driver})
269 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
271 //! 6.- GetDeviceDescriptorSize
272 //! 7.- GetDeviceDescriptor
273 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
274 //! 9.- Set type and direction of endpoint to 'Interrupt' and 'In' ( mode = Interrupt; direction = In )
275 //! 10.- Set type and direction of endpoint to 'Interrupt' and 'Out' ( mode = Interrupt; direction = Out )
276 //! 11.- Delete usb instance
277 //!@SYMTestStatus Verified
278 //!@SYMTestPriority Normal
279 //!@SYMTestExpectedResults
280 //! Configure Interrupt IN and OUT Endpoints with no errors
283 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
284 CREATE_OBJECT RDevUsbcClient devucli
286 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0007-0001-LoadLogicalDevice_command02
288 COMMAND devucli DeviceCaps BASE-BSP-Usb-0007-0001-DeviceCaps_command04
289 COMMAND devucli EndpointCaps
290 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0007-0001-SetDeviceDescriptor_command06
291 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0007-0001-GetDeviceDescriptorSize_command07
292 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0007-0001-GetDeviceDescriptor_command08
293 COMMAND devucli SetEndPoint BASE-BSP-Usb-0007-0001-SetEndPoint_command09
294 COMMAND devucli SetEndPoint BASE-BSP-Usb-0007-0001-SetEndPoint_command10
297 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0007
302 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0008
304 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0008
306 //! RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
307 //!@SYMAuthor alavariega
308 //!@SYMCreationDate 21/04/2008
309 //!@SYMTestCaseDesc USB Neg Buf - Set negative (small) bandwidth priority
311 //! 1.- Create an instance of usb
312 //! 2.- Load driver - Load Logical Device (driver = {Driver, driver})
314 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
316 //! 6.- GetDeviceDescriptorSize
317 //! 7.- GetDeviceDescriptor
318 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
319 //! 9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
320 //! 10.- Set the USB interface to -1 ( bandwidthBufferingMask = -1 )
321 //! 11.- Delete usb instance
322 //!@SYMTestStatus Verified
323 //!@SYMTestPriority Normal
324 //!@SYMTestExpectedResults
325 //! The Test Case pass if the error is the KErrArgument (-6) expected.
328 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
329 CREATE_OBJECT RDevUsbcClient devucli
331 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0008-0001-LoadLogicalDevice_command02
333 COMMAND devucli DeviceCaps BASE-BSP-Usb-0008-0001-DeviceCaps_command04
334 COMMAND devucli EndpointCaps
335 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0008-0001-SetDeviceDescriptor_command06
336 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0008-0001-GetDeviceDescriptorSize_command07
337 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0008-0001-GetDeviceDescriptor_command08
338 COMMAND devucli SetEndPoint BASE-BSP-Usb-0008-0001-SetEndPoint_command09
339 COMMAND devucli SetEndPoint BASE-BSP-Usb-0008-0001-SetEndPoint_command09
340 COMMAND !Error=-6 devucli SetInterface BASE-BSP-Usb-0008-0001-SetInterface_command10
343 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0008
348 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0009
350 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0009
352 //! RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
353 //!@SYMAuthor alavariega
354 //!@SYMCreationDate 21/04/2008
355 //!@SYMTestCaseDesc USB Neg Buf - Set negative (large) bandwidth priority
357 //! 1.- Create an instance of usb
358 //! 2.- Load driver (driver = {Driver, driver})
360 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
362 //! 6.- GetDeviceDescriptorSize
363 //! 7.- GetDeviceDescriptor
364 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
365 //! 9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
366 //! 10.- Set the USB interface to -542356 ( bandwidthBufferingMask = -542356 )
367 //! 11.- Delete usb instance
368 //!@SYMTestStatus Verified
369 //!@SYMTestPriority Normal
370 //!@SYMTestExpectedResults
371 //! The Test Case pass if the error is the KErrArgument (-6) expected.
374 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
375 CREATE_OBJECT RDevUsbcClient devucli
377 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0009-0001-LoadLogicalDevice_command02
379 COMMAND devucli DeviceCaps BASE-BSP-Usb-0009-0001-DeviceCaps_command04
380 COMMAND devucli EndpointCaps
381 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0009-0001-SetDeviceDescriptor_command06
382 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0009-0001-GetDeviceDescriptorSize_command07
383 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0009-0001-GetDeviceDescriptor_command08
384 COMMAND devucli SetEndPoint BASE-BSP-Usb-0009-0001-SetEndPoint_command09
385 COMMAND !Error=-6 devucli SetInterface BASE-BSP-Usb-0009-0001-SetInterface_command10
388 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0009
393 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0010
395 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0010
397 //! RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
398 //!@SYMAuthor alavariega
399 //!@SYMCreationDate 21/04/2008
400 //!@SYMTestCaseDesc USB Neg Buf - Set wrong (large) bandwidth priority
402 //! 1.- Create an instance of usb
403 //! 2.- Load driver - Load Logical Device (driver = {Driver, driver})
405 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
407 //! 6.- GetDeviceDescriptorSize
408 //! 7.- GetDeviceDescriptor
409 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
410 //! 9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
411 //! 10.- Set the USB interface to 43143 ( bandwidthBufferingMask = 43143 )
412 //! 11.- Delete usb instance
413 //!@SYMTestStatus Verified
414 //!@SYMTestPriority Normal
415 //!@SYMTestExpectedResults
416 //! The Test Case pass if the error is the KErrArgument (-6) expected.
419 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
420 CREATE_OBJECT RDevUsbcClient devucli
422 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0010-0001-LoadLogicalDevice_command02
424 COMMAND devucli DeviceCaps BASE-BSP-Usb-0010-0001-DeviceCaps_command04
425 COMMAND devucli EndpointCaps
426 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0010-0001-SetDeviceDescriptor_command06
427 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0010-0001-GetDeviceDescriptorSize_command07
428 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0010-0001-GetDeviceDescriptor_command08
429 COMMAND devucli SetEndPoint BASE-BSP-Usb-0010-0001-SetEndPoint_command09
430 COMMAND !Error=-6 devucli SetInterface BASE-BSP-Usb-0010-0001-SetInterface_command10
433 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0010
438 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0011
440 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0011
442 //! RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
443 //!@SYMAuthor alavariega
444 //!@SYMCreationDate 21/04/2008
445 //!@SYMTestCaseDesc USB Neg Buf - Set wrong (boundary value 52) bandwidth priority
447 //! 1.- Create an instance of usb
448 //! 2.- Load driver - Load Logical Device (driver = {Driver, driver})
450 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
452 //! 6.- GetDeviceDescriptorSize
453 //! 7.- GetDeviceDescriptor
454 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
455 //! 9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
456 //! 10.- Set the USB interface to 52 ( bandwidthBufferingMask = 52)
457 //! 11.- Delete usb instance
458 //!@SYMTestStatus Verified
459 //!@SYMTestPriority Normal
460 //!@SYMTestExpectedResults
461 //! The Test Case pass if the error is the KErrArgument (-6) expected.
464 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
465 CREATE_OBJECT RDevUsbcClient devucli
467 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0011-0001-LoadLogicalDevice_command02
469 COMMAND devucli DeviceCaps BASE-BSP-Usb-0011-0001-DeviceCaps_command04
470 COMMAND devucli EndpointCaps
471 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0011-0001-SetDeviceDescriptor_command06
472 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0011-0001-GetDeviceDescriptorSize_command07
473 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0011-0001-GetDeviceDescriptor_command08
474 COMMAND devucli SetEndPoint BASE-BSP-Usb-0011-0001-SetEndPoint_command09
475 COMMAND !Error=-6 devucli SetInterface BASE-BSP-Usb-0011-0001-SetInterface_command10
478 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0011
483 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0012
485 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0012
487 //! RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
488 //!@SYMAuthor alavariega
489 //!@SYMCreationDate 21/04/2008
490 //!@SYMTestCaseDesc USB Neg Buf - Set wrong (boundary value 4) bandwidth priority
492 //! 1.- Create an instance of usb
493 //! 2.- Load driver - Load Logical Device (driver = {Driver, driver})
495 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
497 //! 6.- GetDeviceDescriptorSize
498 //! 7.- GetDeviceDescriptor
499 //! 8.- SetDeviceDescriptor( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
500 //! 9. Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
501 //! 10.- Set the USB interface to 4 ( bandwidthBufferingMask = 4 )
502 //! 11.- Delete usb instance
503 //!@SYMTestStatus Verified
504 //!@SYMTestPriority Normal
505 //!@SYMTestExpectedResults
506 //! The Test Case pass if the error is the KErrArgument (-6) expected.
509 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
510 CREATE_OBJECT RDevUsbcClient devucli
512 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0012-0001-LoadLogicalDevice_command02
514 COMMAND devucli DeviceCaps BASE-BSP-Usb-0012-0001-DeviceCaps_command04
515 COMMAND devucli EndpointCaps
516 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0012-0001-SetDeviceDescriptor_command06
517 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0012-0001-GetDeviceDescriptorSize_command07
518 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0012-0001-GetDeviceDescriptor_command08
519 COMMAND devucli SetEndPoint BASE-BSP-Usb-0012-0001-SetEndPoint_command09
520 COMMAND !Error=-6 devucli SetInterface BASE-BSP-Usb-0012-0001-SetInterface_command10
523 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0012
528 START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0013
530 //!@SYMTestCaseID BASE-BSP-USB-VALIDATION-AUTOMATED-0013
532 //! RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
533 //!@SYMAuthor alavariega
534 //!@SYMCreationDate 21/04/2008
535 //!@SYMTestCaseDesc USB Device - Set USB Interface
537 //! 1.- Create an instance of usb
538 //! 2.- Load driver (driver = {Driver, driver})
540 //! 4.- Read device capabilities( supportsConnect = {capabilities,supportsConnect}; supportsSelfPowered = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
542 //! 6.- GetDeviceDescriptorSize
543 //! 7.- GetDeviceDescriptor
544 //! 8.- SetDeviceDescriptor ( USBVersionLow = {USB_version,USBVersionLowFor2_00}; USBVersionHigh = {USB_version,USBVersionHighFor2_00};VendorIDLow = {VendorID,VendorIDLowForNokia};VendorIDHigh = {VendorID,VendorIDHighForNokia};ProductIDLow = {ProductID,ProductIDLowForTestDevice}; ProductIDHigh = {ProductID,ProductIDHighForTestDevice};ReleaseNumberLow = {ReleaseNumber,ReleaseNumberLowFor1_00};ReleaseNumberHigh = {ReleaseNumber,ReleaseNumberHighFor1_00})
545 //! 9.- Set type and direction of endpoint to 'Bulk' and 'In' ( mode = Bulk; direction = In )
546 //! 10.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
547 //! 11.- Set the USB interface to BANDWIDTHPLUS2 ( bandwidthBufferingMask = 34 )
548 //! 12.- Delete usb instance
549 //!@SYMTestStatus Verified
550 //!@SYMTestPriority Normal
551 //!@SYMTestExpectedResults
552 //! Set USB Interface with no errors.
555 START_TEST_BLOCK 300 t_usb \base\usb\base-bsp-usb-validation-automated.ini
556 CREATE_OBJECT RDevUsbcClient devucli
558 COMMAND devucli LoadLogicalDevice BASE-BSP-Usb-0013-0001-LoadLogicalDevice_command02
560 COMMAND devucli DeviceCaps BASE-BSP-Usb-0013-0001-DeviceCaps_command04
561 COMMAND devucli EndpointCaps
562 COMMAND devucli SetDeviceDescriptor BASE-BSP-Usb-0013-0001-SetDeviceDescriptor_command06
563 COMMAND devucli GetDeviceDescriptorSize BASE-BSP-Usb-0013-0001-GetDeviceDescriptorSize_command07
564 COMMAND devucli GetDeviceDescriptor BASE-BSP-Usb-0013-0001-GetDeviceDescriptor_command08
565 COMMAND devucli SetEndPoint BASE-BSP-Usb-0013-0001-SetEndPoint_command09
566 COMMAND devucli SetEndPoint BASE-BSP-Usb-0013-0001-SetEndPoint_command10
567 COMMAND devucli SetInterface BASE-BSP-Usb-0013-0001-SetInterface_command11
570 END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0013