os/kernelhwsrv/kerneltest/f32test/smassstorage/PREQ544_test_spec_v0.2.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description:
sl@0
    15
//
sl@0
    16
sl@0
    17
sl@0
    18
//==========================
sl@0
    19
//Base Test - F32 Test Suite
sl@0
    20
//==========================
sl@0
    21
sl@0
    22
 //! @SYMTestCaseID TestStartStopServer_Normal1
sl@0
    23
 //! @SYMTestType CT
sl@0
    24
sl@0
    25
 //! @SYMTestCaseDesc Test start/stop server in normal conditions
sl@0
    26
sl@0
    27
 //! @SYMFssID Base/emstore/2.2.1
sl@0
    28
sl@0
    29
 //! @SYMTestActions 
sl@0
    30
 //!	a. Load MS Server/File system, 
sl@0
    31
 //!	b. start it with correct SUID. 
sl@0
    32
 //!	c. Send GET_MAX_LUN request using TestLdd. 
sl@0
    33
 //! 	d. Send TEST_UNIT_READY CBW for all LUN using TestLdd. 
sl@0
    34
 //!	e. Stop server. 
sl@0
    35
 //!	f. Check USB clients have been deregistered. 
sl@0
    36
sl@0
    37
 //! @SYMTestExpectedResults The Load and Start request (step a and b) should complete successfully, Expected LUN should be
sl@0
    38
 //!	returned. 
sl@0
    39
 //!	NOT_PRESENT CSW should be returned for every TEST_UNIT_READY request (step d). 
sl@0
    40
 //!	Stop request (step e) should be completed successfully.
sl@0
    41
sl@0
    42
 //! @SYMTestPriority Low
sl@0
    43
 //! @SYMTestStatus Defined
sl@0
    44
sl@0
    45
 //--------------------------------------
sl@0
    46
sl@0
    47
sl@0
    48
 //! @SYMTestCaseID TestStartStopServer_Abnormal1
sl@0
    49
 //! @SYMTestType CT
sl@0
    50
sl@0
    51
 //! @SYMTestCaseDesc Test start/stop server when MS FS doesn't loaded or when incorrect SUID provided
sl@0
    52
sl@0
    53
 //! @SYMFssID Base/emstore/5.1.1
sl@0
    54
 
sl@0
    55
sl@0
    56
 //! @SYMTestActions 
sl@0
    57
 //!	a. Do not load MS Server/File system. Try start it with correct SUID. 
sl@0
    58
 //! 	b. Send GET_MAX_LUN request using TestLdd. 
sl@0
    59
 //!	c. Send TEST_UNIT_READY CBW for LUN 0 using TestLdd. 
sl@0
    60
 //! 	d. Load Server/FS. 
sl@0
    61
 //!	e. Start it using wrong SUID, and then 
sl@0
    62
 //!	f. start it using correct SUID. 
sl@0
    63
 //!	g. Try start in again. 
sl@0
    64
 //! 	h. Stop server. 
sl@0
    65
 //!	i. Try Stop it again.  
sl@0
    66
sl@0
    67
 //! @SYMTestExpectedResults The start request (step a) should fail. 
sl@0
    68
 //!	The GET_MAX_LUN (step b) and TEST_UNIT_READY requests (step c) should fail
sl@0
    69
 //! 	First (step a), second  (step e) and fours (step g) start requests should fail. 
sl@0
    70
 //!	Third  Start request should succeed.
sl@0
    71
 //!	First stop request (step h) should succeed.
sl@0
    72
 //!	Second Stop request (step i) should fail.
sl@0
    73
sl@0
    74
 //! @SYMTestPriority Low
sl@0
    75
 //! @SYMTestStatus Defined
sl@0
    76
sl@0
    77
 //---------------------------------------------
sl@0
    78
sl@0
    79
 //! @SYMTestCaseID Drive_Registering_1
sl@0
    80
 //! @SYMTestType CT
sl@0
    81
sl@0
    82
 //! @SYMTestCaseDesc Test registering MS FS
sl@0
    83
sl@0
    84
 //! @SYMFssID Base/emstore/3.1.1
sl@0
    85
 //! @SYMFssID Base/emstore/3.2.1
sl@0
    86
 //! @SYMFssID Base/emstore/4.1.1
sl@0
    87
sl@0
    88
 //! @SYMTestActions 
sl@0
    89
 //!	a. Load MS Server/File system and start it. 
sl@0
    90
 //!	b. Mount media as MS FS. Drive letter passed as a parameter
sl@0
    91
 //! 	c. Format media using FAT FS. 
sl@0
    92
 //!	d. Store boot sector for comparison. 
sl@0
    93
 //!	e. Dismount media. 
sl@0
    94
 //!	f. Mount MS FS for this  media.
sl@0
    95
 //! 	g. Read boot sector passing SCSI command through TestLdd, 
sl@0
    96
 //!	h. compare this boot sector with saved.
sl@0
    97
 //! 	i. Try to mount and read the removable media using file server.
sl@0
    98
sl@0
    99
 //! @SYMTestExpectedResults 
sl@0
   100
 //!	This test should be run for different drives.
sl@0
   101
 //!	Non removable media should not be mounted (step b) and test expected to fail.
sl@0
   102
 //!	For removable media - 	Steps from c to g should completed successfully
sl@0
   103
 //! 	Read boot sector should be the same as saved. 
sl@0
   104
 //!	File Server's read attempt (step i) should fail when MS FS mounted.
sl@0
   105
sl@0
   106
 //! @SYMTestPriority Low
sl@0
   107
 //! @SYMTestStatus Defined
sl@0
   108
 //---------------------------------------------
sl@0
   109
 //! @SYMTestCaseID Drive_UnRegistering_1
sl@0
   110
 //! @SYMTestType CT
sl@0
   111
sl@0
   112
 //! @SYMTestCaseDesc Test un-registering MS FS
sl@0
   113
sl@0
   114
 //! @SYMFssID Base/emstore/3.2.1
sl@0
   115
 //! @SYMFssID Base/emstore/5.1.2
sl@0
   116
sl@0
   117
 //! @SYMTestActions 
sl@0
   118
 //!	a. Try to un-registering already registering MS FS while SCSI is accessing the drive.
sl@0
   119
 //! 	b. Wait for access completion.
sl@0
   120
 //! 	c. Un-register already registered MS FS. 	
sl@0
   121
 //! 	d. Try to read media using file server. 
sl@0
   122
 //! 	e. Remount FAT FS.
sl@0
   123
 //! 	f. Issue UnitReady and Read SCSI command through test LDD. 
sl@0
   124
 //!	g. Try to read media using file server again.
sl@0
   125
 //!	h. Un-mount FAT FS and mount MS FS
sl@0
   126
 //! 
sl@0
   127
 //! 
sl@0
   128
sl@0
   129
 //! @SYMTestExpectedResults 
sl@0
   130
 //!	Un-registering request (step a) should return an appropriate error code when media is in use. 
sl@0
   131
 //!	Next un-registering (step c) should be successful. 
sl@0
   132
 //!	attempt (step d) should fail. 
sl@0
   133
 //!    SCSI commands (step f) should report error when MS FS is un-mounted. 
sl@0
   134
 //!	File server read request (step g) should be successful when FAT FS is mounted  
sl@0
   135
 //!    
sl@0
   136
 //! @SYMTestPriority Low
sl@0
   137
 //! @SYMTestStatus Defined
sl@0
   138
sl@0
   139
 //---------------------------------------------
sl@0
   140
 //! @SYMTestCaseID Read_boot_sector
sl@0
   141
 //! @SYMTestType CT
sl@0
   142
sl@0
   143
 //! @SYMTestCaseDesc Test if NAND media does not expose its Master Boot Record (MBR)
sl@0
   144
sl@0
   145
 //! @SYMFssID Base/emstore/2.1.2
sl@0
   146
sl@0
   147
 //! @SYMTestActions Read sector 0 using Test LDD. Check if its regular Boot Sector or MBR
sl@0
   148
sl@0
   149
 //! @SYMTestExpectedResults  Sector 0 should be regular Boot Sector.
sl@0
   150
sl@0
   151
 //! @SYMTestPriority Low
sl@0
   152
 //! @SYMTestStatus Defined
sl@0
   153
sl@0
   154
 //---------------------------------------------
sl@0
   155
 //! @SYMTestCaseID Bulk_only_error_conditions_1
sl@0
   156
 //! @SYMTestType CT
sl@0
   157
sl@0
   158
 //! @SYMTestCaseDesc Test Bulk_only_transport under the bad condition
sl@0
   159
sl@0
   160
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   161
sl@0
   162
 //! @SYMTestActions 
sl@0
   163
 //!	a. Send GET_MAX_LUN command to MS using Test LDD, check the response.
sl@0
   164
 //! 	b. Send unsupported command. Check the responce.
sl@0
   165
 //!	c. Clear the error conditions. 
sl@0
   166
 //!	d. Send bad CBW.
sl@0
   167
 //!	e. Send normal CBW. 
sl@0
   168
 //!	f. Send Reset command to clear.
sl@0
   169
 //! 	g. Send normal CBW (INQUIRY) again.
sl@0
   170
sl@0
   171
 //! @SYMTestExpectedResults  GET_MAX_LUN (step a) should return expected data. 
sl@0
   172
 //! After unsupported command (step b) STALL PID should be returned at the next Data stage transaction
sl@0
   173
 //! 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.
sl@0
   174
 //! The last normal CBW (step g) should cause return of CSW with zero's in inquiry packet response. 
sl@0
   175
sl@0
   176
 //! @SYMTestPriority Low
sl@0
   177
 //! @SYMTestStatus Defined
sl@0
   178
sl@0
   179
 //---------------------------------------------
sl@0
   180
 //! @SYMTestCaseID Bulk_only_13_cases
sl@0
   181
 //! @SYMTestType CT
sl@0
   182
sl@0
   183
 //! @SYMTestCaseDesc Test Bulk_only_transport for 13 cases (section 6.7 from 
sl@0
   184
 //! "Universal Serial Bus. Mass Storage Class Bulk-Only Transport" Revision 1.0)
sl@0
   185
sl@0
   186
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   187
 //! @SYMFssID Base/emstore/1.2.1
sl@0
   188
sl@0
   189
 //! @SYMTestActions Exercise  Balk only transport for all 13 cases.
sl@0
   190
 //!  - No data to send or receive (P20 case(1))
sl@0
   191
 //!    Normal case - Use TEST_UNIT_READY and check no data returned and bCswStatus = 0 or 1
sl@0
   192
 //! 
sl@0
   193
 //!  - Host expects no data, device intends to send/receive data (P20 Case(2) or (3))
sl@0
   194
 //!    Sent READ command (1 sector?) with KCbwDataTransferLength == 0 - Case 2
sl@0
   195
 //!    Sent WRITE command (1 sector?) with KCbwDataTransferLength == 0 - Case 3
sl@0
   196
 //!     - In above cases, transport should issue PHASE_ERROR (bCswStatus = 2)
sl@0
   197
 //! 
sl@0
   198
 //!  - Host expects to receive data (case 6)
sl@0
   199
 //!    Send READ command, 1 sector, KCbwDataTransferLength = 512 bytes - Should return 512bytes with valid CSW
sl@0
   200
 //! 
sl@0
   201
 //!  - Device intends to send less data than expected from host (case 4 and 5)
sl@0
   202
 //!    Send READ command, 1 sector, KCbwDataTransferLength = 1024 bytes 
sl@0
   203
 //!      - Above should return 1024bytes (KCbwDataTransferLength) with 512 byte padding, 512 bytes residue and valid CSW
sl@0
   204
 //! 
sl@0
   205
 //!  - Device intends to send more data than expected by host (case 7 and 8)
sl@0
   206
 //!    Send READ command, 2 sector, KCbwDataTransferLength = 512 bytes 
sl@0
   207
 //!      - Above should return 512bytes (KCbwDataTransferLength), return bCswStatus = 2
sl@0
   208
 //! 
sl@0
   209
 //!  - Host expects to send data to the device
sl@0
   210
 //!    - Device intends to read less than the host sends (case 9,11,12)
sl@0
   211
 //!      Send WRITE command (1 sector) with KCbwDataTransferLength == 1024
sl@0
   212
 //!       - Device reads all data (1024) discarding the last 512 bytes, returns status = 0, residue = 512
sl@0
   213
 //! 
sl@0
   214
 //!    - Device intends to receive more data than sent by the host (case 10, 13)
sl@0
   215
 //!      Send WRITE command (2 sector) with KCbwDataTransferLength == 512
sl@0
   216
 //!      - Device should read all data, return bCswStatus = 2
sl@0
   217
 //! 
sl@0
   218
 //! @SYMTestExpectedResults  Pass
sl@0
   219
sl@0
   220
 //! @SYMTestPriority Low
sl@0
   221
 //! @SYMTestStatus Defined
sl@0
   222
sl@0
   223
 //---------------------------------------------
sl@0
   224
sl@0
   225
 //! @SYMTestCaseID Scsi_Inquiry_normal
sl@0
   226
 //! @SYMTestType CT
sl@0
   227
sl@0
   228
 //! @SYMTestCaseDesc Exercise INQUIRY command in normal conditions
sl@0
   229
sl@0
   230
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   231
 //! @SYMFssID Base/emstore/1.2.3.1
sl@0
   232
sl@0
   233
 //! @SYMTestActions Issue INQUIRY command (CMDDT, EVPD and PAGE OR OPERATION CODE =0 ) when media not present. 
sl@0
   234
 //! Check the response. Then mount media and issue INQUIRY command again. Check the response.
sl@0
   235
sl@0
   236
 //! @SYMTestExpectedResults  For both INQUIRY command IDevice type ==0, RMB==1, Version==0, Response Data Format == 0x02 
sl@0
   237
 //! Vendor ID/Product ID/Revision Level should be the same as passed in during Server Start.
sl@0
   238
 //! For first INQUIRY command Qualifier == 1 (the physical device is not currently connected to this logical unit),
sl@0
   239
 //! for next one Qualifier == 0.
sl@0
   240
sl@0
   241
sl@0
   242
 //! @SYMTestPriority Low
sl@0
   243
 //! @SYMTestStatus Defined
sl@0
   244
sl@0
   245
 //---------------------------------------------
sl@0
   246
 //! @SYMTestCaseID Scsi_Inquiry_error
sl@0
   247
 //! @SYMTestType CT
sl@0
   248
sl@0
   249
 //! @SYMTestCaseDesc Exercise INQUIRY command in error conditions
sl@0
   250
sl@0
   251
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   252
sl@0
   253
 //! @SYMTestActions Issue INQUIRY command with CMDDT =1, Check the sense code.
sl@0
   254
 //! Issue INQUIRY command with CMDDT =0 and EVPD=0 when PAGE OR OPERATION CODE field is not zero, Check the sense code.
sl@0
   255
sl@0
   256
sl@0
   257
 //! @SYMTestExpectedResults  The SCSI protocol shall return CHECK CONDITION status with the sense
sl@0
   258
 //! key set to ILLEGAL REQUEST and an additional sense code of INVALID FIELD IN CDB.
sl@0
   259
sl@0
   260
 //! @SYMTestPriority Low
sl@0
   261
 //! @SYMTestStatus Defined
sl@0
   262
sl@0
   263
 //---------------------------------------------
sl@0
   264
 //! @SYMTestCaseID Scsi_Request_Sense
sl@0
   265
 //! @SYMTestType CT
sl@0
   266
sl@0
   267
 //! @SYMTestCaseDesc Exercise REQUEST_SENSE command
sl@0
   268
sl@0
   269
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   270
sl@0
   271
 //! @SYMTestActions - Issue REQUEST_SENSE before any other command - Should return OK sense code
sl@0
   272
 //!  - Issue TEST_UNIT_READY for unregistered drive
sl@0
   273
 //!	    Check CSW returns status = 0x01
sl@0
   274
 //!	    Issue REQUEST_SENSE - should return NOT_READY sense code
sl@0
   275
 //!	    Issue REQUEST_SENSE - should return OK sense code
sl@0
   276
 //!
sl@0
   277
 //!  - Issue TEST_UNIT_READY for registered drive.
sl@0
   278
 //!	    Check CSW returns status = 0x00
sl@0
   279
 //!	    Issue REQUEST_SENSE - should return OK sense code
sl@0
   280
 //!
sl@0
   281
 //!  - Issue TEST_UNIT_READY for unregistered drive.
sl@0
   282
 //!	    Check CSW returns status = 0x01
sl@0
   283
 //!	    Issue TEST_UNIT_READY for registered drive.
sl@0
   284
 //!	    Check CSW returns status = 0x00
sl@0
   285
 //!	    Issue REQUEST_SENSE - should return OK sense code
sl@0
   286
sl@0
   287
 //! @SYMTestExpectedResults  Described above
sl@0
   288
sl@0
   289
 //! @SYMTestPriority Low
sl@0
   290
 //! @SYMTestStatus Defined
sl@0
   291
sl@0
   292
 //---------------------------------------------
sl@0
   293
 //! @SYMTestCaseID Scsi_Mode_Sense
sl@0
   294
 //! @SYMTestType CT
sl@0
   295
sl@0
   296
 //! @SYMTestCaseDesc Exercise MODE_SENSE command
sl@0
   297
sl@0
   298
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   299
sl@0
   300
 //! @SYMTestActions 
sl@0
   301
 //!	Register drive. 
sl@0
   302
 //!	Issue request for 3Fh code page for write protected and not write protected media
sl@0
   303
sl@0
   304
 //!	dev notes: latest implementation of scsi protocol supports only (SPC-2 p.100):
sl@0
   305
 //!		- PC field
sl@0
   306
 //!			- 00b	| supported 
sl@0
   307
 //!			- 10b	| in the same
sl@0
   308
 //!			- 11b	| manner
sl@0
   309
 //!			- 01b - NOT supported
sl@0
   310
 //!		- PAGE CODE (p. 189)
sl@0
   311
 //!			- 3Fh code ONLY
sl@0
   312
 //!	
sl@0
   313
sl@0
   314
 //! @SYMTestExpectedResults 
sl@0
   315
 //!	OUTPUT:
sl@0
   316
 //!		- device-specific parameter, field WP only (table 147, p.189 and table 101, p.107 in SBC-2)
sl@0
   317
 //!		NOT supported:
sl@0
   318
 //!		- block descriptors are not supported (table 146)
sl@0
   319
 //!		- pages
sl@0
   320
sl@0
   321
 //! @SYMTestPriority Low
sl@0
   322
 //! @SYMTestStatus Defined
sl@0
   323
sl@0
   324
 //---------------------------------------------
sl@0
   325
 //! @SYMTestCaseID Scsi_Bad_Lun
sl@0
   326
 //! @SYMTestType CT
sl@0
   327
sl@0
   328
 //! @SYMTestCaseDesc Test SCSI commands behavior for when unsupported LUN provided
sl@0
   329
sl@0
   330
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   331
sl@0
   332
 //! @SYMTestActions Issue all supported SCSI command with unsupported LUN.
sl@0
   333
sl@0
   334
 //! @SYMTestExpectedResults  All commands should return CHECK CONDITION status 
sl@0
   335
 //!		with the sense key set to ILLEGAL REQUEST / LUN NOT SUPPORTED. 
sl@0
   336
sl@0
   337
 //! @SYMTestPriority Low
sl@0
   338
 //! @SYMTestStatus Defined
sl@0
   339
sl@0
   340
sl@0
   341
 //---------------------------------------------
sl@0
   342
 //! @SYMTestCaseID Scsi_media_change
sl@0
   343
 //! @SYMTestType CT
sl@0
   344
sl@0
   345
 //! @SYMTestCaseDesc Test SCSI commands behavior when media changed
sl@0
   346
sl@0
   347
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   348
sl@0
   349
 //! @SYMTestActions Mount media. Issue INQUIRY command then simulate media change. Issue TEST UNIT READY.
sl@0
   350
 //! Repeat with  other commands (except REQUEST SENSE )
sl@0
   351
sl@0
   352
 //! @SYMTestExpectedResults  All commands should return CHECK CONDITION status with the sense key set to UNIT ATTENTION
sl@0
   353
sl@0
   354
 //! @SYMTestPriority Low
sl@0
   355
 //! @SYMTestStatus Defined
sl@0
   356
sl@0
   357
 //---------------------------------------------
sl@0
   358
 //! @SYMTestCaseID Scsi_Test_Unit_Ready
sl@0
   359
 //! @SYMTestType CT
sl@0
   360
sl@0
   361
 //! @SYMTestCaseDesc Test TEST UNIT READY command
sl@0
   362
sl@0
   363
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   364
sl@0
   365
 //! @SYMTestActions Don't register media. Issue TEST UNIT READY command. Check sense code. 
sl@0
   366
 //! Register media, repeat TEST UNIT READY command.
sl@0
   367
sl@0
   368
 //! @SYMTestExpectedResults  First commands should return CHECK CONDITION status with the sense key set to NOT READY.
sl@0
   369
 //! second command should return GOOD status with no additional sense information
sl@0
   370
sl@0
   371
 //! @SYMTestPriority Low
sl@0
   372
 //! @SYMTestStatus Defined
sl@0
   373
sl@0
   374
 //---------------------------------------------
sl@0
   375
 //! @SYMTestCaseID Scsi_Read_Capacity
sl@0
   376
 //! @SYMTestType CT
sl@0
   377
sl@0
   378
 //! @SYMTestCaseDesc Test READ_CAPACITY command
sl@0
   379
sl@0
   380
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   381
sl@0
   382
 //! @SYMTestActions 	Note media capacity before registering drive. Register drive and issue READ_CAPACITY command
sl@0
   383
 //! NOTE: LOGICAL BLOCK ADDRESS and PMI have to be set to 00h.
sl@0
   384
sl@0
   385
 //! @SYMTestExpectedResults  Data returned by READ_CAPACITY command should match with previously stored data. 
sl@0
   386
sl@0
   387
 //! @SYMTestPriority Low
sl@0
   388
 //! @SYMTestStatus Defined
sl@0
   389
sl@0
   390
 //---------------------------------------------
sl@0
   391
 //! @SYMTestCaseID Scsi_Start_Stop_Unit
sl@0
   392
 //! @SYMTestType CT
sl@0
   393
sl@0
   394
 //! @SYMTestCaseDesc Test START_STOP_UNIT command
sl@0
   395
sl@0
   396
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   397
sl@0
   398
 //! @SYMTestActions Issue START_STOP_UNIT command with START bit =1 then =0 when media is unregistered. Check sense code.
sl@0
   399
 //! Register drive. Issue START_STOP_UNIT command with START bit =1 then =0.
sl@0
   400
 //! NOTE: not supported fields: IMMED; POWER CONDITIONS; LOEJ
sl@0
   401
 //! 		the only supported field is: START
sl@0
   402
sl@0
   403
 //! @SYMTestExpectedResults  First to request should return CHECK CONDITION status with the sense key set to NOT READY.
sl@0
   404
 //! Last to requests should return GOOD status.
sl@0
   405
sl@0
   406
 //! @SYMTestPriority Low
sl@0
   407
 //! @SYMTestStatus Defined
sl@0
   408
sl@0
   409
 //---------------------------------------------
sl@0
   410
 //! @SYMTestCaseID Scsi_Prevent_Allow_Media_Removal
sl@0
   411
 //! @SYMTestType CT
sl@0
   412
sl@0
   413
 //! @SYMTestCaseDesc Test PREVENT/ALLOW MEDIUM REMOVAL command
sl@0
   414
sl@0
   415
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   416
sl@0
   417
 //! @SYMTestActions Same pattern as it define at Scsi_Start_Stop_Unit
sl@0
   418
 //! NOTE: supported PREVENT field only.
sl@0
   419
sl@0
   420
 //! @SYMTestExpectedResults  
sl@0
   421
sl@0
   422
 //! @SYMTestPriority Low
sl@0
   423
 //! @SYMTestStatus Defined
sl@0
   424
sl@0
   425
 //---------------------------------------------
sl@0
   426
 //! @SYMTestCaseID Scsi_Read_Write_Verify
sl@0
   427
 //! @SYMTestType CT
sl@0
   428
sl@0
   429
 //! @SYMTestCaseDesc Test READ, WRITE and VERIFY commands
sl@0
   430
sl@0
   431
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   432
sl@0
   433
 //! @SYMTestActions Register drive. Perform Write/Read/Verify tests of differing lengths and offsets. 
sl@0
   434
 //! Check boundary conditions - Read/Write off end of media (start <> length, end <> length)
sl@0
   435
 //! Perform Write/Read/Verify tests with write PROTECT media
sl@0
   436
 //! NOTE: only true or false is supported for PROTECT flag.
sl@0
   437
 
sl@0
   438
 //! @SYMTestExpectedResults  All operation should be completed successfully.
sl@0
   439
 //! end < length condition should result in ILLEGAL REQUEST / LBA OUT OF RANGE sense code.
sl@0
   440
sl@0
   441
 //! @SYMTestPriority Low
sl@0
   442
 //! @SYMTestStatus Defined
sl@0
   443
sl@0
   444
 //---------------------------------------------
sl@0
   445
 //! @SYMTestCaseID Scsi_unsupported_commands
sl@0
   446
 //! @SYMTestType CT
sl@0
   447
sl@0
   448
 //! @SYMTestCaseDesc Test system response for unsupported commands
sl@0
   449
sl@0
   450
 //! @SYMFssID Base/emstore/1.2.3
sl@0
   451
sl@0
   452
 //! @SYMTestActions Issue several unsupported commands, Check the sense code.
sl@0
   453
sl@0
   454
 //! @SYMTestExpectedResults  ILLEGAL REQUEST / INVALID COMMAND CODE sense code should be returned.
sl@0
   455
sl@0
   456
 //! @SYMTestPriority Low
sl@0
   457
 //! @SYMTestStatus Defined
sl@0
   458
sl@0
   459
 //---------------------------------------------
sl@0
   460
 //! @SYMTestCaseID Notification_1
sl@0
   461
 //! @SYMTestType CT
sl@0
   462
sl@0
   463
 //! @SYMTestCaseDesc Test Publish and Subscribe events.
sl@0
   464
sl@0
   465
sl@0
   466
 //! @SYMFssID Base/emstore/4.2.1
sl@0
   467
 //! @SYMFssID Base/emstore/5.1.3
sl@0
   468
 //! @SYMFssID Base/emstore/6.1.2.2
sl@0
   469
sl@0
   470
 //! @SYMTestActions Initiate different events (using Test LDD and Test server extension) to put USB mass storage 
sl@0
   471
 //! sequentially to all 9 states and test if user app receive proper notification.
sl@0
   472
sl@0
   473
 //! @SYMTestExpectedResults  All new state should trigger corresponded publish event.
sl@0
   474
sl@0
   475
 //! @SYMTestPriority Low
sl@0
   476
 //! @SYMTestStatus Defined
sl@0
   477
sl@0
   478
sl@0
   479
 //---------------------------------------------
sl@0
   480
 //! @SYMTestCaseID Notification_2
sl@0
   481
 //! @SYMTestType CT
sl@0
   482
sl@0
   483
 //! @SYMTestCaseDesc Test Data Transferred notification 
sl@0
   484
sl@0
   485
 //! @SYMFssID Base/emstore/4.3.1
sl@0
   486
sl@0
   487
 //! @SYMTestActions Register media. Issue Read and Write commands using test LDD. Check notification about data transferred.
sl@0
   488
sl@0
   489
 //! @SYMTestExpectedResults  Amount of data read and writen should match to 1K within numbers provided by notification service.
sl@0
   490
sl@0
   491
 //! @SYMTestPriority Low
sl@0
   492
 //! @SYMTestStatus Defined
sl@0
   493
sl@0
   494
 //---------------------------------------------
sl@0
   495
 //! @SYMTestCaseID Password_1
sl@0
   496
 //! @SYMTestType CT
sl@0
   497
sl@0
   498
 //! @SYMTestCaseDesc 
sl@0
   499
sl@0
   500
 //! @SYMFssID Base/emstore/6.1.1
sl@0
   501
 //! @SYMFssID Base/emstore/6.1.2.1
sl@0
   502
 //! @SYMFssID Base/emstore/6.1.2.2
sl@0
   503
sl@0
   504
 //! @SYMTestActions Insert unlocked card. Lock and store password. Force media change (using TBusLocalDrive::ForceRemount or RFs)
sl@0
   505
 //! Load MSFSYS. Card should be automatically unlocked.
sl@0
   506
 //! Un-mount MSFSYS. Unlock and Clear Password. Lock and don't store password.
sl@0
   507
 //! Force media change (using TBusLocalDrive::ForceRemount or RFs). Load MSFSYS. 
sl@0
   508
 //! User should be notified. Test App gets Locked P&S event
sl@0
   509
 //! Try to read/write (using Test LDD) registered, but not password protected media. Read/Write should succeed
sl@0
   510
 //! Unlock and store. Force media change (using TBusLocalDrive::ForceRemount or RFs).
sl@0
   511
 //! Next access should be unlocked
sl@0
   512
sl@0
   513
 //! @SYMTestExpectedResults  Pass
sl@0
   514
sl@0
   515
 //! @SYMTestPriority Low
sl@0
   516
 //! @SYMTestStatus Defined 
sl@0
   517
sl@0
   518
sl@0
   519
sl@0
   520
 //====================================================
sl@0
   521
 // Integration tests (required host PC)
sl@0
   522
 //====================================================
sl@0
   523
 //! @SYMTestCaseID Media_removal
sl@0
   524
 //! @SYMTestType IT
sl@0
   525
sl@0
   526
 //! @SYMTestCaseDesc Test media removal. (Manual integration test)
sl@0
   527
sl@0
   528
 //! @SYMFssID Base/emstore/4.2.1
sl@0
   529
sl@0
   530
 //! @SYMTestActions Initiate writing of big file (start Perl Script on PC) and 
sl@0
   531
 //!	remove card during write. 
sl@0
   532
 //!	Reinsert card after 1-2 seconds.
sl@0
   533
 //!	Wait for writing completion (indicated by script prompt).
sl@0
   534
 //!	Stop USB mass storage device using standard Windows tool.
sl@0
   535
 //! 	Unplug/plug-in USB cable to reset windows cache. 
sl@0
   536
 //! 	Read written file and compare (perl script)
sl@0
   537
sl@0
   538
 //! @SYMTestExpectedResults  Read data should match with written.
sl@0
   539
sl@0
   540
 //! @SYMTestPriority Low
sl@0
   541
 //! @SYMTestStatus Defined
sl@0
   542
sl@0
   543
 //---------------------------------------------
sl@0
   544
 //! @SYMTestCaseID Non_FAT_media
sl@0
   545
 //! @SYMTestType IT
sl@0
   546
sl@0
   547
 //! @SYMTestCaseDesc Test reaction for non FAT media. (Manual integration test)
sl@0
   548
sl@0
   549
 //! @SYMFssID Base/emstore/2.1.1
sl@0
   550
sl@0
   551
 //! @SYMTestActions 
sl@0
   552
 //!	a Insert MMC card formatted as FAT	
sl@0
   553
 //!	b Start USB MS application
sl@0
   554
 //!	c Check the displayed drive list 
sl@0
   555
 //!	d Double click on removable drive which is MMC card.
sl@0
   556
 //!	e Note if drive is accessible	
sl@0
   557
 //!	f Stop USB MS application
sl@0
   558
 //!	g Insert FAT formatted MMC card
sl@0
   559
 //!	h repeat steps from b to f
sl@0
   560
 //!    i reboot the board 
sl@0
   561
sl@0
   562
 //! @SYMTestExpectedResults  The drive correspondent to MMC card should be accessible when FAT formatted card is inserted
sl@0
   563
 //! and inaccessible when MMC card formatted as NTFS 
sl@0
   564
sl@0
   565
sl@0
   566
 //! @SYMTestPriority Low
sl@0
   567
 //! @SYMTestStatus Defined
sl@0
   568
sl@0
   569
sl@0
   570
 //---------------------------------------------
sl@0
   571
 //! @SYMTestCaseID Cable_plug_unplug
sl@0
   572
 //! @SYMTestType IT
sl@0
   573
sl@0
   574
 //! @SYMTestCaseDesc Test system behavior on USB cable plug-in/plug-out (automated integration test)
sl@0
   575
sl@0
   576
 //! @SYMFssID Base/emstore/5.1.1
sl@0
   577
 //! @SYMFssID Base/emstore/5.1.2
sl@0
   578
sl@0
   579
 //! @SYMTestActions Start USB MS using USB manager. Simulate cable removal.
sl@0
   580
 //! USB Man notifies USB App of cable removal. USB App should dismount MSFSYS. 
sl@0
   581
 //! USB App should get Disconnected state from P&S. USB App should remount FAT.
sl@0
   582
 //! USB App commands MS Class Controller to stop the server/transport.
sl@0
   583
 //! Repeat in backward order.
sl@0
   584
sl@0
   585
 //! @SYMTestExpectedResults  Pass.
sl@0
   586
sl@0
   587
 //! @SYMTestPriority Low
sl@0
   588
 //! @SYMTestStatus Defined
sl@0
   589
sl@0
   590
sl@0
   591
 //---------------------------------------------
sl@0
   592
 //! @SYMTestCaseID Interoperability_1
sl@0
   593
 //! @SYMTestType IT
sl@0
   594
sl@0
   595
 //! @SYMTestCaseDesc Test Mass Storage functionality on different platforms (Windows 2000/XP/ME, MacOS) (Manual test)
sl@0
   596
sl@0
   597
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   598
 //! @SYMFssID Base/emstore/3.1.1
sl@0
   599
sl@0
   600
 //! @SYMTestActions Connect device to a host PC. Enable MS. Start perl script on PC. 
sl@0
   601
 //! This script formats drive and creates several folders with levels of nested folders and writes set of files to them. 
sl@0
   602
 //! File sizes varied from several kilobytes to several megabytes. 
sl@0
   603
 //! The number of folders, nest depth, number of files placed in each folder and  there sizes should be configurable.
sl@0
   604
 //! Then script prompt ask to unplug/plug USB cable (to flash OS read cache) and then read all files back and compare.
sl@0
   605
sl@0
   606
 //! @SYMTestExpectedResults  Read data from files should match with written.
sl@0
   607
 //---------------------------------------------
sl@0
   608
 //! @SYMTestCaseID Interoperability_2
sl@0
   609
 //! @SYMTestType IT
sl@0
   610
sl@0
   611
 //! @SYMTestCaseDesc Test Mass Storage functionality on different platforms (Windows 2000/XP/ME, MacOS) (Manual test)
sl@0
   612
sl@0
   613
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   614
 //! @SYMFssID Base/emstore/3.1.1
sl@0
   615
sl@0
   616
 //! @SYMTestActions Connect device to a host PC. Enable MS. Start perl script on PC. 
sl@0
   617
 //! This script formats drive and queries size of it. 
sl@0
   618
 //! Than script create file with size close to drive size and check free space.
sl@0
   619
 //! Then script prompt ask to unplug/plug USB cable (to flash OS read cache) and then read the file back and compare.
sl@0
   620
sl@0
   621
 //! @SYMTestExpectedResults  File creation should succeed. Read data from file should match with written. 
sl@0
   622
 //! Sum of file size and free space should be close to drive size.
sl@0
   623
sl@0
   624
 //---------------------------------------------
sl@0
   625
 //! @SYMTestCaseID Performance_Ready_Time
sl@0
   626
 //! @SYMTestType IT
sl@0
   627
sl@0
   628
 //! @SYMTestCaseDesc Test readiness time. (Manual test)
sl@0
   629
sl@0
   630
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   631
sl@0
   632
 //! @SYMTestActions Open "My computer folder". Enable MS on device. Plug in USB cable. 
sl@0
   633
 //! Note delay between cable insertion and new drive icon appearance using watch stop.
sl@0
   634
 //! Unplug cable then repeat test.
sl@0
   635
sl@0
   636
 //! @SYMTestExpectedResults  Delay after second cable plug-in should be not bigger then 10 seconds 
sl@0
   637
 //! However firs delay can be longer if this device was not used with this PC before.
sl@0
   638
 //! Thus result of first step  can be ignored.
sl@0
   639
sl@0
   640
 //! @SYMTestPriority Low
sl@0
   641
 //! @SYMTestStatus Defined
sl@0
   642
sl@0
   643
 //! @SYMTestPriority Low
sl@0
   644
 //! @SYMTestStatus Defined
sl@0
   645
sl@0
   646
sl@0
   647
sl@0
   648
 //---------------------------------------------
sl@0
   649
 //! @SYMTestCaseID Performance_1
sl@0
   650
 //! @SYMTestType IT
sl@0
   651
sl@0
   652
 //! @SYMTestCaseDesc Measure file read/write performance (manual)
sl@0
   653
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   654
sl@0
   655
 //! @SYMTestActions Use PassMark Performace test v5.0 (http://www.passmark.com/)
sl@0
   656
 //! Create new thread under advanced disk test with parameters: 
sl@0
   657
 //! File size - 5Mb, Block Size - 16384, Access Method - Standart Win32 API (un-cached),
sl@0
   658
 //! Request Mode - Synchronous, 100% Write, 100% Sequential
sl@0
   659
 //! Run test, note Mb/sec numbers.
sl@0
   660
 //! Change to 100% Read, Run test, note Mb/sec numbers.
sl@0
   661
 //! Change to 50% Read/Write, 50% Sequential/Random
sl@0
   662
 //! Change to 100% Read, Run test, note Mb/sec numbers.
sl@0
   663
sl@0
   664
 //! @SYMTestExpectedResults  Number for Lace card reader with 16MB SanDisc MMC (USB 1.1) - 0.12/0.14/0.14 Mb/sec
sl@0
   665
 //! SunDisk Cruiser mini 256MB flash drive (under USB 1.1) - 0.7/0.78/0.42 Mb/sec
sl@0
   666
sl@0
   667
 //! @SYMTestPriority Low
sl@0
   668
 //! @SYMTestStatus Defined
sl@0
   669
sl@0
   670
//---------------------------------------------
sl@0
   671
 //! @SYMTestCaseID Performance_2
sl@0
   672
 //! @SYMTestType IT
sl@0
   673
sl@0
   674
 //! @SYMTestCaseDesc Test if phone can receive incoming call when acting as a mass storage device. (Manual integration test)
sl@0
   675
sl@0
   676
 //! @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.
sl@0
   677
sl@0
   678
 //! @SYMTestExpectedResults  Call should be received and proceeded properly.
sl@0
   679
sl@0
   680
 //! @SYMTestPriority Low
sl@0
   681
 //! @SYMTestStatus Defined
sl@0
   682
sl@0
   683
sl@0
   684
sl@0
   685
 //---------------------------------------------
sl@0
   686
 //! @SYMTestCaseID Performance_3
sl@0
   687
 //! @SYMTestType IT
sl@0
   688
sl@0
   689
 //! @SYMTestCaseDesc Test if phone can receive incoming SMS when acting as a mass storage device. (Manual integration test)
sl@0
   690
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   691
sl@0
   692
 //! @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
sl@0
   693
 //! @SYMTestExpectedResults  SMS should be received properly.
sl@0
   694
sl@0
   695
 //! @SYMTestPriority Low
sl@0
   696
 //! @SYMTestStatus Defined
sl@0
   697
sl@0
   698
//---------------------------------------------
sl@0
   699
 //! @SYMTestCaseID Performance_4
sl@0
   700
 //! @SYMTestType IT
sl@0
   701
sl@0
   702
 //! @SYMTestCaseDesc Test if it possible to browse Address Book when device acting as a mass storage. (Manual integration test)
sl@0
   703
 //! @SYMFssID Base/emstore/1.1.1
sl@0
   704
sl@0
   705
 //! @SYMTestActions Enable MS, connect device (H2 board) to PC. Start script on PC side which write/read files. 
sl@0
   706
 //! Open Address Book application and try to navigate through records.
sl@0
   707
 //! @SYMTestExpectedResults  Address Book application should work properly.
sl@0
   708
sl@0
   709
 //! @SYMTestPriority Low
sl@0
   710
 //! @SYMTestStatus Defined