|
1 // |
|
2 // Copyright (c) 2010 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 |
|
17 PRINT Integration test 3.17 - GPRS outgoing with Ipv4 and Client timeout |
|
18 |
|
19 |
|
20 LOAD_SUITE TE_Esock |
|
21 LOAD_SUITE te_esockutil |
|
22 LOAD_SUITE te_esockteststepsSuite -SharedData |
|
23 |
|
24 |
|
25 |
|
26 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
27 //CED z:\testdata\configs\te_esock.xml |
|
28 RUN_UTILS MkDir c:\private |
|
29 RUN_UTILS MkDir c:\private\10202be9 |
|
30 RUN_UTILS MkDir c:\private\10202be9\persists |
|
31 RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre |
|
32 RUN_UTILS CopyFile z:\testdata\configs\cccccc00_itest3.cre c:\private\10202be9\persists\cccccc00.cre |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 // open connection using gencon |
|
39 //run_test_step 3000 ts_genconn test1_1 z:\testdata\configs\integration\itest_s3\genconn.ini |
|
40 //original genconn.ini says to leave connected after opening. |
|
41 //the above call results in OpenSocketServ, OpenConnection, StartConnection which are now all provided by |
|
42 //TE_EsockTestSteps |
|
43 RUN_TEST_STEP 3000 te_esockteststepsSuite creatersocketservStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini CreateSockSvr1 |
|
44 RUN_TEST_STEP 3000 te_esockteststepsSuite connectrsocketservStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini ConnectSockSvr1 |
|
45 RUN_TEST_STEP 3000 te_esockteststepsSuite createrconnectionStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini CreateConn1 |
|
46 RUN_TEST_STEP 3000 te_esockteststepsSuite openrconnectionStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini OpenConn1 |
|
47 RUN_TEST_STEP 3000 te_esockteststepsSuite startrconnectionStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini StartConn1 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 // open socket server |
|
53 RUN_TEST_STEP 100 TE_Esock OpenServer |
|
54 |
|
55 START_TESTCASE NET-Integration-Gprs-1601 |
|
56 //! @SYMTestCaseID NET-Integration-Gprs-1601 |
|
57 |
|
58 |
|
59 // open socket |
|
60 RUN_TEST_STEP 100 TE_Esock Test1.2 z:\testdata\configs\integration\itest_s3\itest.ini |
|
61 |
|
62 // use socket |
|
63 RUN_TEST_STEP 1000 TE_Esock SendData z:\testdata\configs\integration\itest_s3\ipv4.ini |
|
64 |
|
65 // close socket |
|
66 RUN_TEST_STEP 100 TE_Esock Test1.15 z:\testdata\configs\integration\itest_s3\itest.ini |
|
67 |
|
68 // close socket server |
|
69 RUN_TEST_STEP 100 TE_Esock CloseServer |
|
70 |
|
71 // close connection using gencon |
|
72 //run_test_step 3000 ts_genconn test2_1 |
|
73 //above results in calls to stopconnection, close connection, close socket serv |
|
74 RUN_TEST_STEP 3000 te_esockteststepsSuite stoprconnectionStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini StopConn1 |
|
75 RUN_TEST_STEP 3000 te_esockteststepsSuite closerconnectionStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini CloseConn1 |
|
76 RUN_TEST_STEP 3000 te_esockteststepsSuite closersocketservStep z:\testdata\configs\integration\itest_s3\te_teststeps.ini CloseSockSvr1 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 // Pause to allow connection to be closed by ts_genconn |
|
82 delay 5000 |
|
83 |
|
84 // check the network is NOT active |
|
85 RUN_TEST_STEP 100 te_esockutil TE_ESockUtilIsNetworkNotActive |
|
86 |
|
87 // delay here to allow certain phones to recover from Stop |
|
88 delay 30000 |
|
89 // log result |
|
90 PRINT Result for Integration test 3.17 - GPRS outgoing with Ipv4 and Client timeout |
|
91 |
|
92 TEST_COMPLETE GPRS_Test_3_17 |
|
93 |
|
94 END_TESTCASE NET-Integration-Gprs-1601 |
|
95 |