usbmgmt/usbmgrtest/t_usbmanager_suite/T_UsbManager/scripts/t_usbmanintegration.script
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 // Copyright (c) 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 "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 //
       
    15 
       
    16 //Integration tests wich can be run on emulator.
       
    17 
       
    18 LOAD_SUITE T_UsbManagerServer
       
    19 
       
    20 RUN_UTILS MkDir C:\testdata\
       
    21 RUN_UTILS MkDir C:\testdata\config\
       
    22 RUN_UTILS CopyFile Z:\testdata\config\stub1cc.ini C:\testdata\config\stub1cc.ini
       
    23 RUN_UTILS CopyFile Z:\testdata\config\stub2cc.ini C:\testdata\config\stub2cc.ini
       
    24 RUN_UTILS CopyFile Z:\testdata\config\stub3cc.ini C:\testdata\config\stub3cc.ini
       
    25 RUN_UTILS MkDir c:\private\
       
    26 RUN_UTILS MkDir c:\private\101fe1db\
       
    27 RUN_UTILS CopyFile Z:\private\101fe1db\usbman.r01 c:\private\101fe1db\usbman.r01
       
    28 // Delay 3 seconds for RUN_UTILS to complete
       
    29 DELAY 3000
       
    30 
       
    31 //! @SYMTestCaseID T_CancelInterest1
       
    32 //! @SYMTestType CIT
       
    33 //! @SYMTestCaseDesc Test CancelInterest request
       
    34 //! @SYMFssID USB/DynamicClassChange/1.5.1
       
    35 //! @SYMTestActions Create session with USB server, Issue TryStart request and then immediatly CancelInterest. Check the state of the USB server until it started.
       
    36 //! Repeat previous step for Start request
       
    37 //! @SYMTestExpectedResults The outstanding request should be completed immediately after CancelInterest, but USB server should continue to transition to "Start" state.
       
    38 //! @SYMTestPriority Low
       
    39 //! @SYMTestStatus Defined
       
    40 
       
    41 START_TESTCASE T_CancelInterest1
       
    42 RUN_TEST_STEP 90 T_UsbManagerServer CancelStartInterest z:\testdata\config\t_usbmanintegration.ini T_CancelInterest
       
    43 END_TESTCASE T_CancelInterest1
       
    44 
       
    45 //! @SYMTestCaseID T_CancelInterest2
       
    46 //! @SYMTestType CIT
       
    47 //! @SYMTestCaseDesc Test CancelInterest request
       
    48 //! @SYMFssID USB/DynamicClassChange/1.5.1
       
    49 //! @SYMTestActions Create session with USB server, Issue TryStart wait for completion,
       
    50 //! then issue TryStop request and immediately CancelInterest. Check the state of the USB server until it stopped.
       
    51 //! Repeat previous step for Stop request
       
    52 //! @SYMTestExpectedResults The outstanding request should be completed immediately after CancelInterest, but USB server should continue to transition to "Stop" state.
       
    53 //! @SYMTestPriority Low
       
    54 //! @SYMTestStatus Defined
       
    55 
       
    56 START_TESTCASE T_CancelInterest2
       
    57 RUN_TEST_STEP 90 T_UsbManagerServer CancelStopInterest z:\testdata\config\t_usbmanintegration.ini T_CancelInterest
       
    58 END_TESTCASE T_CancelInterest2
       
    59 
       
    60 //! @SYMTestCaseID T_StartStopPersonalityI1
       
    61 //! @SYMTestType CIT
       
    62 //! @SYMTestCaseDesc Test start/stop personality at different USB server's states
       
    63 //! @SYMFssID USB/DynamicClassChange/1.3.3
       
    64 //! @SYMFssID USB/DynamicClassChange/1.4.2
       
    65 //! @SYMTestActions Create 3 sessions with USB server, Issue TryStart and TryStop requests simultanestly from 3 clients  at all possible server's states.
       
    66 //! @SYMTestExpectedResults The requests should be succeeded or failed according to the "State Transition Diagram" chapter from 
       
    67 //! the "USB Design Document for PREQ 543"
       
    68 //! @SYMTestPriority Low
       
    69 //! @SYMTestStatus Defined
       
    70 
       
    71 START_TESTCASE T_StartStopPersonalityI1
       
    72 RUN_TEST_STEP 90 T_UsbManagerServer StartStopPersonality1 z:\testdata\config\t_usbmanintegration.ini T_StartStopPersonality
       
    73 END_TESTCASE T_StartStopPersonalityI1
       
    74 
       
    75 //! @SYMTestCaseID T_StartStopPersonalityI2
       
    76 //! @SYMTestType CIT
       
    77 //! @SYMTestCaseDesc Test start/stop personality at different USB server's states
       
    78 //! @SYMFssID USB/DynamicClassChange/1.3.3
       
    79 //! @SYMFssID USB/DynamicClassChange/1.4.2
       
    80 //! @SYMTestActions Create 2 sessions with USB server, Issue TryStart and TryStop requests from one client and start/stop request from another simultaneously at all possible server's states.
       
    81 //! @SYMTestExpectedResults The requests should be succeeded or failed according to the "State Transition Diagram" chapter from 
       
    82 //! the "USB Design Document for PREQ 543"
       
    83 //! @SYMTestPriority Low
       
    84 //! @SYMTestStatus Defined
       
    85 
       
    86 START_TESTCASE T_StartStopPersonalityI2
       
    87 RUN_TEST_STEP 300 T_UsbManagerServer StartStopPersonality2 z:\testdata\config\t_usbmanintegration.ini T_StartStopPersonality
       
    88 END_TESTCASE T_StartStopPersonalityI2
       
    89