os/boardsupport/haitest/bspsvs/suite/bsp/usb/scripts/base-bsp-usb-validation-automated.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/bsp/usb/scripts/base-bsp-usb-validation-automated.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,570 @@
     1.4 +//
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +//! @file
    1.20 +//! @SYMTestSuiteName base-bsp-usb-validation-automated
    1.21 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
    1.22 +// 
    1.23 +// Tests all public elements of the RDevUsbcClient
    1.24 +// classes as a means of confidence that the APIs work as expected.
    1.25 +// 
    1.26 +// The purpose is to provide a regression test suite of PublishedAll
    1.27 +// APIs for: RDevUsbcClient
    1.28 +// The tests are fully automated.
    1.29 +// 
    1.30 +
    1.31 +
    1.32 +
    1.33 +LOAD_SUITE t_usb
    1.34 +
    1.35 +
    1.36 +
    1.37 +
    1.38 +
    1.39 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0001
    1.40 +
    1.41 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0001
    1.42 +//!@SYMAPI
    1.43 +//!                RDevUsbcClient::RDevUsbcClient();
    1.44 +//!                RDevUsbcClient::~RDevUsbcClient()
    1.45 +//!                
    1.46 +//!@SYMAuthor			alavariega
    1.47 +//!@SYMCreationDate		23/06/2008
    1.48 +//!@SYMTestCaseDesc		Create an instance of USB
    1.49 +//!@SYMTestActions
    1.50 +//!                1.- Create a RDevUsbcClient instance
    1.51 +//!                2.- Delete RDevUsbcClient instance
    1.52 +//!@SYMTestStatus		Implemented
    1.53 +//!@SYMTestPriority		Normal
    1.54 +//!@SYMTestExpectedResults
    1.55 +//!                Create an instance of RDevUsbcClient with no errors
    1.56 +//!@SYMTestType			CIT
    1.57 +
    1.58 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
    1.59 +		CREATE_OBJECT	RDevUsbcClient		devucli
    1.60 +		COMMAND		devucli		NewL
    1.61 +		COMMAND		devucli		~
    1.62 +	END_TEST_BLOCK
    1.63 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0001
    1.64 +
    1.65 +
    1.66 +
    1.67 +
    1.68 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0002
    1.69 +
    1.70 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0002
    1.71 +//!@SYMAPI
    1.72 +//!                User::LoadLogicalDevice(const TDesC {ref});
    1.73 +//!@SYMAuthor			alavariega
    1.74 +//!@SYMCreationDate		21/04/2008
    1.75 +//!@SYMTestCaseDesc		USB Device - Load USB Driver
    1.76 +//!@SYMTestActions
    1.77 +//!                1.- Create an instance of Usb 
    1.78 +//!                2.- Load driver - Load Logical Device(driver = {Driver, driver}) 
    1.79 +//!                3.- Delete usb instance
    1.80 +//!@SYMTestStatus		Implemented
    1.81 +//!@SYMTestPriority		Normal
    1.82 +//!@SYMTestExpectedResults
    1.83 +//!                Load USB logical device driver with no errors
    1.84 +//!@SYMTestType			CIT
    1.85 +
    1.86 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
    1.87 +		CREATE_OBJECT	RDevUsbcClient		devucli
    1.88 +		COMMAND		devucli		NewL
    1.89 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0002-0001-LoadLogicalDevice_command02
    1.90 +		COMMAND		devucli		~
    1.91 +	END_TEST_BLOCK
    1.92 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0002
    1.93 +
    1.94 +
    1.95 +
    1.96 +
    1.97 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0003
    1.98 +
    1.99 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0003
   1.100 +//!@SYMAPI
   1.101 +//!                RDevUsbcClient::Open(TInt);
   1.102 +//!@SYMAuthor			alavariega
   1.103 +//!@SYMCreationDate		21/04/2008
   1.104 +//!@SYMTestCaseDesc		USB Device - Open Channel to USB Driver
   1.105 +//!@SYMTestActions
   1.106 +//!                1.- Create an instance of usb
   1.107 +//!                2.- Load driver - Load Logical Device (driver = {Driver, driver}) 
   1.108 +//!                3.- Open channel
   1.109 +//!                4.- Delete usb instance
   1.110 +//!@SYMTestStatus		Implemented
   1.111 +//!@SYMTestPriority		Normal
   1.112 +//!@SYMTestExpectedResults
   1.113 +//!                Load USB logical device driver and open USB channel with no errors
   1.114 +//!@SYMTestType			CIT
   1.115 +
   1.116 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.117 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.118 +		COMMAND		devucli		NewL
   1.119 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0003-0001-LoadLogicalDevice_command02
   1.120 +		COMMAND		devucli		Open
   1.121 +		COMMAND		devucli		~
   1.122 +	END_TEST_BLOCK
   1.123 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0003
   1.124 +
   1.125 +
   1.126 +
   1.127 +
   1.128 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0004
   1.129 +
   1.130 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0004
   1.131 +//!@SYMAPI
   1.132 +//!                RDevUsbcClient::DeviceCaps(TDes8 {ref});
   1.133 +//!@SYMAuthor			alavariega
   1.134 +//!@SYMCreationDate		21/04/2008
   1.135 +//!@SYMTestCaseDesc		USB Device - Verify USB Device Capabilities
   1.136 +//!@SYMTestActions
   1.137 +//!                1.- Create an Instance of usb
   1.138 +//!                2.- Load driver - Load Logical Device(driver = {Driver, driver}) 
   1.139 +//!                3.- Open channel
   1.140 +//!                4.- Read device capabilities ( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.141 +//!                5.  EndpointCaps 
   1.142 +//!                6.- Delete usb instance
   1.143 +//!@SYMTestStatus		Verified
   1.144 +//!@SYMTestPriority		Normal
   1.145 +//!@SYMTestExpectedResults
   1.146 +//!                Verify USB Device Capabilities with no errors. Information obtained is:
   1.147 +//!                - Device supports Software-Connect (true)
   1.148 +//!                - Device is Self-Powered (true)
   1.149 +//!                - Device supports Remote-Wakeup (false)
   1.150 +//!@SYMTestType			CIT
   1.151 +
   1.152 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.153 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.154 +		COMMAND		devucli		NewL
   1.155 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0004-0001-LoadLogicalDevice_command02
   1.156 +		COMMAND		devucli		Open
   1.157 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0004-0001-DeviceCaps_command04
   1.158 +		COMMAND		devucli		EndpointCaps
   1.159 +		COMMAND		devucli		~
   1.160 +	END_TEST_BLOCK
   1.161 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0004
   1.162 +
   1.163 +
   1.164 +
   1.165 +
   1.166 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0005
   1.167 +
   1.168 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0005
   1.169 +//!@SYMAPI
   1.170 +//!                RDevUsbcClient::GetDeviceDescriptorSize(Tint {ref});
   1.171 +//!                RDevUsbcClient::GetDeviceDescriptor(TDes8 {ref});
   1.172 +//!                RDevUsbcClient::SetDeviceDescriptor(const TDes8 {ref});
   1.173 +//!@SYMAuthor			alavariega
   1.174 +//!@SYMCreationDate		21/04/2008
   1.175 +//!@SYMTestCaseDesc		USB Device - Set USB Device Descriptors
   1.176 +//!@SYMTestActions
   1.177 +//!                1.- Create an instance of usb
   1.178 +//!                2.- Load driver (driver = {Driver, driver}) 
   1.179 +//!                3.- Open channel
   1.180 +//!                4.- Read devide capabilities ( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.181 +//!                5.  EndpointCaps 
   1.182 +//!                6.- GetDeviceDescriptorSize
   1.183 +//!                7.- GetDeviceDescriptor
   1.184 +//!                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})
   1.185 +//!                9.- Delete usb instance
   1.186 +//!@SYMTestStatus		Verified
   1.187 +//!@SYMTestPriority		Normal
   1.188 +//!@SYMTestExpectedResults
   1.189 +//!                Set USB Device Descriptors with no errors
   1.190 +//!@SYMTestType			CIT
   1.191 +
   1.192 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.193 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.194 +		COMMAND		devucli		NewL
   1.195 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0005-0001-LoadLogicalDevice_command02
   1.196 +		COMMAND		devucli		Open
   1.197 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0005-0001-DeviceCaps_command04
   1.198 +		COMMAND		devucli		EndpointCaps
   1.199 +        COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0005-0001-SetDeviceDescriptor_command06
   1.200 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0005-0001-GetDeviceDescriptorSize_command07
   1.201 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0005-0001-GetDeviceDescriptor_command08
   1.202 +		COMMAND		devucli		~
   1.203 +	END_TEST_BLOCK
   1.204 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0005
   1.205 +
   1.206 +
   1.207 +
   1.208 +
   1.209 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0006
   1.210 +
   1.211 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0006
   1.212 +//!@SYMAPI
   1.213 +//!                RDevUsbcClient::Write(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref}, TInt {ref}, TBool);
   1.214 +//!                RDevUsbcClient::QueryReceiveBuffer(TEndpointNumber, Tint {ref});
   1.215 +//!                RDevUsbcClient::Read(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref});
   1.216 +//!                
   1.217 +//!@SYMAuthor			alavariega
   1.218 +//!@SYMCreationDate		21/04/2008
   1.219 +//!@SYMTestCaseDesc		USB Device - Configure Bulk IN and OUT Endpoints
   1.220 +//!@SYMTestActions
   1.221 +//!                1.- Create an instance of usb
   1.222 +//!                2.- Load driver - Load Logical Device (driver = {Driver, driver}) 
   1.223 +//!                3.- Open channel
   1.224 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.225 +//!                5.  EndpointCaps 
   1.226 +//!                6.- GetDeviceDescriptorSize
   1.227 +//!                7.- GetDeviceDescriptor
   1.228 +//!                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})
   1.229 +//!                9.- Set type and direction of endpoint to 'Bulk' and 'In' ( mode = Bulk; direction = In )
   1.230 +//!                10.- Set type and direction of endpoint to 'Bulk' and 'Out' (mode = Bulk; direction = Out)
   1.231 +//!                11.- Delete usb instance
   1.232 +//!@SYMTestStatus		Verified
   1.233 +//!@SYMTestPriority		Normal
   1.234 +//!@SYMTestExpectedResults
   1.235 +//!                Configure Bulk IN and OUT Endpoints with no errors
   1.236 +//!@SYMTestType			CIT
   1.237 +
   1.238 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.239 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.240 +		COMMAND		devucli		NewL
   1.241 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0006-0001-LoadLogicalDevice_command02
   1.242 +		COMMAND		devucli		Open
   1.243 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0006-0001-DeviceCaps_command04
   1.244 +		COMMAND		devucli		EndpointCaps
   1.245 +        COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0006-0001-SetDeviceDescriptor_command06
   1.246 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0006-0001-GetDeviceDescriptorSize_command07
   1.247 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0006-0001-GetDeviceDescriptor_command08
   1.248 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0006-0001-SetEndPoint_command09
   1.249 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0006-0001-SetEndPoint_command10
   1.250 +		COMMAND		devucli		~
   1.251 +	END_TEST_BLOCK
   1.252 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0006
   1.253 +
   1.254 +
   1.255 +
   1.256 +
   1.257 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0007
   1.258 +
   1.259 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0007
   1.260 +//!@SYMAPI
   1.261 +//!                RDevUsbcClient::Write(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref}, TInt {ref}, TBool);
   1.262 +//!                RDevUsbcClient::QueryReceiveBuffer(TEndpointNumber, Tint {ref});
   1.263 +//!                RDevUsbcClient::Read(TRequestStatus {ref}, TEndpointNumber, TDes8 {ref});
   1.264 +//!                
   1.265 +//!@SYMAuthor			alavariega
   1.266 +//!@SYMCreationDate		21/04/2008
   1.267 +//!@SYMTestCaseDesc		USB Device - Configure Interrupt IN and OUT Endpoints
   1.268 +//!@SYMTestActions
   1.269 +//!                1.- Create an instance of usb
   1.270 +//!                2.- Load driver (driver = {Driver, driver}) 
   1.271 +//!                3.- Open channel
   1.272 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.273 +//!                5.  EndpointCaps 
   1.274 +//!                6.- GetDeviceDescriptorSize
   1.275 +//!                7.- GetDeviceDescriptor
   1.276 +//!                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})
   1.277 +//!                9.- Set type and direction of endpoint to 'Interrupt' and 'In' ( mode = Interrupt; direction = In )
   1.278 +//!                10.- Set type and direction of endpoint to 'Interrupt' and 'Out' ( mode = Interrupt; direction = Out )
   1.279 +//!                11.- Delete usb instance
   1.280 +//!@SYMTestStatus		Verified
   1.281 +//!@SYMTestPriority		Normal
   1.282 +//!@SYMTestExpectedResults
   1.283 +//!                Configure Interrupt IN and OUT Endpoints with no errors
   1.284 +//!@SYMTestType			CIT
   1.285 +
   1.286 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.287 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.288 +		COMMAND		devucli		NewL
   1.289 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0007-0001-LoadLogicalDevice_command02
   1.290 +		COMMAND		devucli		Open
   1.291 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0007-0001-DeviceCaps_command04
   1.292 +		COMMAND		devucli		EndpointCaps
   1.293 +        COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0007-0001-SetDeviceDescriptor_command06
   1.294 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0007-0001-GetDeviceDescriptorSize_command07
   1.295 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0007-0001-GetDeviceDescriptor_command08
   1.296 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0007-0001-SetEndPoint_command09
   1.297 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0007-0001-SetEndPoint_command10
   1.298 +		COMMAND		devucli		~
   1.299 +	END_TEST_BLOCK
   1.300 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0007
   1.301 +
   1.302 +
   1.303 +
   1.304 +
   1.305 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0008
   1.306 +
   1.307 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0008
   1.308 +//!@SYMAPI
   1.309 +//!                RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
   1.310 +//!@SYMAuthor			alavariega
   1.311 +//!@SYMCreationDate		21/04/2008
   1.312 +//!@SYMTestCaseDesc		USB Neg Buf - Set negative (small) bandwidth priority
   1.313 +//!@SYMTestActions
   1.314 +//!                1.- Create an instance of usb
   1.315 +//!                2.- Load driver - Load Logical Device (driver = {Driver, driver}) 
   1.316 +//!                3.- Open channel
   1.317 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.318 +//!                5.  EndpointCaps 
   1.319 +//!                6.- GetDeviceDescriptorSize
   1.320 +//!                7.- GetDeviceDescriptor
   1.321 +//!                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})
   1.322 +//!                9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out ) 
   1.323 +//!                10.- Set the USB interface to -1 ( bandwidthBufferingMask = -1 )
   1.324 +//!                11.- Delete usb instance
   1.325 +//!@SYMTestStatus		Verified
   1.326 +//!@SYMTestPriority		Normal
   1.327 +//!@SYMTestExpectedResults
   1.328 +//!                The Test Case pass if the error is the KErrArgument (-6) expected.
   1.329 +//!@SYMTestType			CIT
   1.330 +
   1.331 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.332 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.333 +		COMMAND		devucli		NewL
   1.334 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0008-0001-LoadLogicalDevice_command02
   1.335 +		COMMAND		devucli		Open
   1.336 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0008-0001-DeviceCaps_command04
   1.337 +		COMMAND		devucli		EndpointCaps
   1.338 +        COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0008-0001-SetDeviceDescriptor_command06
   1.339 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0008-0001-GetDeviceDescriptorSize_command07
   1.340 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0008-0001-GetDeviceDescriptor_command08
   1.341 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0008-0001-SetEndPoint_command09
   1.342 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0008-0001-SetEndPoint_command09
   1.343 +		COMMAND		!Error=-6	devucli		SetInterface	BASE-BSP-Usb-0008-0001-SetInterface_command10
   1.344 +		COMMAND		devucli		~
   1.345 +	END_TEST_BLOCK
   1.346 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0008
   1.347 +
   1.348 +
   1.349 +
   1.350 +
   1.351 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0009
   1.352 +
   1.353 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0009
   1.354 +//!@SYMAPI
   1.355 +//!                RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
   1.356 +//!@SYMAuthor			alavariega
   1.357 +//!@SYMCreationDate		21/04/2008
   1.358 +//!@SYMTestCaseDesc		USB Neg Buf - Set negative (large) bandwidth priority
   1.359 +//!@SYMTestActions
   1.360 +//!                1.- Create an instance of usb
   1.361 +//!                2.- Load driver (driver = {Driver, driver}) 
   1.362 +//!                3.- Open channel
   1.363 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.364 +//!                5.  EndpointCaps 
   1.365 +//!                6.- GetDeviceDescriptorSize
   1.366 +//!                7.- GetDeviceDescriptor
   1.367 +//!                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})
   1.368 +//!                9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
   1.369 +//!                10.- Set the USB interface to -542356 ( bandwidthBufferingMask =  -542356 )
   1.370 +//!                11.- Delete usb instance
   1.371 +//!@SYMTestStatus		Verified
   1.372 +//!@SYMTestPriority		Normal
   1.373 +//!@SYMTestExpectedResults
   1.374 +//!                The Test Case pass if the error is the KErrArgument (-6) expected.
   1.375 +//!@SYMTestType			CIT
   1.376 +
   1.377 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.378 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.379 +		COMMAND		devucli		NewL
   1.380 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0009-0001-LoadLogicalDevice_command02
   1.381 +		COMMAND		devucli		Open
   1.382 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0009-0001-DeviceCaps_command04
   1.383 +		COMMAND		devucli		EndpointCaps
   1.384 +		COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0009-0001-SetDeviceDescriptor_command06
   1.385 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0009-0001-GetDeviceDescriptorSize_command07
   1.386 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0009-0001-GetDeviceDescriptor_command08
   1.387 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0009-0001-SetEndPoint_command09
   1.388 +		COMMAND		!Error=-6	devucli		SetInterface	BASE-BSP-Usb-0009-0001-SetInterface_command10
   1.389 +		COMMAND		devucli		~
   1.390 +	END_TEST_BLOCK
   1.391 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0009
   1.392 +
   1.393 +
   1.394 +
   1.395 +
   1.396 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0010
   1.397 +
   1.398 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0010
   1.399 +//!@SYMAPI
   1.400 +//!                RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
   1.401 +//!@SYMAuthor			alavariega
   1.402 +//!@SYMCreationDate		21/04/2008
   1.403 +//!@SYMTestCaseDesc		USB Neg Buf - Set wrong (large) bandwidth priority
   1.404 +//!@SYMTestActions
   1.405 +//!                1.- Create an instance of usb
   1.406 +//!                2.- Load driver - Load Logical Device (driver = {Driver, driver}) 
   1.407 +//!                3.- Open channel
   1.408 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.409 +//!                5.  EndpointCaps 
   1.410 +//!                6.- GetDeviceDescriptorSize
   1.411 +//!                7.- GetDeviceDescriptor
   1.412 +//!                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})
   1.413 +//!                9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
   1.414 +//!                10.- Set the USB interface to 43143 ( bandwidthBufferingMask =  43143 )
   1.415 +//!                11.- Delete usb instance
   1.416 +//!@SYMTestStatus		Verified
   1.417 +//!@SYMTestPriority		Normal
   1.418 +//!@SYMTestExpectedResults
   1.419 +//!                The Test Case pass if the error is the KErrArgument (-6) expected.
   1.420 +//!@SYMTestType			CIT
   1.421 +
   1.422 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.423 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.424 +		COMMAND		devucli		NewL
   1.425 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0010-0001-LoadLogicalDevice_command02
   1.426 +		COMMAND		devucli		Open
   1.427 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0010-0001-DeviceCaps_command04
   1.428 +		COMMAND		devucli		EndpointCaps
   1.429 +		COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0010-0001-SetDeviceDescriptor_command06
   1.430 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0010-0001-GetDeviceDescriptorSize_command07
   1.431 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0010-0001-GetDeviceDescriptor_command08
   1.432 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0010-0001-SetEndPoint_command09
   1.433 +		COMMAND		!Error=-6	devucli		SetInterface	BASE-BSP-Usb-0010-0001-SetInterface_command10
   1.434 +		COMMAND		devucli		~
   1.435 +	END_TEST_BLOCK
   1.436 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0010
   1.437 +
   1.438 +
   1.439 +
   1.440 +
   1.441 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0011
   1.442 +
   1.443 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0011
   1.444 +//!@SYMAPI
   1.445 +//!                RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
   1.446 +//!@SYMAuthor			alavariega
   1.447 +//!@SYMCreationDate		21/04/2008
   1.448 +//!@SYMTestCaseDesc		USB Neg Buf - Set wrong (boundary value 52) bandwidth priority
   1.449 +//!@SYMTestActions
   1.450 +//!                1.- Create an instance of usb
   1.451 +//!                2.- Load driver - Load Logical Device (driver = {Driver, driver}) 
   1.452 +//!                3.- Open channel
   1.453 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.454 +//!                5.  EndpointCaps 
   1.455 +//!                6.- GetDeviceDescriptorSize
   1.456 +//!                7.- GetDeviceDescriptor
   1.457 +//!                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})
   1.458 +//!                9.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
   1.459 +//!                10.- Set the USB interface to 52 ( bandwidthBufferingMask = 52)
   1.460 +//!                11.- Delete usb instance
   1.461 +//!@SYMTestStatus		Verified
   1.462 +//!@SYMTestPriority		Normal
   1.463 +//!@SYMTestExpectedResults
   1.464 +//!                The Test Case pass if the error is the KErrArgument (-6) expected.
   1.465 +//!@SYMTestType			CIT
   1.466 +
   1.467 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.468 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.469 +		COMMAND		devucli		NewL
   1.470 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0011-0001-LoadLogicalDevice_command02
   1.471 +		COMMAND		devucli		Open
   1.472 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0011-0001-DeviceCaps_command04
   1.473 +		COMMAND		devucli		EndpointCaps
   1.474 +		COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0011-0001-SetDeviceDescriptor_command06
   1.475 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0011-0001-GetDeviceDescriptorSize_command07
   1.476 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0011-0001-GetDeviceDescriptor_command08
   1.477 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0011-0001-SetEndPoint_command09
   1.478 +		COMMAND		!Error=-6	devucli		SetInterface	BASE-BSP-Usb-0011-0001-SetInterface_command10
   1.479 +		COMMAND		devucli		~
   1.480 +	END_TEST_BLOCK
   1.481 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0011
   1.482 +
   1.483 +
   1.484 +
   1.485 +
   1.486 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0012
   1.487 +
   1.488 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0012
   1.489 +//!@SYMAPI
   1.490 +//!                RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
   1.491 +//!@SYMAuthor			alavariega
   1.492 +//!@SYMCreationDate		21/04/2008
   1.493 +//!@SYMTestCaseDesc		USB Neg Buf - Set wrong (boundary value 4) bandwidth priority
   1.494 +//!@SYMTestActions
   1.495 +//!                1.- Create an instance of usb
   1.496 +//!                2.- Load driver - Load Logical Device (driver = {Driver, driver}) 
   1.497 +//!                3.- Open channel
   1.498 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.499 +//!                5.  EndpointCaps 
   1.500 +//!                6.- GetDeviceDescriptorSize
   1.501 +//!                7.- GetDeviceDescriptor
   1.502 +//!                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})
   1.503 +//!                9. Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
   1.504 +//!                10.- Set the USB interface to 4 ( bandwidthBufferingMask = 4 )
   1.505 +//!                11.- Delete usb instance
   1.506 +//!@SYMTestStatus		Verified
   1.507 +//!@SYMTestPriority		Normal
   1.508 +//!@SYMTestExpectedResults
   1.509 +//!                The Test Case pass if the error is the KErrArgument (-6) expected.
   1.510 +//!@SYMTestType			CIT
   1.511 +
   1.512 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.513 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.514 +		COMMAND		devucli		NewL
   1.515 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0012-0001-LoadLogicalDevice_command02
   1.516 +		COMMAND		devucli		Open
   1.517 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0012-0001-DeviceCaps_command04
   1.518 +		COMMAND		devucli		EndpointCaps
   1.519 +		COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0012-0001-SetDeviceDescriptor_command06
   1.520 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0012-0001-GetDeviceDescriptorSize_command07
   1.521 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0012-0001-GetDeviceDescriptor_command08
   1.522 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0012-0001-SetEndPoint_command09
   1.523 +		COMMAND		!Error=-6	devucli		SetInterface	BASE-BSP-Usb-0012-0001-SetInterface_command10
   1.524 +		COMMAND		devucli		~
   1.525 +	END_TEST_BLOCK
   1.526 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0012
   1.527 +
   1.528 +
   1.529 +
   1.530 +
   1.531 +START_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0013
   1.532 +
   1.533 +//!@SYMTestCaseID		BASE-BSP-USB-VALIDATION-AUTOMATED-0013
   1.534 +//!@SYMAPI
   1.535 +//!                RDevUsbcClient::SetInterface(TInt, TUsbcInterfaceInfoBuf {ref}, TUint32);
   1.536 +//!@SYMAuthor			alavariega
   1.537 +//!@SYMCreationDate		21/04/2008
   1.538 +//!@SYMTestCaseDesc		USB Device - Set USB Interface
   1.539 +//!@SYMTestActions
   1.540 +//!                1.- Create an instance of usb
   1.541 +//!                2.- Load driver (driver = {Driver, driver}) 
   1.542 +//!                3.- Open channel
   1.543 +//!                4.- Read device capabilities( supportsConnect   = {capabilities,supportsConnect}; supportsSelfPowered  = {capabilities,supportsSelfPowered}; supportsRemoteWakeup = {capabilities,supportsRemoteWakeup} )
   1.544 +//!                5.  EndpointCaps 
   1.545 +//!                6.- GetDeviceDescriptorSize
   1.546 +//!                7.- GetDeviceDescriptor
   1.547 +//!                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})
   1.548 +//!                9.- Set type and direction of endpoint to 'Bulk' and 'In' ( mode = Bulk; direction = In )
   1.549 +//!                10.- Set type and direction of endpoint to 'Bulk' and 'Out' ( mode = Bulk; direction = Out )
   1.550 +//!                11.- Set the USB interface to BANDWIDTHPLUS2 ( bandwidthBufferingMask = 34 )
   1.551 +//!                12.- Delete usb instance
   1.552 +//!@SYMTestStatus		Verified
   1.553 +//!@SYMTestPriority		Normal
   1.554 +//!@SYMTestExpectedResults
   1.555 +//!                Set USB Interface with no errors.
   1.556 +//!@SYMTestType			CIT
   1.557 +
   1.558 +	START_TEST_BLOCK	300	t_usb	\base\usb\base-bsp-usb-validation-automated.ini
   1.559 +		CREATE_OBJECT	RDevUsbcClient		devucli
   1.560 +		COMMAND		devucli		NewL
   1.561 +		COMMAND		devucli		LoadLogicalDevice			BASE-BSP-Usb-0013-0001-LoadLogicalDevice_command02
   1.562 +		COMMAND		devucli		Open
   1.563 +		COMMAND		devucli		DeviceCaps			        BASE-BSP-Usb-0013-0001-DeviceCaps_command04
   1.564 +		COMMAND		devucli		EndpointCaps
   1.565 +		COMMAND		devucli		SetDeviceDescriptor			BASE-BSP-Usb-0013-0001-SetDeviceDescriptor_command06
   1.566 +		COMMAND		devucli		GetDeviceDescriptorSize     BASE-BSP-Usb-0013-0001-GetDeviceDescriptorSize_command07
   1.567 +		COMMAND		devucli		GetDeviceDescriptor         BASE-BSP-Usb-0013-0001-GetDeviceDescriptor_command08
   1.568 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0013-0001-SetEndPoint_command09
   1.569 +		COMMAND		devucli		SetEndPoint			        BASE-BSP-Usb-0013-0001-SetEndPoint_command10
   1.570 +		COMMAND		devucli		SetInterface			    BASE-BSP-Usb-0013-0001-SetInterface_command11
   1.571 +		COMMAND		devucli		~
   1.572 +	END_TEST_BLOCK
   1.573 +END_TESTCASE BASE-BSP-USB-VALIDATION-AUTOMATED-0013