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