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 |
|
18 PRINT Integration test 5.17 - IR CSD outgoing with Ipv4 and Client timeout |
|
19 |
|
20 LOAD_SUITE TE_Esock |
|
21 LOAD_SUITE te_esockutil |
|
22 LOAD_SUITE te_esockteststepsSuite -SharedData |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
28 //tried csd-ir.xml - '-i' causes test tool problems, tried csd_ir.xml and tests fail |
|
29 //CED z:\testdata\configs\te_esock.xml |
|
30 RUN_UTILS MkDir c:\private |
|
31 RUN_UTILS MkDir c:\private\10202be9 |
|
32 RUN_UTILS MkDir c:\private\10202be9\persists |
|
33 RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre |
|
34 RUN_UTILS CopyFile z:\testdata\configs\cccccc00_itest5.cre c:\private\10202be9\persists\cccccc00.cre |
|
35 |
|
36 |
|
37 START_TESTCASE NET-Integration-IrCsd-1901 |
|
38 //! @SYMTestCaseID NET-Integration-IrCsd-1901 |
|
39 |
|
40 |
|
41 // open connection using gencon |
|
42 //run_test_step 3000 ts_genconn test1_1 z:\testdata\configs\integration\itest_s5\genconn.ini |
|
43 //original genconn.ini says to leave connected after opening. |
|
44 //above call results in OpenSocketServ, OpenConnection, StartConnection which are all provided by |
|
45 //TE_EsockTestSteps |
|
46 RUN_TEST_STEP 3000 te_esockteststepsSuite creatersocketservStep z:\testdata\configs\integration\itest_s5\te_teststeps.ini CreateSockSvr1 |
|
47 RUN_TEST_STEP 3000 te_esockteststepsSuite connectrsocketservStep z:\testdata\configs\integration\itest_s5\te_teststeps.ini ConnectSockSvr1 |
|
48 RUN_TEST_STEP 3000 te_esockteststepsSuite createrconnectionStep z:\testdata\configs\integration\itest_s5\te_teststeps.ini CreateConn1 |
|
49 RUN_TEST_STEP 3000 te_esockteststepsSuite openrconnectionStep z:\testdata\configs\integration\itest_s5\te_teststeps.ini OpenConn1 |
|
50 RUN_TEST_STEP 3000 te_esockteststepsSuite startrconnectionStep z:\testdata\configs\integration\itest_s5\te_teststeps.ini StartConn1 |
|
51 |
|
52 END_TESTCASE NET-Integration-IrCsd-1901 |
|
53 |
|
54 |
|
55 // open socket server |
|
56 RUN_TEST_STEP 100 TE_Esock OpenServer |
|
57 |
|
58 START_TESTCASE NET-Integration-IrCsd-1902 |
|
59 //! @SYMTestCaseID NET-Integration-IrCsd-1902 |
|
60 |
|
61 // open socket |
|
62 RUN_TEST_STEP 100 TE_Esock Test1.2 z:\testdata\configs\integration\itest_s5\itest.ini |
|
63 |
|
64 // use socket |
|
65 RUN_TEST_STEP 1000 TE_Esock SendData z:\testdata\configs\integration\itest_s5\ipv4.ini |
|
66 |
|
67 // close socket |
|
68 RUN_TEST_STEP 100 TE_Esock Test1.15 z:\testdata\configs\integration\itest_s5\itest.ini |
|
69 |
|
70 // close socket server |
|
71 RUN_TEST_STEP 100 TE_Esock CloseServer |
|
72 |
|
73 // wait for more than Commdb AgentClientTimeout |
|
74 print wait for more than Commdb AgentClientTimeout |
|
75 run_test_step -1 te_esockutil TE_ESockUtilDelay z:\testdata\configs\integration\itest_s5\client_timeout.ini |
|
76 |
|
77 |
|
78 // check the network is NOT active |
|
79 RUN_TEST_STEP 100 te_esockutil TE_ESockUtilIsNetworkNotActive |
|
80 |
|
81 |
|
82 // log result |
|
83 PRINT Result for Integration test 5.17 - IR CSD outgoing with Ipv4 and Client timeout |
|
84 TEST_COMPLETE IR_CSD_test5_17 |
|
85 |
|
86 END_TESTCASE NET-Integration-IrCsd-1902 |
|
87 |
|