networkprotocols/tcpipv4v6prt/te_tcpip6/scripts/te_tcpip6adapwnd_modulation_edge_gprs_user_set.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-MODULATION_TCPADAPTIVEWNDSIZE
       
    18 //! @SYMScriptTestEnvironment Standard Symbian HRP or emulator environment
       
    19 
       
    20 PRINT NET_Modulation04_TCPADAPTIVEWNDSIZE:
       
    21 PRINT Set AP(4) to be up.
       
    22 PRINT Start connect with snap with one as EDGE
       
    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 
       
    34 PRINT Initialising test environment
       
    35 RUN_UTILS  MkDir c:\simtsy\
       
    36 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
    37 RUN_UTILS  MakeReadWrite c:\config.txt
       
    38 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
    39 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
    40 RUN_UTILS  DeleteFile c:\config.txt
       
    41 RUN_UTILS  DeleteFile c:\loopback.ini
       
    42 RUN_UTILS  CopyFile z:\TestData\Configs\tcpip6AdapWnd_LoopbackCSY.ini c:\loopback.ini
       
    43 
       
    44 RUN_UTILS  CopyFile z:\TestData\Configs\te_tcpip6AdapWnd_Modulation_Edge_Gprs_config.txt c:\simtsy\config.txt
       
    45 RUN_UTILS  CopyFile z:\TestData\Configs\te_tcpip6AdapWnd_Modulation_Edge_Gprs_config.txt c:\config.txt
       
    46 
       
    47 
       
    48 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script
       
    49 
       
    50 
       
    51 START_TESTCASE			NS-TCPIP6-Modulation-WndSize
       
    52 //! @SYMTestCaseID		NS-TCPIP6-Modulation-WndSize
       
    53 //!@SYMTestCaseDesc           	TODO_CDG
       
    54 //!@SYMPREQ                   	PREQ1854
       
    55 //!@SYMAPI
       
    56 // TODO_CDG
       
    57 //!@SYMTestPriority           	Critical
       
    58 //!@SYMTestActions
       
    59 // TODO_CDG
       
    60 //!@SYMTestType               	CIT
       
    61 //!@SYMTestExpectedResults    	TODO_CDG
       
    62 
       
    63 
       
    64 // Create and connect socketserver and connectionserver instances
       
    65 RUN_TEST_STEP 150 te_esockteststepsSuite creatersocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini CreateSockSvr
       
    66 RUN_TEST_STEP 150 te_esockteststepsSuite connectrsocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini ConnectSockSvr
       
    67 
       
    68 // Create and open a connection (conn1)
       
    69 RUN_TEST_STEP 150 te_esockteststepsSuite createrconnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini CreateConn
       
    70 RUN_TEST_STEP 150 te_esockteststepsSuite openrconnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini OpenConn
       
    71 // Make bearer1 available and connect with associated snap
       
    72 RUN_TEST_STEP 150 te_esockteststepsSuite SetAccessPointAvailabilityStep z:\testdata\configs\te_tcpip6AdapWnd.ini ChangeAvailabilityUpAp4
       
    73 
       
    74 RUN_TEST_STEP 150 te_esockteststepsSuite startrconnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini StartConnSnap53
       
    75 
       
    76 // Create and open a Socket(TcpSock1)
       
    77 RUN_TEST_STEP 150 te_esockteststepsSuite CreateRSocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini CreateTcpSock1
       
    78 RUN_TEST_STEP 150 te_esockteststepsSuite OpenRSocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini OpenTcpSock1
       
    79 
       
    80 
       
    81 //Retrieve the TCP Window size for EDGE
       
    82 RUN_TEST_STEP 150 te_esockteststepsSuite SocketGetOptionStep z:\testdata\configs\te_tcpip6AdapWnd.ini GetOptOnSocketEGPRS
       
    83 
       
    84 //User does a SetOpt( ) with own value
       
    85 RUN_TEST_STEP 150 te_esockteststepsSuite SocketSetOptionStep  z:\testdata\configs\te_tcpip6AdapWnd.ini UserSetOptOnSocketEGPRS
       
    86 
       
    87 DELAY 20000
       
    88 //Bearer changing to GPRS
       
    89 PRINT Bearer changing to GPRS
       
    90 
       
    91 PRINT GPRS bearer default tcp receieve window size	17520
       
    92 
       
    93 //User GetOpt( ) This value should be different from previous value.
       
    94 RUN_TEST_STEP 150 te_esockteststepsSuite SocketGetOptionStep z:\testdata\configs\te_tcpip6AdapWnd.ini UserGetOptOnSocketGPRS
       
    95 
       
    96 PRINT GetOpt returns tcp receieve window size 33580
       
    97 PRINT User set tcp received window value honored after bearer change
       
    98 
       
    99 
       
   100 // Clean up what we used
       
   101 RUN_TEST_STEP 150 te_esockteststepsSuite StopRConnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini StopConn
       
   102 RUN_TEST_STEP 100 te_esockteststepsSuite closersocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseTcpSock1
       
   103 RUN_TEST_STEP 150 te_esockteststepsSuite CloseRConnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseConn
       
   104 RUN_TEST_STEP 150 te_esockteststepsSuite closersocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseSocketSvr
       
   105 
       
   106 END_TESTCASE			NS-TCPIP6-Modulation-WndSize
       
   107 
       
   108 
       
   109 // Clean up
       
   110 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script
       
   111 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   112 
       
   113 PRINT Completed NET_Modulation04_TCPADAPTIVEWNDSIZE