videoutils_plat/videoconnutility_api/tsrc/conf/VCXConnUtilTestMasterAndSlave.cfg
branchRCL_3
changeset 23 13a33d82ad98
parent 0 822a42b6c3f1
equal deleted inserted replaced
22:826cea16efd9 23:13a33d82ad98
       
     1 #***********************************************************************************
       
     2 #
       
     3 # STIF test script file for testing vcxconnectionutility.dll.
       
     4 #
       
     5 #***********************************************************************************
       
     6 
       
     7 [StifSettings]
       
     8 CapsModifier= IptvTestClientApiCapsMod.exe
       
     9 [EndStifSettings]
       
    10 
       
    11 [Define]
       
    12 INCLUDE c:\testframework\VCXConnUtilTest.inc
       
    13 INCLUDE c:\testframework\VCXDrives.inc
       
    14 INCLUDE c:\testframework\VCXConsts.inc
       
    15 INCLUDE c:\testframework\VCXErrors.inc
       
    16 [Enddefine]
       
    17 
       
    18 // NotAllowedProperty etc queued
       
    19 
       
    20 
       
    21 #************************************************************************************
       
    22 
       
    23 #------------------------------------------------------------------------------------
       
    24 #
       
    25 # Setup the environment.
       
    26 #
       
    27 #------------------------------------------------------------------------------------
       
    28 [Test]
       
    29 title ET31000 <not a test> Setup and cleanup
       
    30 create VCXTestUtilModule Util
       
    31 
       
    32 Util CopyMethod "Internet" "Internet" "Internet"
       
    33 // Disable connection dialog for "Internet" destination.
       
    34 Util SetConnectionMethodIntAttribute "Internet" "Internet" ECmSeamlessnessLevel 2
       
    35 
       
    36 allowerrorcodes KERRNOTFOUND
       
    37 Util DeleteDestination DEST_TEST
       
    38 allowerrorcodes KERRNOTFOUND
       
    39 Util DeleteDestination DEST_TEST2
       
    40 
       
    41 delete Util
       
    42 [Endtest]
       
    43 
       
    44 #------------------------------------------------------------------------------------
       
    45 #
       
    46 # Test CVcxConnUtility class.
       
    47 #
       
    48 #------------------------------------------------------------------------------------
       
    49 [Test]
       
    50 title ET31001 Master only
       
    51 create VCXTestUtilModule Util
       
    52 
       
    53 allowerrorcodes KERRNOTFOUND
       
    54 Util DeleteDestination DEST_TEST
       
    55 pause 1000
       
    56 Util CreateDestination DEST_TEST
       
    57 Util SetUsedDestination DEST_TEST
       
    58 Util DeleteDestinationAfterwards DEST_TEST
       
    59 Util CopyMethod 3G_AP AP1 DEST_TEST
       
    60 Util SetMethodPriority DEST_TEST AP1 0
       
    61 
       
    62 create VCXConnUtilTest CONNPS
       
    63 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
    64 
       
    65 create VCXConnUtilTest MASTER
       
    66 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
    67 MASTER GetIap DEST_TEST
       
    68 waittestclass MASTER
       
    69 
       
    70 Util WaitForConnectionActivity AP1
       
    71 waittestclass Util
       
    72 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
    73 CONNPS CheckProperty EVCxPSMasterExists 1
       
    74 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
    75 
       
    76 MASTER Disconnect
       
    77 waittestclass MASTER
       
    78 
       
    79 Util WaitUntilConnectionIsClosed AP1
       
    80 waittestclass Util
       
    81 
       
    82 delete MASTER
       
    83 
       
    84 CONNPS PrintConnUtilDetails
       
    85 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
    86 
       
    87 delete CONNPS
       
    88 pause 3000
       
    89 delete Util
       
    90 [Endtest]
       
    91 
       
    92 #------------------------------------------------------------------------------------
       
    93 #
       
    94 # Test CVcxConnUtility class.
       
    95 #
       
    96 #------------------------------------------------------------------------------------
       
    97 [Test]
       
    98 title ET31002 Master and slave - no disconnect
       
    99 create VCXTestUtilModule Util
       
   100 
       
   101 allowerrorcodes KERRNOTFOUND
       
   102 Util DeleteDestination DEST_TEST
       
   103 pause 1000
       
   104 Util CreateDestination DEST_TEST
       
   105 Util SetUsedDestination DEST_TEST
       
   106 Util DeleteDestinationAfterwards DEST_TEST
       
   107 Util CopyMethod 3G_AP AP1 DEST_TEST
       
   108 Util SetMethodPriority DEST_TEST AP1 0
       
   109 
       
   110 create VCXConnUtilTest CONNPS
       
   111 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
   112 
       
   113 create VCXConnUtilTest MASTER
       
   114 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
   115 MASTER GetIap DEST_TEST
       
   116 waittestclass MASTER
       
   117 
       
   118 Util WaitForConnectionActivity AP1
       
   119 waittestclass Util
       
   120 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   121 CONNPS CheckProperty EVCxPSMasterExists 1
       
   122 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   123 
       
   124 create VCXConnUtilTest SLAVE
       
   125 SLAVE Create "SLAVE" KVcxConnUtilTestModeConnectivity
       
   126 SLAVE GetIap DEST_TEST
       
   127 waittestclass SLAVE
       
   128 pause 2000
       
   129 CONNPS CheckProperty EVCxPSNbrConnInstances 2
       
   130 CONNPS CheckProperty EVCxPSMasterExists 1
       
   131 
       
   132 delete SLAVE
       
   133 
       
   134 delete MASTER
       
   135 
       
   136 Util WaitUntilConnectionIsClosed AP1
       
   137 waittestclass Util
       
   138 
       
   139 CONNPS PrintConnUtilDetails
       
   140 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   141 
       
   142 delete CONNPS
       
   143 pause 3000
       
   144 delete Util
       
   145 [Endtest]
       
   146 
       
   147 #------------------------------------------------------------------------------------
       
   148 #
       
   149 # Test CVcxConnUtility class.
       
   150 #
       
   151 #------------------------------------------------------------------------------------
       
   152 [Test]
       
   153 title ET31003 Master and two slaves - no disconnect
       
   154 create VCXTestUtilModule Util
       
   155 
       
   156 allowerrorcodes KERRNOTFOUND
       
   157 Util DeleteDestination DEST_TEST
       
   158 pause 1000
       
   159 Util CreateDestination DEST_TEST
       
   160 Util SetUsedDestination DEST_TEST
       
   161 Util DeleteDestinationAfterwards DEST_TEST
       
   162 Util CopyMethod 3G_AP AP1 DEST_TEST
       
   163 Util SetMethodPriority DEST_TEST AP1 0
       
   164 
       
   165 create VCXConnUtilTest CONNPS
       
   166 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
   167 
       
   168 create VCXConnUtilTest MASTER
       
   169 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
   170 MASTER GetIap DEST_TEST
       
   171 waittestclass MASTER
       
   172 
       
   173 Util WaitForConnectionActivity AP1
       
   174 waittestclass Util
       
   175 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   176 CONNPS CheckProperty EVCxPSMasterExists 1
       
   177 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   178 
       
   179 create VCXConnUtilTest SLAVE
       
   180 SLAVE Create "SLAVE" KVcxConnUtilTestModeConnectivity
       
   181 SLAVE GetIap DEST_TEST
       
   182 waittestclass SLAVE
       
   183 
       
   184 create VCXConnUtilTest SLAVE2
       
   185 SLAVE2 Create "SLAVE2" KVcxConnUtilTestModeConnectivity
       
   186 SLAVE2 GetIap DEST_TEST
       
   187 waittestclass SLAVE2
       
   188 pause 4000
       
   189 CONNPS CheckProperty EVCxPSNbrConnInstances 3
       
   190 CONNPS CheckProperty EVCxPSMasterExists 1
       
   191 
       
   192 delete SLAVE2
       
   193 
       
   194 pause 2000
       
   195 CONNPS CheckProperty EVCxPSNbrConnInstances 2
       
   196 delete SLAVE
       
   197 
       
   198 pause 2000
       
   199 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   200 
       
   201 delete MASTER
       
   202 pause 2000
       
   203 
       
   204 Util WaitUntilConnectionIsClosed AP1
       
   205 waittestclass Util
       
   206 
       
   207 CONNPS PrintConnUtilDetails
       
   208 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   209 
       
   210 delete CONNPS
       
   211 pause 3000
       
   212 delete Util
       
   213 [Endtest]
       
   214 
       
   215 #------------------------------------------------------------------------------------
       
   216 #
       
   217 # Test CVcxConnUtility class.
       
   218 #
       
   219 #------------------------------------------------------------------------------------
       
   220 [Test]
       
   221 title ET31004 Slave disconnect before master
       
   222 create VCXTestUtilModule Util
       
   223 
       
   224 allowerrorcodes KERRNOTFOUND
       
   225 Util DeleteDestination DEST_TEST
       
   226 pause 1000
       
   227 Util CreateDestination DEST_TEST
       
   228 Util SetUsedDestination DEST_TEST
       
   229 Util DeleteDestinationAfterwards DEST_TEST
       
   230 Util CopyMethod 3G_AP AP1 DEST_TEST
       
   231 Util SetMethodPriority DEST_TEST AP1 0
       
   232 
       
   233 create VCXConnUtilTest CONNPS
       
   234 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
   235 
       
   236 create VCXConnUtilTest MASTER
       
   237 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
   238 MASTER GetIap DEST_TEST
       
   239 waittestclass MASTER
       
   240 
       
   241 Util WaitForConnectionActivity AP1
       
   242 waittestclass Util
       
   243 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   244 CONNPS CheckProperty EVCxPSMasterExists 1
       
   245 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   246 
       
   247 create VCXConnUtilTest SLAVE
       
   248 SLAVE Create "SLAVE" KVcxConnUtilTestModeConnectivity
       
   249 SLAVE GetIap DEST_TEST
       
   250 waittestclass SLAVE
       
   251 SLAVE Disconnect
       
   252 waittestclass SLAVE
       
   253 pause 2000
       
   254 
       
   255 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   256 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   257 CONNPS CheckProperty EVCxPSMasterExists 1
       
   258 
       
   259 Util WaitForConnectionActivity AP1
       
   260 waittestclass Util
       
   261 
       
   262 MASTER Disconnect
       
   263 waittestclass MASTER
       
   264 
       
   265 Util WaitUntilConnectionIsClosed AP1
       
   266 waittestclass Util
       
   267 
       
   268 CONNPS CheckProperty EVCxPSConnectionStatus EVCxNotConnected
       
   269 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   270 CONNPS CheckProperty EVCxPSMasterExists 0
       
   271 
       
   272 delete SLAVE
       
   273 delete MASTER
       
   274 
       
   275 Util WaitUntilConnectionIsClosed AP1
       
   276 waittestclass Util
       
   277 CONNPS PrintConnUtilDetails
       
   278 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   279 
       
   280 delete CONNPS
       
   281 pause 3000
       
   282 delete Util
       
   283 [Endtest]
       
   284 
       
   285 #------------------------------------------------------------------------------------
       
   286 #
       
   287 # Test CVcxConnUtility class.
       
   288 #
       
   289 #------------------------------------------------------------------------------------
       
   290 [Test]
       
   291 title ET31005 Master disconnect before slave
       
   292 create VCXTestUtilModule Util
       
   293 
       
   294 allowerrorcodes KERRNOTFOUND
       
   295 Util DeleteDestination DEST_TEST
       
   296 pause 1000
       
   297 Util CreateDestination DEST_TEST
       
   298 Util SetUsedDestination DEST_TEST
       
   299 Util DeleteDestinationAfterwards DEST_TEST
       
   300 Util CopyMethod 3G_AP AP1 DEST_TEST
       
   301 Util SetMethodPriority DEST_TEST AP1 0
       
   302 
       
   303 // Create and connect master and slave
       
   304 
       
   305 create VCXConnUtilTest CONNPS
       
   306 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
   307 
       
   308 create VCXConnUtilTest MASTER
       
   309 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
   310 MASTER GetIap DEST_TEST
       
   311 waittestclass MASTER
       
   312 
       
   313 Util WaitForConnectionActivity AP1
       
   314 waittestclass Util
       
   315 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   316 CONNPS CheckProperty EVCxPSMasterExists 1
       
   317 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   318 
       
   319 create VCXConnUtilTest SLAVE
       
   320 SLAVE Create "SLAVE" KVcxConnUtilTestModeConnectivity
       
   321 SLAVE GetIap DEST_TEST
       
   322 waittestclass SLAVE
       
   323 
       
   324 MASTER Disconnect
       
   325 waittestclass MASTER
       
   326 
       
   327 Util WaitForConnectionActivity AP1
       
   328 waittestclass Util
       
   329 
       
   330 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   331 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   332 CONNPS CheckProperty EVCxPSMasterExists 1
       
   333 
       
   334 SLAVE Disconnect
       
   335 waittestclass SLAVE
       
   336 pause 2000
       
   337 
       
   338 Util WaitUntilConnectionIsClosed AP1
       
   339 waittestclass Util
       
   340 
       
   341 CONNPS CheckProperty EVCxPSConnectionStatus EVCxNotConnected
       
   342 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   343 CONNPS CheckProperty EVCxPSMasterExists 0
       
   344 
       
   345 delete SLAVE
       
   346 
       
   347 delete MASTER
       
   348 
       
   349 Util WaitUntilConnectionIsClosed AP1
       
   350 waittestclass Util
       
   351 CONNPS PrintConnUtilDetails
       
   352 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   353 
       
   354 delete CONNPS
       
   355 pause 3000
       
   356 delete Util
       
   357 [Endtest]
       
   358 
       
   359 #------------------------------------------------------------------------------------
       
   360 #
       
   361 # Test CVcxConnUtility class.
       
   362 #
       
   363 #------------------------------------------------------------------------------------
       
   364 [Test]
       
   365 title ET31006 Master and slave disconnect and connect again
       
   366 create VCXTestUtilModule Util
       
   367 
       
   368 allowerrorcodes KERRNOTFOUND
       
   369 Util DeleteDestination DEST_TEST
       
   370 pause 1000
       
   371 Util CreateDestination DEST_TEST
       
   372 Util SetUsedDestination DEST_TEST
       
   373 Util DeleteDestinationAfterwards DEST_TEST
       
   374 Util CopyMethod 3G_AP AP1 DEST_TEST
       
   375 Util SetMethodPriority DEST_TEST AP1 0
       
   376 
       
   377 // Create and connect master and slave
       
   378 
       
   379 create VCXConnUtilTest CONNPS
       
   380 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
   381 
       
   382 create VCXConnUtilTest MASTER
       
   383 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
   384 MASTER GetIap DEST_TEST
       
   385 waittestclass MASTER
       
   386 
       
   387 Util WaitForConnectionActivity AP1
       
   388 waittestclass Util
       
   389 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   390 CONNPS CheckProperty EVCxPSMasterExists 1
       
   391 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   392 
       
   393 create VCXConnUtilTest SLAVE
       
   394 SLAVE Create "SLAVE" KVcxConnUtilTestModeConnectivity
       
   395 SLAVE GetIap DEST_TEST
       
   396 waittestclass SLAVE
       
   397 
       
   398 // Disconnect both
       
   399 MASTER Disconnect
       
   400 waittestclass MASTER
       
   401 pause 2000
       
   402 Util WaitForConnectionActivity AP1
       
   403 waittestclass Util
       
   404 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   405 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   406 CONNPS CheckProperty EVCxPSMasterExists 1
       
   407 
       
   408 SLAVE Disconnect
       
   409 waittestclass SLAVE
       
   410 pause 2000
       
   411 
       
   412 Util WaitUntilConnectionIsClosed AP1
       
   413 waittestclass Util
       
   414 CONNPS CheckProperty EVCxPSConnectionStatus EVCxNotConnected
       
   415 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   416 CONNPS CheckProperty EVCxPSMasterExists 0
       
   417 
       
   418 // Connect again
       
   419 
       
   420 SLAVE GetIap DEST_TEST
       
   421 waittestclass SLAVE
       
   422 
       
   423 Util WaitForConnectionActivity AP1
       
   424 waittestclass Util
       
   425 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   426 CONNPS CheckProperty EVCxPSMasterExists 1
       
   427 CONNPS CheckProperty EVCxPSNbrConnInstances 1
       
   428 
       
   429 MASTER GetIap DEST_TEST
       
   430 waittestclass MASTER
       
   431 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   432 CONNPS CheckProperty EVCxPSMasterExists 1
       
   433 CONNPS CheckProperty EVCxPSNbrConnInstances 2
       
   434 
       
   435 delete SLAVE
       
   436 delete MASTER
       
   437 
       
   438 Util WaitUntilConnectionIsClosed AP1
       
   439 waittestclass Util
       
   440 CONNPS PrintConnUtilDetails
       
   441 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   442 
       
   443 delete CONNPS
       
   444 pause 3000
       
   445 delete Util
       
   446 [Endtest]
       
   447 
       
   448 #------------------------------------------------------------------------------------
       
   449 #
       
   450 # Test CVcxConnUtility class.
       
   451 #
       
   452 #------------------------------------------------------------------------------------
       
   453 [Test]
       
   454 title ET31007 No master, two instances connect same time.
       
   455 timeout 120000 // 2 minutes
       
   456 
       
   457 create VCXTestUtilModule Util
       
   458 
       
   459 allowerrorcodes KERRNOTFOUND
       
   460 Util DeleteDestination DEST_TEST
       
   461 pause 1000
       
   462 Util CreateDestination DEST_TEST
       
   463 Util SetUsedDestination DEST_TEST
       
   464 Util DeleteDestinationAfterwards DEST_TEST
       
   465 Util CopyMethod 3G_AP AP1 DEST_TEST
       
   466 Util SetMethodPriority DEST_TEST AP1 0
       
   467 
       
   468 create VCXConnUtilTest CONNPS
       
   469 CONNPS Create "PS" KVcxConnUtilTestModeSubscriber
       
   470 
       
   471 create VCXConnUtilTest MASTER
       
   472 MASTER Create "MASTER" KVcxConnUtilTestModeConnectivity
       
   473 
       
   474 create VCXConnUtilTest SLAVE
       
   475 SLAVE Create "SLAVE" KVcxConnUtilTestModeConnectivity
       
   476 
       
   477 // These two GetIap calls are timed to be executed at the same time
       
   478 MASTER GetIap DEST_TEST 1
       
   479 SLAVE GetIap DEST_TEST 1
       
   480 
       
   481 waittestclass SLAVE
       
   482 waittestclass MASTER
       
   483 
       
   484 Util WaitForConnectionActivity AP1
       
   485 waittestclass Util
       
   486 
       
   487 CONNPS CheckProperty EVCxPSConnectionStatus EVCxConnected
       
   488 CONNPS CheckProperty EVCxPSMasterExists 1
       
   489 CONNPS CheckProperty EVCxPSNbrConnInstances 2
       
   490 
       
   491 delete MASTER
       
   492 
       
   493 delete SLAVE
       
   494 
       
   495 Util WaitUntilConnectionIsClosed AP1
       
   496 waittestclass Util
       
   497 
       
   498 CONNPS PrintConnUtilDetails
       
   499 CONNPS CheckProperty EVCxPSNbrConnInstances 0
       
   500 
       
   501 delete CONNPS
       
   502 pause 3000
       
   503 delete Util
       
   504 [Endtest]