baseintegtests/baseintegrationtest/testsuites/sd/scripts/btsdinteropusb.script
branchanywhere
changeset 20 d63d727ee0a6
parent 19 f6d3d9676ee4
parent 16 6d8ad5bee44b
child 21 af091391d962
equal deleted inserted replaced
19:f6d3d9676ee4 20:d63d727ee0a6
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Interopeablily between the device under test and a PC via USB
       
    15 // 
       
    16 //
       
    17 
       
    18 //! @file btsdwp.script
       
    19 //! @SYMTestSuiteName basetestsd
       
    20 //! @SYMScriptTestEnvironment base
       
    21 
       
    22 LOAD_SUITE basetestsd
       
    23 
       
    24 PRINT ATTENTION: This is a manual test
       
    25 PRINT The device under test must be connected to a host PC via a USB cable
       
    26 PRINT User will be prompted to perform file operations on the host PC via the mass-storage mechanism
       
    27 
       
    28 START_TESTCASE PBASE-INTEROPUSBOUTBOUND-0211
       
    29 //!  @SYMTestCaseID PBASE-INTEROPUSBOUTBOUND-0211
       
    30 //!  @SYMTestCaseDesc File system interoperability from the device under test to a host PC via USB
       
    31 //!  @SYMREQ REQ0000
       
    32 //!  @SYMTestActions
       
    33 //!      1. Format card
       
    34 //!      2. Create several files and directories
       
    35 //!      3. Read files on the card
       
    36 //!      4. Enable the Mass Storage Mode
       
    37 //!      5. User reads contents of the memory card from the host PC
       
    38 //!      6. User performs some more file operations from the host PC
       
    39 //!      7. User disconnects the USB device
       
    40 //!      8. Read files on the card
       
    41 //!      9. Check file system for consistency
       
    42 //!  @SYMTestExpectedResults
       
    43 //!      1. No error
       
    44 //!      2. No error
       
    45 //!      3. Memory card contents are exactly as expected
       
    46 //!      4. Memory card appears on the host PC as a remote drive
       
    47 //!      5. Memory card contents are exactly as expected
       
    48 //!      6. No error
       
    49 //!      7. No error and test execution resumes on the device under test
       
    50 //!      8. Memory card contents are exactly as expected
       
    51 //!      9. File system is not corrupt
       
    52 //!  @SYMTestPriority High
       
    53 //!  @SYMTestStatus Implemented
       
    54 //!  @SYMTestType CIT
       
    55 RUN_TEST_STEP 500  basetestsd Format          \basetest\btsd.ini FullFormat
       
    56 RUN_TEST_STEP 2000 basetestsd FileOperations1 \basetest\btsd.ini INTEROP_OUTBOUND
       
    57 RUN_TEST_STEP 500  basetestsd ReadFiles1      \basetest\btsd.ini INTEROP_OUTBOUND
       
    58 RUN_TEST_STEP -1   basetestsd DialogBox       \basetest\btsd.ini INTEROPUSB_OUTBOUND
       
    59 RUN_TEST_STEP -1   basetestsd USB             \basetest\btsd.ini
       
    60 RUN_TEST_STEP 500  basetestsd ReadFiles2      \basetest\btsd.ini INTEROP_OUTBOUND
       
    61 RUN_TEST_STEP 500  basetestsd CheckDisk       \basetest\btsd.ini
       
    62 END_TESTCASE PBASE-INTEROPUSBOUTBOUND-0211
       
    63 
       
    64 START_TESTCASE PBASE-INTEROPUSBINBOUND-0212
       
    65 //!  @SYMTestCaseID PBASE-INTEROPUSBINBOUND-0212
       
    66 //!  @SYMTestCaseDesc File system interoperability from a host PC to the device under test via USB
       
    67 //!  @SYMREQ REQ0000
       
    68 //!  @SYMTestActions
       
    69 //!      1. Format card
       
    70 //!      2. Enable the Mass Storage Mode
       
    71 //!      3. User performs specific file operations from the host PC
       
    72 //!      4. User disconnects the USB device
       
    73 //!      5. Read files on the card
       
    74 //!      6. Create several files and directories
       
    75 //!      7. Read files on the card
       
    76 //!      8. Check file system for consistency
       
    77 //!  @SYMTestExpectedResults
       
    78 //!      1. No error
       
    79 //!      2. Memory card appears on the host PC as an empty remote drive
       
    80 //!      3. No error
       
    81 //!      4. No error and test execution resumes on the device under test
       
    82 //!      5. Memory card contents are exactly as expected
       
    83 //!      6. No error
       
    84 //!      7. Memory card contents are exactly as expected
       
    85 //!      8. File system is not corrupt
       
    86 //!  @SYMTestPriority High
       
    87 //!  @SYMTestStatus Implemented
       
    88 //!  @SYMTestType CIT
       
    89 RUN_TEST_STEP -1   basetestsd DialogBox       \basetest\btsd.ini INTEROPUSB_INBOUND
       
    90 RUN_TEST_STEP -1   basetestsd USB             \basetest\btsd.ini
       
    91 RUN_TEST_STEP 500  basetestsd ReadFiles1      \basetest\btsd.ini INTEROP_INBOUND
       
    92 RUN_TEST_STEP 2000 basetestsd FileOperations2 \basetest\btsd.ini INTEROP_INBOUND
       
    93 RUN_TEST_STEP 500  basetestsd ReadFiles2      \basetest\btsd.ini INTEROP_INBOUND
       
    94 RUN_TEST_STEP 500  basetestsd CheckDisk       \basetest\btsd.ini
       
    95 END_TESTCASE PBASE-INTEROPUSBINBOUND-0212