|
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 //! @file |
|
17 //! @SYMTestSuiteName NET-DND-PUNYCODECONVERTER-UNITTEST |
|
18 //! @SYMScriptTestEnvironment TEF |
|
19 |
|
20 PRINT TE_UNITTESTIDNA: Testing International Domain Name Resolution |
|
21 |
|
22 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
23 |
|
24 RUN_UTILS MkDir c:\private |
|
25 RUN_UTILS MkDir c:\private\10202be9 |
|
26 RUN_UTILS MkDir c:\private\10202be9\persists |
|
27 RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre |
|
28 |
|
29 //Configure commdb. |
|
30 //ced z:\testdata\configs\te_unittestidna.xml |
|
31 RUN_UTILS CopyFile z:\testdata\configs\cccccc00_unittestidna.cre c:\private\10202be9\persists\cccccc00.cre |
|
32 run_script z:\TestData\scripts\te_esock_test_loadesock.script |
|
33 |
|
34 LOAD_SUITE testidnserver -SharedData |
|
35 |
|
36 |
|
37 |
|
38 START_TESTCASE NET-DND-punycodeconverter-unittest01 |
|
39 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest01 |
|
40 //! @SYMTestCaseDesc PREQ2296 - REQ11948 |
|
41 //! Resolve International Domain Name. |
|
42 //! @SYMTestPriority Critical |
|
43 //! @SYMTestActions Load testidnserver test server. |
|
44 //! Test GetByName(IDN) without IDN Enabled |
|
45 //! @SYMTestExpectedResults Domain name resolved with KErrDndNameNotFound. |
|
46 //! @SYMTestType UT |
|
47 //! @SYMCreationDate 6/2/2009 |
|
48 //! @SYMAuthor ahamedrafik |
|
49 //! @SYMTestStatus 3. Released |
|
50 RUN_TEST_STEP testidnserver TestIdna01 |
|
51 END_TESTCASE NET-DND-punycodeconverter-unittest01 |
|
52 |
|
53 |
|
54 START_TESTCASE NET-DND-punycodeconverter-unittest02 |
|
55 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest02 |
|
56 //! @SYMTestCaseDesc PREQ2296 - REQ11948, REQ 12163 |
|
57 //! Resolve International Domain Name. |
|
58 //! @SYMTestPriority Critical |
|
59 //! @SYMTestActions Load testidnserver test server. |
|
60 //! Test GetByName(IDN) with IDN Enabled |
|
61 //! @SYMTestExpectedResults Domain name resolved successfully. |
|
62 //! @SYMTestType UT |
|
63 //! @SYMCreationDate 6/2/2009 |
|
64 //! @SYMAuthor ahamedrafik |
|
65 //! @SYMTestStatus 3. Released |
|
66 RUN_TEST_STEP testidnserver TestIdna02 |
|
67 END_TESTCASE NET-DND-punycodeconverter-unittest02 |
|
68 |
|
69 |
|
70 START_TESTCASE NET-DND-punycodeconverter-unittest03 |
|
71 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest03 |
|
72 //! @SYMTestCaseDesc PREQ2296 - REQ11948 |
|
73 //! Resolve Address for IDN. |
|
74 //! @SYMTestPriority Critical |
|
75 //! @SYMTestActions Load testidnserver test server. |
|
76 //! Test GetByAddress for an IDN without IDN Enabled |
|
77 //! @SYMTestExpectedResults Address resolved successfully. |
|
78 //! @SYMTestType UT |
|
79 //! @SYMCreationDate 6/2/2009 |
|
80 //! @SYMAuthor ahamedrafik |
|
81 //! @SYMTestStatus 3. Released |
|
82 RUN_TEST_STEP testidnserver TestIdna03 |
|
83 END_TESTCASE NET-DND-punycodeconverter-unittest03 |
|
84 |
|
85 |
|
86 START_TESTCASE NET-DND-punycodeconverter-unittest04 |
|
87 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest04 |
|
88 //! @SYMTestCaseDesc PREQ2296 - REQ11948, REQ 12163 |
|
89 //! Resolve Address for IDN. |
|
90 //! @SYMTestPriority Critical |
|
91 //! @SYMTestActions Load testidnserver test server. |
|
92 //! Test GetByAddress for an IDN with IDN Enabled |
|
93 //! @SYMTestExpectedResults Address resolved successfully. |
|
94 //! @SYMTestType UT |
|
95 //! @SYMCreationDate 6/2/2009 |
|
96 //! @SYMAuthor ahamedrafik |
|
97 //! @SYMTestStatus 3. Released |
|
98 RUN_TEST_STEP testidnserver TestIdna04 |
|
99 END_TESTCASE NET-DND-punycodeconverter-unittest04 |
|
100 |
|
101 |
|
102 START_TESTCASE NET-DND-punycodeconverter-unittest05 |
|
103 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest05 |
|
104 //! @SYMTestCaseDesc PREQ2296 - REQ12162 |
|
105 //! Resolve IDN in UTF16 encoding |
|
106 //! @SYMTestPriority Critical |
|
107 //! @SYMTestActions Load testidnserver test server. |
|
108 //! Test GetByName(IDN in UTF-16) without IDN Enabled |
|
109 //! @SYMTestExpectedResults Domain name resolved successfully. |
|
110 //! @SYMTestType UT |
|
111 //! @SYMCreationDate 6/2/2009 |
|
112 //! @SYMAuthor ahamedrafik |
|
113 //! @SYMTestStatus 3. Released |
|
114 RUN_TEST_STEP testidnserver TestIdna05 |
|
115 END_TESTCASE NET-DND-punycodeconverter-unittest05 |
|
116 |
|
117 |
|
118 START_TESTCASE NET-DND-punycodeconverter-unittest06 |
|
119 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest06 |
|
120 //! @SYMTestCaseDesc PREQ2296 - 11950 |
|
121 //! Convert UCS2.0 encoding to Punycode. |
|
122 //! @SYMTestPriority Critical |
|
123 //! @SYMTestActions Load testidnserver test server. |
|
124 //! Test IDN to Punycode Conversion functionality. |
|
125 //! @SYMTestExpectedResults Conversion done successfully. |
|
126 //! @SYMTestType UT |
|
127 //! @SYMCreationDate 6/2/2009 |
|
128 //! @SYMAuthor ahamedrafik |
|
129 //! @SYMTestStatus 3. Released |
|
130 RUN_TEST_STEP testidnserver TestIdna06 |
|
131 END_TESTCASE NET-DND-punycodeconverter-unittest06 |
|
132 |
|
133 |
|
134 START_TESTCASE NET-DND-punycodeconverter-unittest07 |
|
135 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest07 |
|
136 //! @SYMTestCaseDesc PREQ2296 - REQ11951 |
|
137 //! Convert punycode to UCS2.0 encoding. |
|
138 //! @SYMTestPriority Critical |
|
139 //! @SYMTestActions Load testidnserver test server. |
|
140 //! Test Punycode to IDN Conversion functionality. |
|
141 //! @SYMTestExpectedResults Domain name resolved successfully. |
|
142 //! @SYMTestType UT |
|
143 //! @SYMCreationDate 6/2/2009 |
|
144 //! @SYMAuthor ahamedrafik |
|
145 //! @SYMTestStatus 3. Released |
|
146 RUN_TEST_STEP testidnserver TestIdna07 |
|
147 END_TESTCASE NET-DND-punycodeconverter-unittest07 |
|
148 |
|
149 |
|
150 START_TESTCASE NET-DND-punycodeconverter-unittest08 |
|
151 //! @SYMTestCaseID NET-DND-punycodeconverter-unittest08 |
|
152 //! @SYMTestCaseDesc PREQ2296 - REQ11949 |
|
153 //! Load the New library. |
|
154 //! @SYMTestPriority Critical |
|
155 //! @SYMTestActions Load te_punycodeconverter test server |
|
156 //! Load the punycodeconverter library. |
|
157 //! @SYMTestExpectedResults Punycodeconverter library loaded succesfully. |
|
158 //! @SYMTestType UT |
|
159 //! @SYMCreationDate 6/2/2009 |
|
160 //! @SYMAuthor ahamedrafik |
|
161 //! @SYMTestStatus 3. Released |
|
162 RUN_TEST_STEP testidnserver TestIdna08 |
|
163 END_TESTCASE NET-DND-punycodeconverter-unittest08 |
|
164 |
|
165 RUN_SCRIPT z:\TestData\scripts\te_esock_test_stopallinterfaces.script |
|
166 RUN_SCRIPT z:\testdata\scripts\te_esock_test_unloadesockForced.script |
|
167 |