1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/smassstorage/PREQ544_test_spec_v0.2.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,710 @@
1.4 +//
1.5 +// Copyright (c) 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 the License "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 +
1.20 +
1.21 +//==========================
1.22 +//Base Test - F32 Test Suite
1.23 +//==========================
1.24 +
1.25 + //! @SYMTestCaseID TestStartStopServer_Normal1
1.26 + //! @SYMTestType CT
1.27 +
1.28 + //! @SYMTestCaseDesc Test start/stop server in normal conditions
1.29 +
1.30 + //! @SYMFssID Base/emstore/2.2.1
1.31 +
1.32 + //! @SYMTestActions
1.33 + //! a. Load MS Server/File system,
1.34 + //! b. start it with correct SUID.
1.35 + //! c. Send GET_MAX_LUN request using TestLdd.
1.36 + //! d. Send TEST_UNIT_READY CBW for all LUN using TestLdd.
1.37 + //! e. Stop server.
1.38 + //! f. Check USB clients have been deregistered.
1.39 +
1.40 + //! @SYMTestExpectedResults The Load and Start request (step a and b) should complete successfully, Expected LUN should be
1.41 + //! returned.
1.42 + //! NOT_PRESENT CSW should be returned for every TEST_UNIT_READY request (step d).
1.43 + //! Stop request (step e) should be completed successfully.
1.44 +
1.45 + //! @SYMTestPriority Low
1.46 + //! @SYMTestStatus Defined
1.47 +
1.48 + //--------------------------------------
1.49 +
1.50 +
1.51 + //! @SYMTestCaseID TestStartStopServer_Abnormal1
1.52 + //! @SYMTestType CT
1.53 +
1.54 + //! @SYMTestCaseDesc Test start/stop server when MS FS doesn't loaded or when incorrect SUID provided
1.55 +
1.56 + //! @SYMFssID Base/emstore/5.1.1
1.57 +
1.58 +
1.59 + //! @SYMTestActions
1.60 + //! a. Do not load MS Server/File system. Try start it with correct SUID.
1.61 + //! b. Send GET_MAX_LUN request using TestLdd.
1.62 + //! c. Send TEST_UNIT_READY CBW for LUN 0 using TestLdd.
1.63 + //! d. Load Server/FS.
1.64 + //! e. Start it using wrong SUID, and then
1.65 + //! f. start it using correct SUID.
1.66 + //! g. Try start in again.
1.67 + //! h. Stop server.
1.68 + //! i. Try Stop it again.
1.69 +
1.70 + //! @SYMTestExpectedResults The start request (step a) should fail.
1.71 + //! The GET_MAX_LUN (step b) and TEST_UNIT_READY requests (step c) should fail
1.72 + //! First (step a), second (step e) and fours (step g) start requests should fail.
1.73 + //! Third Start request should succeed.
1.74 + //! First stop request (step h) should succeed.
1.75 + //! Second Stop request (step i) should fail.
1.76 +
1.77 + //! @SYMTestPriority Low
1.78 + //! @SYMTestStatus Defined
1.79 +
1.80 + //---------------------------------------------
1.81 +
1.82 + //! @SYMTestCaseID Drive_Registering_1
1.83 + //! @SYMTestType CT
1.84 +
1.85 + //! @SYMTestCaseDesc Test registering MS FS
1.86 +
1.87 + //! @SYMFssID Base/emstore/3.1.1
1.88 + //! @SYMFssID Base/emstore/3.2.1
1.89 + //! @SYMFssID Base/emstore/4.1.1
1.90 +
1.91 + //! @SYMTestActions
1.92 + //! a. Load MS Server/File system and start it.
1.93 + //! b. Mount media as MS FS. Drive letter passed as a parameter
1.94 + //! c. Format media using FAT FS.
1.95 + //! d. Store boot sector for comparison.
1.96 + //! e. Dismount media.
1.97 + //! f. Mount MS FS for this media.
1.98 + //! g. Read boot sector passing SCSI command through TestLdd,
1.99 + //! h. compare this boot sector with saved.
1.100 + //! i. Try to mount and read the removable media using file server.
1.101 +
1.102 + //! @SYMTestExpectedResults
1.103 + //! This test should be run for different drives.
1.104 + //! Non removable media should not be mounted (step b) and test expected to fail.
1.105 + //! For removable media - Steps from c to g should completed successfully
1.106 + //! Read boot sector should be the same as saved.
1.107 + //! File Server's read attempt (step i) should fail when MS FS mounted.
1.108 +
1.109 + //! @SYMTestPriority Low
1.110 + //! @SYMTestStatus Defined
1.111 + //---------------------------------------------
1.112 + //! @SYMTestCaseID Drive_UnRegistering_1
1.113 + //! @SYMTestType CT
1.114 +
1.115 + //! @SYMTestCaseDesc Test un-registering MS FS
1.116 +
1.117 + //! @SYMFssID Base/emstore/3.2.1
1.118 + //! @SYMFssID Base/emstore/5.1.2
1.119 +
1.120 + //! @SYMTestActions
1.121 + //! a. Try to un-registering already registering MS FS while SCSI is accessing the drive.
1.122 + //! b. Wait for access completion.
1.123 + //! c. Un-register already registered MS FS.
1.124 + //! d. Try to read media using file server.
1.125 + //! e. Remount FAT FS.
1.126 + //! f. Issue UnitReady and Read SCSI command through test LDD.
1.127 + //! g. Try to read media using file server again.
1.128 + //! h. Un-mount FAT FS and mount MS FS
1.129 + //!
1.130 + //!
1.131 +
1.132 + //! @SYMTestExpectedResults
1.133 + //! Un-registering request (step a) should return an appropriate error code when media is in use.
1.134 + //! Next un-registering (step c) should be successful.
1.135 + //! attempt (step d) should fail.
1.136 + //! SCSI commands (step f) should report error when MS FS is un-mounted.
1.137 + //! File server read request (step g) should be successful when FAT FS is mounted
1.138 + //!
1.139 + //! @SYMTestPriority Low
1.140 + //! @SYMTestStatus Defined
1.141 +
1.142 + //---------------------------------------------
1.143 + //! @SYMTestCaseID Read_boot_sector
1.144 + //! @SYMTestType CT
1.145 +
1.146 + //! @SYMTestCaseDesc Test if NAND media does not expose its Master Boot Record (MBR)
1.147 +
1.148 + //! @SYMFssID Base/emstore/2.1.2
1.149 +
1.150 + //! @SYMTestActions Read sector 0 using Test LDD. Check if its regular Boot Sector or MBR
1.151 +
1.152 + //! @SYMTestExpectedResults Sector 0 should be regular Boot Sector.
1.153 +
1.154 + //! @SYMTestPriority Low
1.155 + //! @SYMTestStatus Defined
1.156 +
1.157 + //---------------------------------------------
1.158 + //! @SYMTestCaseID Bulk_only_error_conditions_1
1.159 + //! @SYMTestType CT
1.160 +
1.161 + //! @SYMTestCaseDesc Test Bulk_only_transport under the bad condition
1.162 +
1.163 + //! @SYMFssID Base/emstore/1.1.1
1.164 +
1.165 + //! @SYMTestActions
1.166 + //! a. Send GET_MAX_LUN command to MS using Test LDD, check the response.
1.167 + //! b. Send unsupported command. Check the responce.
1.168 + //! c. Clear the error conditions.
1.169 + //! d. Send bad CBW.
1.170 + //! e. Send normal CBW.
1.171 + //! f. Send Reset command to clear.
1.172 + //! g. Send normal CBW (INQUIRY) again.
1.173 +
1.174 + //! @SYMTestExpectedResults GET_MAX_LUN (step a) should return expected data.
1.175 + //! After unsupported command (step b) STALL PID should be returned at the next Data stage transaction
1.176 + //! After bad CBW (step d) transport should stall and not response for good CBW (step e). Check no CSW is returned even if normal CBW passed.
1.177 + //! The last normal CBW (step g) should cause return of CSW with zero's in inquiry packet response.
1.178 +
1.179 + //! @SYMTestPriority Low
1.180 + //! @SYMTestStatus Defined
1.181 +
1.182 + //---------------------------------------------
1.183 + //! @SYMTestCaseID Bulk_only_13_cases
1.184 + //! @SYMTestType CT
1.185 +
1.186 + //! @SYMTestCaseDesc Test Bulk_only_transport for 13 cases (section 6.7 from
1.187 + //! "Universal Serial Bus. Mass Storage Class Bulk-Only Transport" Revision 1.0)
1.188 +
1.189 + //! @SYMFssID Base/emstore/1.1.1
1.190 + //! @SYMFssID Base/emstore/1.2.1
1.191 +
1.192 + //! @SYMTestActions Exercise Balk only transport for all 13 cases.
1.193 + //! - No data to send or receive (P20 case(1))
1.194 + //! Normal case - Use TEST_UNIT_READY and check no data returned and bCswStatus = 0 or 1
1.195 + //!
1.196 + //! - Host expects no data, device intends to send/receive data (P20 Case(2) or (3))
1.197 + //! Sent READ command (1 sector?) with KCbwDataTransferLength == 0 - Case 2
1.198 + //! Sent WRITE command (1 sector?) with KCbwDataTransferLength == 0 - Case 3
1.199 + //! - In above cases, transport should issue PHASE_ERROR (bCswStatus = 2)
1.200 + //!
1.201 + //! - Host expects to receive data (case 6)
1.202 + //! Send READ command, 1 sector, KCbwDataTransferLength = 512 bytes - Should return 512bytes with valid CSW
1.203 + //!
1.204 + //! - Device intends to send less data than expected from host (case 4 and 5)
1.205 + //! Send READ command, 1 sector, KCbwDataTransferLength = 1024 bytes
1.206 + //! - Above should return 1024bytes (KCbwDataTransferLength) with 512 byte padding, 512 bytes residue and valid CSW
1.207 + //!
1.208 + //! - Device intends to send more data than expected by host (case 7 and 8)
1.209 + //! Send READ command, 2 sector, KCbwDataTransferLength = 512 bytes
1.210 + //! - Above should return 512bytes (KCbwDataTransferLength), return bCswStatus = 2
1.211 + //!
1.212 + //! - Host expects to send data to the device
1.213 + //! - Device intends to read less than the host sends (case 9,11,12)
1.214 + //! Send WRITE command (1 sector) with KCbwDataTransferLength == 1024
1.215 + //! - Device reads all data (1024) discarding the last 512 bytes, returns status = 0, residue = 512
1.216 + //!
1.217 + //! - Device intends to receive more data than sent by the host (case 10, 13)
1.218 + //! Send WRITE command (2 sector) with KCbwDataTransferLength == 512
1.219 + //! - Device should read all data, return bCswStatus = 2
1.220 + //!
1.221 + //! @SYMTestExpectedResults Pass
1.222 +
1.223 + //! @SYMTestPriority Low
1.224 + //! @SYMTestStatus Defined
1.225 +
1.226 + //---------------------------------------------
1.227 +
1.228 + //! @SYMTestCaseID Scsi_Inquiry_normal
1.229 + //! @SYMTestType CT
1.230 +
1.231 + //! @SYMTestCaseDesc Exercise INQUIRY command in normal conditions
1.232 +
1.233 + //! @SYMFssID Base/emstore/1.2.3
1.234 + //! @SYMFssID Base/emstore/1.2.3.1
1.235 +
1.236 + //! @SYMTestActions Issue INQUIRY command (CMDDT, EVPD and PAGE OR OPERATION CODE =0 ) when media not present.
1.237 + //! Check the response. Then mount media and issue INQUIRY command again. Check the response.
1.238 +
1.239 + //! @SYMTestExpectedResults For both INQUIRY command IDevice type ==0, RMB==1, Version==0, Response Data Format == 0x02
1.240 + //! Vendor ID/Product ID/Revision Level should be the same as passed in during Server Start.
1.241 + //! For first INQUIRY command Qualifier == 1 (the physical device is not currently connected to this logical unit),
1.242 + //! for next one Qualifier == 0.
1.243 +
1.244 +
1.245 + //! @SYMTestPriority Low
1.246 + //! @SYMTestStatus Defined
1.247 +
1.248 + //---------------------------------------------
1.249 + //! @SYMTestCaseID Scsi_Inquiry_error
1.250 + //! @SYMTestType CT
1.251 +
1.252 + //! @SYMTestCaseDesc Exercise INQUIRY command in error conditions
1.253 +
1.254 + //! @SYMFssID Base/emstore/1.2.3
1.255 +
1.256 + //! @SYMTestActions Issue INQUIRY command with CMDDT =1, Check the sense code.
1.257 + //! Issue INQUIRY command with CMDDT =0 and EVPD=0 when PAGE OR OPERATION CODE field is not zero, Check the sense code.
1.258 +
1.259 +
1.260 + //! @SYMTestExpectedResults The SCSI protocol shall return CHECK CONDITION status with the sense
1.261 + //! key set to ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
1.262 +
1.263 + //! @SYMTestPriority Low
1.264 + //! @SYMTestStatus Defined
1.265 +
1.266 + //---------------------------------------------
1.267 + //! @SYMTestCaseID Scsi_Request_Sense
1.268 + //! @SYMTestType CT
1.269 +
1.270 + //! @SYMTestCaseDesc Exercise REQUEST_SENSE command
1.271 +
1.272 + //! @SYMFssID Base/emstore/1.2.3
1.273 +
1.274 + //! @SYMTestActions - Issue REQUEST_SENSE before any other command - Should return OK sense code
1.275 + //! - Issue TEST_UNIT_READY for unregistered drive
1.276 + //! Check CSW returns status = 0x01
1.277 + //! Issue REQUEST_SENSE - should return NOT_READY sense code
1.278 + //! Issue REQUEST_SENSE - should return OK sense code
1.279 + //!
1.280 + //! - Issue TEST_UNIT_READY for registered drive.
1.281 + //! Check CSW returns status = 0x00
1.282 + //! Issue REQUEST_SENSE - should return OK sense code
1.283 + //!
1.284 + //! - Issue TEST_UNIT_READY for unregistered drive.
1.285 + //! Check CSW returns status = 0x01
1.286 + //! Issue TEST_UNIT_READY for registered drive.
1.287 + //! Check CSW returns status = 0x00
1.288 + //! Issue REQUEST_SENSE - should return OK sense code
1.289 +
1.290 + //! @SYMTestExpectedResults Described above
1.291 +
1.292 + //! @SYMTestPriority Low
1.293 + //! @SYMTestStatus Defined
1.294 +
1.295 + //---------------------------------------------
1.296 + //! @SYMTestCaseID Scsi_Mode_Sense
1.297 + //! @SYMTestType CT
1.298 +
1.299 + //! @SYMTestCaseDesc Exercise MODE_SENSE command
1.300 +
1.301 + //! @SYMFssID Base/emstore/1.2.3
1.302 +
1.303 + //! @SYMTestActions
1.304 + //! Register drive.
1.305 + //! Issue request for 3Fh code page for write protected and not write protected media
1.306 +
1.307 + //! dev notes: latest implementation of scsi protocol supports only (SPC-2 p.100):
1.308 + //! - PC field
1.309 + //! - 00b | supported
1.310 + //! - 10b | in the same
1.311 + //! - 11b | manner
1.312 + //! - 01b - NOT supported
1.313 + //! - PAGE CODE (p. 189)
1.314 + //! - 3Fh code ONLY
1.315 + //!
1.316 +
1.317 + //! @SYMTestExpectedResults
1.318 + //! OUTPUT:
1.319 + //! - device-specific parameter, field WP only (table 147, p.189 and table 101, p.107 in SBC-2)
1.320 + //! NOT supported:
1.321 + //! - block descriptors are not supported (table 146)
1.322 + //! - pages
1.323 +
1.324 + //! @SYMTestPriority Low
1.325 + //! @SYMTestStatus Defined
1.326 +
1.327 + //---------------------------------------------
1.328 + //! @SYMTestCaseID Scsi_Bad_Lun
1.329 + //! @SYMTestType CT
1.330 +
1.331 + //! @SYMTestCaseDesc Test SCSI commands behavior for when unsupported LUN provided
1.332 +
1.333 + //! @SYMFssID Base/emstore/1.2.3
1.334 +
1.335 + //! @SYMTestActions Issue all supported SCSI command with unsupported LUN.
1.336 +
1.337 + //! @SYMTestExpectedResults All commands should return CHECK CONDITION status
1.338 + //! with the sense key set to ILLEGAL REQUEST / LUN NOT SUPPORTED.
1.339 +
1.340 + //! @SYMTestPriority Low
1.341 + //! @SYMTestStatus Defined
1.342 +
1.343 +
1.344 + //---------------------------------------------
1.345 + //! @SYMTestCaseID Scsi_media_change
1.346 + //! @SYMTestType CT
1.347 +
1.348 + //! @SYMTestCaseDesc Test SCSI commands behavior when media changed
1.349 +
1.350 + //! @SYMFssID Base/emstore/1.2.3
1.351 +
1.352 + //! @SYMTestActions Mount media. Issue INQUIRY command then simulate media change. Issue TEST UNIT READY.
1.353 + //! Repeat with other commands (except REQUEST SENSE )
1.354 +
1.355 + //! @SYMTestExpectedResults All commands should return CHECK CONDITION status with the sense key set to UNIT ATTENTION
1.356 +
1.357 + //! @SYMTestPriority Low
1.358 + //! @SYMTestStatus Defined
1.359 +
1.360 + //---------------------------------------------
1.361 + //! @SYMTestCaseID Scsi_Test_Unit_Ready
1.362 + //! @SYMTestType CT
1.363 +
1.364 + //! @SYMTestCaseDesc Test TEST UNIT READY command
1.365 +
1.366 + //! @SYMFssID Base/emstore/1.2.3
1.367 +
1.368 + //! @SYMTestActions Don't register media. Issue TEST UNIT READY command. Check sense code.
1.369 + //! Register media, repeat TEST UNIT READY command.
1.370 +
1.371 + //! @SYMTestExpectedResults First commands should return CHECK CONDITION status with the sense key set to NOT READY.
1.372 + //! second command should return GOOD status with no additional sense information
1.373 +
1.374 + //! @SYMTestPriority Low
1.375 + //! @SYMTestStatus Defined
1.376 +
1.377 + //---------------------------------------------
1.378 + //! @SYMTestCaseID Scsi_Read_Capacity
1.379 + //! @SYMTestType CT
1.380 +
1.381 + //! @SYMTestCaseDesc Test READ_CAPACITY command
1.382 +
1.383 + //! @SYMFssID Base/emstore/1.2.3
1.384 +
1.385 + //! @SYMTestActions Note media capacity before registering drive. Register drive and issue READ_CAPACITY command
1.386 + //! NOTE: LOGICAL BLOCK ADDRESS and PMI have to be set to 00h.
1.387 +
1.388 + //! @SYMTestExpectedResults Data returned by READ_CAPACITY command should match with previously stored data.
1.389 +
1.390 + //! @SYMTestPriority Low
1.391 + //! @SYMTestStatus Defined
1.392 +
1.393 + //---------------------------------------------
1.394 + //! @SYMTestCaseID Scsi_Start_Stop_Unit
1.395 + //! @SYMTestType CT
1.396 +
1.397 + //! @SYMTestCaseDesc Test START_STOP_UNIT command
1.398 +
1.399 + //! @SYMFssID Base/emstore/1.2.3
1.400 +
1.401 + //! @SYMTestActions Issue START_STOP_UNIT command with START bit =1 then =0 when media is unregistered. Check sense code.
1.402 + //! Register drive. Issue START_STOP_UNIT command with START bit =1 then =0.
1.403 + //! NOTE: not supported fields: IMMED; POWER CONDITIONS; LOEJ
1.404 + //! the only supported field is: START
1.405 +
1.406 + //! @SYMTestExpectedResults First to request should return CHECK CONDITION status with the sense key set to NOT READY.
1.407 + //! Last to requests should return GOOD status.
1.408 +
1.409 + //! @SYMTestPriority Low
1.410 + //! @SYMTestStatus Defined
1.411 +
1.412 + //---------------------------------------------
1.413 + //! @SYMTestCaseID Scsi_Prevent_Allow_Media_Removal
1.414 + //! @SYMTestType CT
1.415 +
1.416 + //! @SYMTestCaseDesc Test PREVENT/ALLOW MEDIUM REMOVAL command
1.417 +
1.418 + //! @SYMFssID Base/emstore/1.2.3
1.419 +
1.420 + //! @SYMTestActions Same pattern as it define at Scsi_Start_Stop_Unit
1.421 + //! NOTE: supported PREVENT field only.
1.422 +
1.423 + //! @SYMTestExpectedResults
1.424 +
1.425 + //! @SYMTestPriority Low
1.426 + //! @SYMTestStatus Defined
1.427 +
1.428 + //---------------------------------------------
1.429 + //! @SYMTestCaseID Scsi_Read_Write_Verify
1.430 + //! @SYMTestType CT
1.431 +
1.432 + //! @SYMTestCaseDesc Test READ, WRITE and VERIFY commands
1.433 +
1.434 + //! @SYMFssID Base/emstore/1.2.3
1.435 +
1.436 + //! @SYMTestActions Register drive. Perform Write/Read/Verify tests of differing lengths and offsets.
1.437 + //! Check boundary conditions - Read/Write off end of media (start <> length, end <> length)
1.438 + //! Perform Write/Read/Verify tests with write PROTECT media
1.439 + //! NOTE: only true or false is supported for PROTECT flag.
1.440 +
1.441 + //! @SYMTestExpectedResults All operation should be completed successfully.
1.442 + //! end < length condition should result in ILLEGAL REQUEST / LBA OUT OF RANGE sense code.
1.443 +
1.444 + //! @SYMTestPriority Low
1.445 + //! @SYMTestStatus Defined
1.446 +
1.447 + //---------------------------------------------
1.448 + //! @SYMTestCaseID Scsi_unsupported_commands
1.449 + //! @SYMTestType CT
1.450 +
1.451 + //! @SYMTestCaseDesc Test system response for unsupported commands
1.452 +
1.453 + //! @SYMFssID Base/emstore/1.2.3
1.454 +
1.455 + //! @SYMTestActions Issue several unsupported commands, Check the sense code.
1.456 +
1.457 + //! @SYMTestExpectedResults ILLEGAL REQUEST / INVALID COMMAND CODE sense code should be returned.
1.458 +
1.459 + //! @SYMTestPriority Low
1.460 + //! @SYMTestStatus Defined
1.461 +
1.462 + //---------------------------------------------
1.463 + //! @SYMTestCaseID Notification_1
1.464 + //! @SYMTestType CT
1.465 +
1.466 + //! @SYMTestCaseDesc Test Publish and Subscribe events.
1.467 +
1.468 +
1.469 + //! @SYMFssID Base/emstore/4.2.1
1.470 + //! @SYMFssID Base/emstore/5.1.3
1.471 + //! @SYMFssID Base/emstore/6.1.2.2
1.472 +
1.473 + //! @SYMTestActions Initiate different events (using Test LDD and Test server extension) to put USB mass storage
1.474 + //! sequentially to all 9 states and test if user app receive proper notification.
1.475 +
1.476 + //! @SYMTestExpectedResults All new state should trigger corresponded publish event.
1.477 +
1.478 + //! @SYMTestPriority Low
1.479 + //! @SYMTestStatus Defined
1.480 +
1.481 +
1.482 + //---------------------------------------------
1.483 + //! @SYMTestCaseID Notification_2
1.484 + //! @SYMTestType CT
1.485 +
1.486 + //! @SYMTestCaseDesc Test Data Transferred notification
1.487 +
1.488 + //! @SYMFssID Base/emstore/4.3.1
1.489 +
1.490 + //! @SYMTestActions Register media. Issue Read and Write commands using test LDD. Check notification about data transferred.
1.491 +
1.492 + //! @SYMTestExpectedResults Amount of data read and writen should match to 1K within numbers provided by notification service.
1.493 +
1.494 + //! @SYMTestPriority Low
1.495 + //! @SYMTestStatus Defined
1.496 +
1.497 + //---------------------------------------------
1.498 + //! @SYMTestCaseID Password_1
1.499 + //! @SYMTestType CT
1.500 +
1.501 + //! @SYMTestCaseDesc
1.502 +
1.503 + //! @SYMFssID Base/emstore/6.1.1
1.504 + //! @SYMFssID Base/emstore/6.1.2.1
1.505 + //! @SYMFssID Base/emstore/6.1.2.2
1.506 +
1.507 + //! @SYMTestActions Insert unlocked card. Lock and store password. Force media change (using TBusLocalDrive::ForceRemount or RFs)
1.508 + //! Load MSFSYS. Card should be automatically unlocked.
1.509 + //! Un-mount MSFSYS. Unlock and Clear Password. Lock and don't store password.
1.510 + //! Force media change (using TBusLocalDrive::ForceRemount or RFs). Load MSFSYS.
1.511 + //! User should be notified. Test App gets Locked P&S event
1.512 + //! Try to read/write (using Test LDD) registered, but not password protected media. Read/Write should succeed
1.513 + //! Unlock and store. Force media change (using TBusLocalDrive::ForceRemount or RFs).
1.514 + //! Next access should be unlocked
1.515 +
1.516 + //! @SYMTestExpectedResults Pass
1.517 +
1.518 + //! @SYMTestPriority Low
1.519 + //! @SYMTestStatus Defined
1.520 +
1.521 +
1.522 +
1.523 + //====================================================
1.524 + // Integration tests (required host PC)
1.525 + //====================================================
1.526 + //! @SYMTestCaseID Media_removal
1.527 + //! @SYMTestType IT
1.528 +
1.529 + //! @SYMTestCaseDesc Test media removal. (Manual integration test)
1.530 +
1.531 + //! @SYMFssID Base/emstore/4.2.1
1.532 +
1.533 + //! @SYMTestActions Initiate writing of big file (start Perl Script on PC) and
1.534 + //! remove card during write.
1.535 + //! Reinsert card after 1-2 seconds.
1.536 + //! Wait for writing completion (indicated by script prompt).
1.537 + //! Stop USB mass storage device using standard Windows tool.
1.538 + //! Unplug/plug-in USB cable to reset windows cache.
1.539 + //! Read written file and compare (perl script)
1.540 +
1.541 + //! @SYMTestExpectedResults Read data should match with written.
1.542 +
1.543 + //! @SYMTestPriority Low
1.544 + //! @SYMTestStatus Defined
1.545 +
1.546 + //---------------------------------------------
1.547 + //! @SYMTestCaseID Non_FAT_media
1.548 + //! @SYMTestType IT
1.549 +
1.550 + //! @SYMTestCaseDesc Test reaction for non FAT media. (Manual integration test)
1.551 +
1.552 + //! @SYMFssID Base/emstore/2.1.1
1.553 +
1.554 + //! @SYMTestActions
1.555 + //! a Insert MMC card formatted as FAT
1.556 + //! b Start USB MS application
1.557 + //! c Check the displayed drive list
1.558 + //! d Double click on removable drive which is MMC card.
1.559 + //! e Note if drive is accessible
1.560 + //! f Stop USB MS application
1.561 + //! g Insert FAT formatted MMC card
1.562 + //! h repeat steps from b to f
1.563 + //! i reboot the board
1.564 +
1.565 + //! @SYMTestExpectedResults The drive correspondent to MMC card should be accessible when FAT formatted card is inserted
1.566 + //! and inaccessible when MMC card formatted as NTFS
1.567 +
1.568 +
1.569 + //! @SYMTestPriority Low
1.570 + //! @SYMTestStatus Defined
1.571 +
1.572 +
1.573 + //---------------------------------------------
1.574 + //! @SYMTestCaseID Cable_plug_unplug
1.575 + //! @SYMTestType IT
1.576 +
1.577 + //! @SYMTestCaseDesc Test system behavior on USB cable plug-in/plug-out (automated integration test)
1.578 +
1.579 + //! @SYMFssID Base/emstore/5.1.1
1.580 + //! @SYMFssID Base/emstore/5.1.2
1.581 +
1.582 + //! @SYMTestActions Start USB MS using USB manager. Simulate cable removal.
1.583 + //! USB Man notifies USB App of cable removal. USB App should dismount MSFSYS.
1.584 + //! USB App should get Disconnected state from P&S. USB App should remount FAT.
1.585 + //! USB App commands MS Class Controller to stop the server/transport.
1.586 + //! Repeat in backward order.
1.587 +
1.588 + //! @SYMTestExpectedResults Pass.
1.589 +
1.590 + //! @SYMTestPriority Low
1.591 + //! @SYMTestStatus Defined
1.592 +
1.593 +
1.594 + //---------------------------------------------
1.595 + //! @SYMTestCaseID Interoperability_1
1.596 + //! @SYMTestType IT
1.597 +
1.598 + //! @SYMTestCaseDesc Test Mass Storage functionality on different platforms (Windows 2000/XP/ME, MacOS) (Manual test)
1.599 +
1.600 + //! @SYMFssID Base/emstore/1.1.1
1.601 + //! @SYMFssID Base/emstore/3.1.1
1.602 +
1.603 + //! @SYMTestActions Connect device to a host PC. Enable MS. Start perl script on PC.
1.604 + //! This script formats drive and creates several folders with levels of nested folders and writes set of files to them.
1.605 + //! File sizes varied from several kilobytes to several megabytes.
1.606 + //! The number of folders, nest depth, number of files placed in each folder and there sizes should be configurable.
1.607 + //! Then script prompt ask to unplug/plug USB cable (to flash OS read cache) and then read all files back and compare.
1.608 +
1.609 + //! @SYMTestExpectedResults Read data from files should match with written.
1.610 + //---------------------------------------------
1.611 + //! @SYMTestCaseID Interoperability_2
1.612 + //! @SYMTestType IT
1.613 +
1.614 + //! @SYMTestCaseDesc Test Mass Storage functionality on different platforms (Windows 2000/XP/ME, MacOS) (Manual test)
1.615 +
1.616 + //! @SYMFssID Base/emstore/1.1.1
1.617 + //! @SYMFssID Base/emstore/3.1.1
1.618 +
1.619 + //! @SYMTestActions Connect device to a host PC. Enable MS. Start perl script on PC.
1.620 + //! This script formats drive and queries size of it.
1.621 + //! Than script create file with size close to drive size and check free space.
1.622 + //! Then script prompt ask to unplug/plug USB cable (to flash OS read cache) and then read the file back and compare.
1.623 +
1.624 + //! @SYMTestExpectedResults File creation should succeed. Read data from file should match with written.
1.625 + //! Sum of file size and free space should be close to drive size.
1.626 +
1.627 + //---------------------------------------------
1.628 + //! @SYMTestCaseID Performance_Ready_Time
1.629 + //! @SYMTestType IT
1.630 +
1.631 + //! @SYMTestCaseDesc Test readiness time. (Manual test)
1.632 +
1.633 + //! @SYMFssID Base/emstore/1.1.1
1.634 +
1.635 + //! @SYMTestActions Open "My computer folder". Enable MS on device. Plug in USB cable.
1.636 + //! Note delay between cable insertion and new drive icon appearance using watch stop.
1.637 + //! Unplug cable then repeat test.
1.638 +
1.639 + //! @SYMTestExpectedResults Delay after second cable plug-in should be not bigger then 10 seconds
1.640 + //! However firs delay can be longer if this device was not used with this PC before.
1.641 + //! Thus result of first step can be ignored.
1.642 +
1.643 + //! @SYMTestPriority Low
1.644 + //! @SYMTestStatus Defined
1.645 +
1.646 + //! @SYMTestPriority Low
1.647 + //! @SYMTestStatus Defined
1.648 +
1.649 +
1.650 +
1.651 + //---------------------------------------------
1.652 + //! @SYMTestCaseID Performance_1
1.653 + //! @SYMTestType IT
1.654 +
1.655 + //! @SYMTestCaseDesc Measure file read/write performance (manual)
1.656 + //! @SYMFssID Base/emstore/1.1.1
1.657 +
1.658 + //! @SYMTestActions Use PassMark Performace test v5.0 (http://www.passmark.com/)
1.659 + //! Create new thread under advanced disk test with parameters:
1.660 + //! File size - 5Mb, Block Size - 16384, Access Method - Standart Win32 API (un-cached),
1.661 + //! Request Mode - Synchronous, 100% Write, 100% Sequential
1.662 + //! Run test, note Mb/sec numbers.
1.663 + //! Change to 100% Read, Run test, note Mb/sec numbers.
1.664 + //! Change to 50% Read/Write, 50% Sequential/Random
1.665 + //! Change to 100% Read, Run test, note Mb/sec numbers.
1.666 +
1.667 + //! @SYMTestExpectedResults Number for Lace card reader with 16MB SanDisc MMC (USB 1.1) - 0.12/0.14/0.14 Mb/sec
1.668 + //! SunDisk Cruiser mini 256MB flash drive (under USB 1.1) - 0.7/0.78/0.42 Mb/sec
1.669 +
1.670 + //! @SYMTestPriority Low
1.671 + //! @SYMTestStatus Defined
1.672 +
1.673 +//---------------------------------------------
1.674 + //! @SYMTestCaseID Performance_2
1.675 + //! @SYMTestType IT
1.676 +
1.677 + //! @SYMTestCaseDesc Test if phone can receive incoming call when acting as a mass storage device. (Manual integration test)
1.678 +
1.679 + //! @SYMTestActions Enable MS, connect device (H2 board) to PC. Start script on PC side which write/read files. Place a call from another GSM phone to the device. Hang off, then hang on.
1.680 +
1.681 + //! @SYMTestExpectedResults Call should be received and proceeded properly.
1.682 +
1.683 + //! @SYMTestPriority Low
1.684 + //! @SYMTestStatus Defined
1.685 +
1.686 +
1.687 +
1.688 + //---------------------------------------------
1.689 + //! @SYMTestCaseID Performance_3
1.690 + //! @SYMTestType IT
1.691 +
1.692 + //! @SYMTestCaseDesc Test if phone can receive incoming SMS when acting as a mass storage device. (Manual integration test)
1.693 + //! @SYMFssID Base/emstore/1.1.1
1.694 +
1.695 + //! @SYMTestActions Enable MS, connect device (H2 board) to PC. Start script on PC side which write/read files. Send a SMS message from another GSM phone to the device
1.696 + //! @SYMTestExpectedResults SMS should be received properly.
1.697 +
1.698 + //! @SYMTestPriority Low
1.699 + //! @SYMTestStatus Defined
1.700 +
1.701 +//---------------------------------------------
1.702 + //! @SYMTestCaseID Performance_4
1.703 + //! @SYMTestType IT
1.704 +
1.705 + //! @SYMTestCaseDesc Test if it possible to browse Address Book when device acting as a mass storage. (Manual integration test)
1.706 + //! @SYMFssID Base/emstore/1.1.1
1.707 +
1.708 + //! @SYMTestActions Enable MS, connect device (H2 board) to PC. Start script on PC side which write/read files.
1.709 + //! Open Address Book application and try to navigate through records.
1.710 + //! @SYMTestExpectedResults Address Book application should work properly.
1.711 +
1.712 + //! @SYMTestPriority Low
1.713 + //! @SYMTestStatus Defined