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: Santosh K Patil |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 //! @file |
|
17 //! @SYMTestSuiteName |
|
18 //! @SYMScriptTestEnvironment TestExecuteFramework |
|
19 // |
|
20 |
|
21 |
|
22 //Unload esock forcefully |
|
23 //RUN_SCRIPT z:\testdata\scripts\te_esock_test_unloadesockForced.script |
|
24 |
|
25 //Configure commdb. |
|
26 ced -i z:\testdata\configs\te_dnssuffixced.xml |
|
27 |
|
28 RUN_SCRIPT z:\testdata\scripts\te_esock_test_loadesock.script |
|
29 |
|
30 //Load the Server |
|
31 LOAD_SERVER te_dnssuffix |
|
32 |
|
33 |
|
34 START_TESTCASE DNS-dnssuffix-test0a |
|
35 //! @SYMTestCaseID DNS-dnssuffix_test0a |
|
36 //! @SYMTestCaseDesc REQ No. |
|
37 //! Initialize the environment. |
|
38 //! Required to configure the name servers on at lease one interface. |
|
39 //! @SYMTestPriority Critical |
|
40 //! @SYMTestActions Load te_dnssuffix test server |
|
41 //! Do ced |
|
42 //! Start RConnection and close. |
|
43 //! @SYMTestExpectedResults Connection started and stopped successfully. |
|
44 //! @SYMTestType CIT |
|
45 //! @SYMCreationDate 1/3/2010 |
|
46 //! @SYMAuthor Santosh K Patil |
|
47 //! @SYMTestStatus 3. Released |
|
48 |
|
49 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
50 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test000a |
|
51 COMMAND dnssuffix_test000a InitDNSSuffixTesting dnssuffix_first_interface |
|
52 END_TEST_BLOCK |
|
53 |
|
54 END_TESTCASE DNS-dnssuffix-test0a |
|
55 |
|
56 |
|
57 START_TESTCASE DNS-dnssuffix-test0b |
|
58 //! @SYMTestCaseID DNS-dnssuffix_test0b |
|
59 //! @SYMTestCaseDesc REQ No. |
|
60 //! Open socket and close. |
|
61 //! @SYMTestPriority Critical |
|
62 //! @SYMTestActions Load te_dnssuffix test server |
|
63 //! Open the socket and enumerate the available interfaces. |
|
64 //! @SYMTestExpectedResults Socket opened successfully |
|
65 //! Shows the list of available interfaces. |
|
66 //! @SYMTestType CIT |
|
67 //! @SYMCreationDate 1/3/2010 |
|
68 //! @SYMAuthor Santosh K Patil |
|
69 //! @SYMTestStatus 3. Released |
|
70 |
|
71 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
72 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test000b |
|
73 COMMAND dnssuffix_test000b EnumerateInterface |
|
74 END_TEST_BLOCK |
|
75 |
|
76 END_TESTCASE DNS-dnssuffix-test0b |
|
77 |
|
78 |
|
79 START_TESTCASE DNS-dnssuffix-test1 |
|
80 //! @SYMTestCaseID DNS-dnssuffix_test1 |
|
81 //! @SYMTestCaseDesc REQ No. |
|
82 //! Open socket and close. |
|
83 //! @SYMTestPriority Critical |
|
84 //! @SYMTestActions Load te_dnssuffix test server |
|
85 //! Open the socket and enumerate the available interfaces. |
|
86 //! Set the suffix list on the inteface which has the corresponding name server. |
|
87 //! Get the suffix list of each interfaces. |
|
88 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
89 //! @SYMTestType CIT |
|
90 //! @SYMCreationDate 1/3/2010 |
|
91 //! @SYMAuthor Santosh K Patil |
|
92 //! @SYMTestStatus 3. Released |
|
93 |
|
94 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
95 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test001 |
|
96 COMMAND dnssuffix_test001 SetAndGetSuffixList |
|
97 END_TEST_BLOCK |
|
98 |
|
99 END_TESTCASE DNS-dnssuffix-test1 |
|
100 |
|
101 |
|
102 START_TESTCASE DNS-dnssuffix-test2 |
|
103 //! @SYMTestCaseID DNS-dnssuffix_test2 |
|
104 //! @SYMTestCaseDesc REQ No. |
|
105 //! Open socket and close. |
|
106 //! @SYMTestPriority Critical |
|
107 //! @SYMTestActions Load te_dnssuffix test server |
|
108 //! Open the socket and enumerate the available interfaces. |
|
109 //! Set the suffix list on the inteface which has the corresponding name server. |
|
110 //! Get the suffix list of each interfaces. |
|
111 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
112 //! @SYMTestType CIT |
|
113 //! @SYMCreationDate 1/3/2010 |
|
114 //! @SYMAuthor Santosh K Patil |
|
115 //! @SYMTestStatus 3. Released |
|
116 |
|
117 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
118 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test002 |
|
119 COMMAND dnssuffix_test002 DoResolve |
|
120 END_TEST_BLOCK |
|
121 |
|
122 END_TESTCASE DNS-dnssuffix-test2 |
|
123 |
|
124 |
|
125 START_TESTCASE DNS-dnssuffix-test3 |
|
126 //! @SYMTestCaseID DNS-dnssuffix_test3 |
|
127 //! @SYMTestCaseDesc REQ No. |
|
128 //! Open socket and close. |
|
129 //! @SYMTestPriority Critical |
|
130 //! @SYMTestActions Load te_dnssuffix test server |
|
131 //! Open the socket and enumerate the available interfaces. |
|
132 //! Set the suffix list on the inteface which has the corresponding name server. |
|
133 //! Get the suffix list of each interfaces. |
|
134 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
135 //! @SYMTestType CIT |
|
136 //! @SYMCreationDate 1/3/2010 |
|
137 //! @SYMAuthor Santosh K Patil |
|
138 //! @SYMTestStatus 3. Released |
|
139 |
|
140 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
141 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test003 |
|
142 COMMAND dnssuffix_test003 DoResolveHostWithoutDomainWithSuffix |
|
143 END_TEST_BLOCK |
|
144 |
|
145 END_TESTCASE DNS-dnssuffix-test3 |
|
146 |
|
147 |
|
148 START_TESTCASE DNS-dnssuffix-test4 |
|
149 //! @SYMTestCaseID DNS-dnssuffix_test4 |
|
150 //! @SYMTestCaseDesc REQ No. |
|
151 //! Open socket and close. |
|
152 //! @SYMTestPriority Critical |
|
153 //! @SYMTestActions Load te_dnssuffix test server |
|
154 //! Open the socket and enumerate the available interfaces. |
|
155 //! Set the suffix list on the inteface which has the corresponding name server. |
|
156 //! Get the suffix list of each interfaces. |
|
157 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
158 //! @SYMTestType CIT |
|
159 //! @SYMCreationDate 1/3/2010 |
|
160 //! @SYMAuthor Santosh K Patil |
|
161 //! @SYMTestStatus 3. Released |
|
162 |
|
163 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
164 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test004 |
|
165 COMMAND dnssuffix_test004 DoResolveHostWithoutDomainWithoutSuffix |
|
166 END_TEST_BLOCK |
|
167 |
|
168 END_TESTCASE DNS-dnssuffix-test4 |
|
169 |
|
170 |
|
171 START_TESTCASE DNS-dnssuffix-test5 |
|
172 //! @SYMTestCaseID DNS-dnssuffix_test5 |
|
173 //! @SYMTestCaseDesc REQ No. |
|
174 //! Open socket and close. |
|
175 //! @SYMTestPriority Critical |
|
176 //! @SYMTestActions Load te_dnssuffix test server |
|
177 //! Open the socket and enumerate the available interfaces. |
|
178 //! Set the suffix list on the inteface which has the corresponding name server. |
|
179 //! Get the suffix list of each interfaces. |
|
180 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
181 //! @SYMTestType CIT |
|
182 //! @SYMCreationDate 1/3/2010 |
|
183 //! @SYMAuthor Santosh K Patil |
|
184 //! @SYMTestStatus 3. Released |
|
185 |
|
186 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
187 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test005 |
|
188 COMMAND dnssuffix_test005 DNSSuffixSupportTC005 |
|
189 END_TEST_BLOCK |
|
190 |
|
191 END_TESTCASE DNS-dnssuffix-test5 |
|
192 |
|
193 |
|
194 START_TESTCASE DNS-dnssuffix-test6 |
|
195 //! @SYMTestCaseID DNS-dnssuffix_test6 |
|
196 //! @SYMTestCaseDesc REQ No. |
|
197 //! Open socket and close. |
|
198 //! @SYMTestPriority Critical |
|
199 //! @SYMTestActions Load te_dnssuffix test server |
|
200 //! Open the socket and enumerate the available interfaces. |
|
201 //! Set the suffix list on the inteface which has the corresponding name server. |
|
202 //! Get the suffix list of each interfaces. |
|
203 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
204 //! @SYMTestType CIT |
|
205 //! @SYMCreationDate 1/3/2010 |
|
206 //! @SYMAuthor Santosh K Patil |
|
207 //! @SYMTestStatus 3. Released |
|
208 |
|
209 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
210 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test006 |
|
211 COMMAND dnssuffix_test006 DNSSuffixSupportTC006 |
|
212 END_TEST_BLOCK |
|
213 |
|
214 END_TESTCASE DNS-dnssuffix-test6 |
|
215 |
|
216 |
|
217 //Configure commdb. |
|
218 ced -i z:\testdata\configs\te_dnssuffixcedv2.xml |
|
219 |
|
220 START_TESTCASE DNS-dnssuffix-test7 |
|
221 //! @SYMTestCaseID DNS-dnssuffix_test7 |
|
222 //! @SYMTestCaseDesc REQ No. |
|
223 //! Open socket and close. |
|
224 //! @SYMTestPriority Critical |
|
225 //! @SYMTestActions Load te_dnssuffix test server |
|
226 //! Open the socket and enumerate the available interfaces. |
|
227 //! Set the suffix list on the inteface which has the corresponding name server. |
|
228 //! Get the suffix list of each interfaces. |
|
229 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
230 //! @SYMTestType CIT |
|
231 //! @SYMCreationDate 1/3/2010 |
|
232 //! @SYMAuthor Santosh K Patil |
|
233 //! @SYMTestStatus 3. Released |
|
234 |
|
235 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
236 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test007 |
|
237 COMMAND dnssuffix_test007 DNSSuffixSupportTC007 |
|
238 END_TEST_BLOCK |
|
239 |
|
240 END_TESTCASE DNS-dnssuffix-test7 |
|
241 |
|
242 |
|
243 START_TESTCASE DNS-dnssuffix-test8 |
|
244 //! @SYMTestCaseID DNS-dnssuffix_test8 |
|
245 //! @SYMTestCaseDesc REQ No. |
|
246 //! Open socket and close. |
|
247 //! @SYMTestPriority Critical |
|
248 //! @SYMTestActions Load te_dnssuffix test server |
|
249 //! Open the socket and enumerate the available interfaces. |
|
250 //! Set the suffix list on the inteface which has the corresponding name server. |
|
251 //! Get the suffix list of each interfaces. |
|
252 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
253 //! @SYMTestType CIT |
|
254 //! @SYMCreationDate 1/3/2010 |
|
255 //! @SYMAuthor Santosh K Patil |
|
256 //! @SYMTestStatus 3. Released |
|
257 |
|
258 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
259 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test008 |
|
260 COMMAND dnssuffix_test008 DNSSuffixSupportTC008 |
|
261 END_TEST_BLOCK |
|
262 |
|
263 END_TESTCASE DNS-dnssuffix-test8 |
|
264 |
|
265 |
|
266 START_TESTCASE DNS-dnssuffix-test9 |
|
267 //! @SYMTestCaseID DNS-dnssuffix_test9 |
|
268 //! @SYMTestCaseDesc REQ No. |
|
269 //! Open socket and close. |
|
270 //! @SYMTestPriority Critical |
|
271 //! @SYMTestActions Load te_dnssuffix test server |
|
272 //! Open the socket and enumerate the available interfaces. |
|
273 //! Set the suffix list on the inteface which has the corresponding name server. |
|
274 //! Get the suffix list of each interfaces. |
|
275 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
276 //! @SYMTestType CIT |
|
277 //! @SYMCreationDate 1/3/2010 |
|
278 //! @SYMAuthor Santosh K Patil |
|
279 //! @SYMTestStatus 3. Released |
|
280 |
|
281 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
282 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test009 |
|
283 COMMAND dnssuffix_test009 DNSSuffixSupportTC009 |
|
284 END_TEST_BLOCK |
|
285 |
|
286 END_TESTCASE DNS-dnssuffix-test9 |
|
287 |
|
288 |
|
289 START_TESTCASE DNS-dnssuffix-test10 |
|
290 //! @SYMTestCaseID DNS-dnssuffix_test10 |
|
291 //! @SYMTestCaseDesc REQ No. |
|
292 //! Open socket and close. |
|
293 //! @SYMTestPriority Critical |
|
294 //! @SYMTestActions Load te_dnssuffix test server |
|
295 //! Open the socket and enumerate the available interfaces. |
|
296 //! Set the suffix list on the inteface which has the corresponding name server. |
|
297 //! Get the suffix list of each interfaces. |
|
298 //! @SYMTestExpectedResults Setting and getting suffix list successfully. |
|
299 //! @SYMTestType CIT |
|
300 //! @SYMCreationDate 1/3/2010 |
|
301 //! @SYMAuthor Santosh K Patil |
|
302 //! @SYMTestStatus 3. Released |
|
303 |
|
304 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
305 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test010 |
|
306 COMMAND dnssuffix_test010 DNSSuffixSupportTC010 |
|
307 END_TEST_BLOCK |
|
308 |
|
309 END_TESTCASE DNS-dnssuffix-test10 |
|
310 |
|
311 //Configure commdb. |
|
312 ced -i z:\testdata\configs\te_dnssuffixced.xml |
|
313 |
|
314 START_TESTCASE DNS-dnssuffix-test11 |
|
315 //! @SYMTestCaseID DNS-dnssuffix_test11 |
|
316 //! @SYMTestCaseDesc REQ No. |
|
317 //! Open socket and close. |
|
318 //! @SYMTestPriority Critical |
|
319 //! @SYMTestActions Make vTun as default interface |
|
320 //! Set suffix on ethernet |
|
321 //! Open implicit resolver (assumed that it is opened on vTun) |
|
322 //! Request for name resolution (Async one) |
|
323 //! Stop the connection and observe the behaviour. |
|
324 //! |
|
325 //! @SYMTestExpectedResults Host resolution should fail gracefully with appropriate error code. |
|
326 //! @SYMTestType CIT |
|
327 //! @SYMCreationDate 1/3/2010 |
|
328 //! @SYMAuthor Santosh K Patil |
|
329 //! @SYMTestStatus 3. Released |
|
330 |
|
331 START_TEST_BLOCK te_dnssuffix 100 z:\testdata\configs\te_dnssuffix.ini |
|
332 CREATE_OBJECT DNSSuffixTestWrapper dnssuffix_test011 |
|
333 COMMAND dnssuffix_test011 DNSSuffixSupportTC011 |
|
334 END_TEST_BLOCK |
|
335 |
|
336 END_TESTCASE DNS-dnssuffix-test11 |
|
337 |
|
338 |
|
339 //RUN_SCRIPT z:\TestData\scripts\te_esock_test_stopallinterfaces.script |
|
340 //RUN_SCRIPT z:\testdata\scripts\te_esock_test_unloadesockForced.script |
|
341 |
|