|
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-MODULATION12_TCPADAPTIVEWNDSIZE |
|
18 //! @SYMScriptTestEnvironment Standard Symbian HRP or emulator environment |
|
19 |
|
20 PRINT NET_Modulation12_TCPADAPTIVEWNDSIZE: |
|
21 PRINT Set AP(4) to be up. |
|
22 PRINT Start connect with snap with one as HSDPA |
|
23 PRINT Modulation changes to UMTS |
|
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_Hsdpa_Umts_config.txt c:\simtsy\config.txt |
|
45 RUN_UTILS CopyFile z:\TestData\Configs\te_tcpip6AdapWnd_Modulation_Hsdpa_Umts_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-12 |
|
52 //! @SYMTestCaseID NS-TCPIP6-Modulation-WndSize-12 |
|
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 HSDPA |
|
82 RUN_TEST_STEP 150 te_esockteststepsSuite SocketGetOptionStep z:\testdata\configs\te_tcpip6AdapWnd.ini GetOptOnSocketHSDPA |
|
83 |
|
84 DELAY 20000 |
|
85 |
|
86 //Retrieve the TCP Window size for UMTS |
|
87 RUN_TEST_STEP 150 te_esockteststepsSuite SocketGetOptionStep z:\testdata\configs\te_tcpip6AdapWnd.ini GetOptOnSocketUMTS |
|
88 |
|
89 // Clean up what we used |
|
90 RUN_TEST_STEP 150 te_esockteststepsSuite StopRConnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini StopConn |
|
91 RUN_TEST_STEP 100 te_esockteststepsSuite closersocketStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseTcpSock1 |
|
92 RUN_TEST_STEP 150 te_esockteststepsSuite CloseRConnectionStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseConn |
|
93 RUN_TEST_STEP 150 te_esockteststepsSuite closersocketservStep z:\testdata\configs\te_tcpip6AdapWnd.ini CloseSocketSvr |
|
94 |
|
95 END_TESTCASE NS-TCPIP6-Modulation-WndSize-12 |
|
96 |
|
97 |
|
98 // Clean up |
|
99 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
100 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
101 |
|
102 PRINT Completed NET_Modulation12_TCPADAPTIVEWNDSIZE |