networkprotocols/tcpipv4v6prt/te_tcpip6/scripts/te_tcpip6adapwnd_modulation_umts_gprs.script
changeset 0 af10295192d8
child 29 c0a997472b1c
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 //! @file
       
    17 //! @SYMTestSuiteName NET-MODULATION07_TCPADAPTIVEWNDSIZE
       
    18 //! @SYMScriptTestEnvironment Standard Symbian HRP or emulator environment
       
    19 
       
    20 PRINT NET_Modulation07_TCPADAPTIVEWNDSIZE:
       
    21 PRINT Set AP(4) to be up.
       
    22 PRINT Start connect with snap with one as UMTS
       
    23 PRINT Modulation changes to GPRS
       
    24 PRINT Stop connection
       
    25 
       
    26 // Load the test suite
       
    27 LOAD_SUITE te_esockteststepsSuite -SharedData
       
    28 
       
    29 // Set up the comms database and start esock in preparation for the test
       
    30 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    31 CED -i z:\testdata\configs\tcpip6AdapWnd_gprs.ced.cfg c:\tcpip6AdapWnd_gprs.ced.cfg.log
       
    32 
       
    33 PRINT Initialising test environment
       
    34 RUN_UTILS  MkDir c:\simtsy\
       
    35 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
    36 RUN_UTILS  MakeReadWrite c:\config.txt
       
    37 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
    38 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
    39 RUN_UTILS  DeleteFile c:\config.txt
       
    40 RUN_UTILS  DeleteFile c:\loopback.ini
       
    41 RUN_UTILS  CopyFile z:\TestData\Configs\tcpip6AdapWnd_LoopbackCSY.ini c:\loopback.ini
       
    42 
       
    43 RUN_UTILS  CopyFile z:\TestData\Configs\te_tcpip6AdapWnd_Modulation_Umts_Gprs_config.txt c:\simtsy\config.txt
       
    44 RUN_UTILS  CopyFile z:\TestData\Configs\te_tcpip6AdapWnd_Modulation_Umts_Gprs_config.txt c:\config.txt
       
    45 
       
    46 
       
    47 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script
       
    48 
       
    49 
       
    50 START_TESTCASE			NS-TCPIP6-Modulation-WndSize-07
       
    51 //! @SYMTestCaseID		NS-TCPIP6-Modulation-WndSize-07
       
    52 //!@SYMTestCaseDesc           	TODO_CDG
       
    53 //!@SYMPREQ                   	PREQ1854
       
    54 //!@SYMAPI
       
    55 // TODO_CDG
       
    56 //!@SYMTestPriority           	Critical
       
    57 //!@SYMTestActions
       
    58 // TODO_CDG
       
    59 //!@SYMTestType               	CIT
       
    60 //!@SYMTestExpectedResults    	TODO_CDG
       
    61 
       
    62 
       
    63 // Create and connect socketserver and connectionserver instances
       
    64 RUN_TEST_STEP 150 te_esockteststepsSuite creatersocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini CreateSockSvr
       
    65 RUN_TEST_STEP 150 te_esockteststepsSuite connectrsocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini ConnectSockSvr
       
    66 
       
    67 // Create and open a connection (conn1)
       
    68 RUN_TEST_STEP 150 te_esockteststepsSuite createrconnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini CreateConn
       
    69 RUN_TEST_STEP 150 te_esockteststepsSuite openrconnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini OpenConn
       
    70 // Make bearer1 available and connect with associated snap
       
    71 RUN_TEST_STEP 150 te_esockteststepsSuite SetAccessPointAvailabilityStep z:\testdata\configs\te_tcpip6AdapWnd.ini ChangeAvailabilityUpAp4
       
    72 
       
    73 RUN_TEST_STEP 150 te_esockteststepsSuite startrconnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini StartConnSnap53
       
    74 
       
    75 // Create and open a Socket(TcpSock1)
       
    76 RUN_TEST_STEP 150 te_esockteststepsSuite CreateRSocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini CreateTcpSock1
       
    77 RUN_TEST_STEP 150 te_esockteststepsSuite OpenRSocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini OpenTcpSock1
       
    78 
       
    79 
       
    80 //Retrieve the TCP Window size for UMTS
       
    81 RUN_TEST_STEP 150 te_esockteststepsSuite SocketGetOptionStep z:\testdata\configs\te_tcpip6AdapWnd.ini GetOptOnSocketUMTS
       
    82 
       
    83 DELAY 20000
       
    84 
       
    85 //Retrieve the TCP Window size for GPRS
       
    86 RUN_TEST_STEP 150 te_esockteststepsSuite SocketGetOptionStep z:\testdata\configs\te_tcpip6AdapWnd.ini GetOptOnSocketGPRS
       
    87 
       
    88 // Clean up what we used
       
    89 RUN_TEST_STEP 150 te_esockteststepsSuite StopRConnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini StopConn
       
    90 RUN_TEST_STEP 100 te_esockteststepsSuite closersocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseTcpSock1
       
    91 RUN_TEST_STEP 150 te_esockteststepsSuite CloseRConnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseConn
       
    92 RUN_TEST_STEP 150 te_esockteststepsSuite closersocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseSocketSvr
       
    93 
       
    94 END_TESTCASE			NS-TCPIP6-Modulation-WndSize-07
       
    95 
       
    96 
       
    97 // Clean up
       
    98 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script
       
    99 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   100 
       
   101 PRINT Completed NET_Modulation07_TCPADAPTIVEWNDSIZE