testexecmgmt/ucc/SampleScripts/script.0005.ucd
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 #
       
     2 # Copyright (c) 2005-2009 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 #
       
    19 # USE-CASE-5 : Establish a PPP session and connect to a remote chargen server from
       
    20 #			   the wins emulator.
       
    21 #
       
    22 #######################################################################################
       
    23 
       
    24 #######################################################################################
       
    25 #
       
    26 # Start the services
       
    27 #
       
    28 #######################################################################################
       
    29 runcmd svcid=5 svchost="penmn"		methodid=1 PORT=7000
       
    30 	check RESULT=0
       
    31 runcmd svcid=5 svchost="penpdsn"	methodid=1 PORT=7000
       
    32 	check RESULT=0
       
    33 runcmd svcid=7 svchost="penpdsn"	methodid=1
       
    34 	check RESULT=0
       
    35 
       
    36 
       
    37 #######################################################################################
       
    38 #
       
    39 # Create two MTs and make them talk to each other
       
    40 #
       
    41 #######################################################################################
       
    42 runcmd svcid=5 svchost="penmn" methodid=3 DATALINKCONFIG=1 FILTERCONFIG=0
       
    43 	assign dev0=RESULT
       
    44 runcmd svcid=5 svchost="penpdsn" methodid=3 DATALINKCONFIG=1 FILTERCONFIG=0
       
    45 	assign dev1=RESULT
       
    46 runcmd svcid=9 svchost="localhost" methodid=1 PERIOD=2000
       
    47 
       
    48 runcmd svcid=5 svchost="penmn" methodid=4 DEVICEID=dev0
       
    49 	assign local_uu_port0=AIR_INPORT
       
    50 runcmd svcid=5 svchost="penpdsn" methodid=4 DEVICEID=dev1
       
    51 	assign local_uu_port1=AIR_INPORT
       
    52 
       
    53 runcmd svcid=5 svchost="penmn"		methodid=10 DEVICEID=dev0	REMOTE_ADDRESS="penpdsn"	REMOTE_PORT=local_uu_port1
       
    54 runcmd svcid=5 svchost="penpdsn"	methodid=10 DEVICEID=dev1	REMOTE_ADDRESS="penmn"		REMOTE_PORT=local_uu_port0
       
    55 
       
    56 
       
    57 #######################################################################################
       
    58 #
       
    59 # Create a single PPP sessions and wait for the SymbianOS device to connect
       
    60 #
       
    61 #######################################################################################
       
    62 runcmd svcid=7 svchost="penpdsn"	methodid=31 MADDR="localhost" MPORT=7000 MTID=dev1 CONFIG="noauth 192.168.200.20:192.168.200.10 debug nodetach"
       
    63 	assign sid1=RESULT
       
    64 
       
    65 
       
    66 #######################################################################################
       
    67 #
       
    68 # Signal the device that the network is setup and wait for a signal that the test
       
    69 # has completed
       
    70 #
       
    71 #######################################################################################
       
    72 assign DEVICEID=dev0
       
    73 assign COMMDB_ISP_INDEX=2
       
    74 signal
       
    75 waitforsignal
       
    76 
       
    77 
       
    78 #######################################################################################
       
    79 #
       
    80 # Stop the PPP session
       
    81 #
       
    82 #######################################################################################
       
    83 runcmd svcid=7 svchost="penpdsn" methodid=6 SID=sid1
       
    84 	check RESULT=0
       
    85 runcmd svcid=7 svchost="penpdsn" methodid=8 SID=sid1
       
    86 runcmd svcid=7 svchost="penpdsn" methodid=32 SID=sid1
       
    87 	check RESULT=0
       
    88 
       
    89 
       
    90 #######################################################################################
       
    91 #
       
    92 # Remove the mobster devices (they should already have stopped)
       
    93 #
       
    94 #######################################################################################
       
    95 runcmd svcid=5  svchost="penmn"	methodid=6 DEVICEID=dev0
       
    96 	check RESULT=0
       
    97 runcmd svcid=5  svchost="penmn"	methodid=7 DEVICEID=dev0
       
    98 	check RESULT=0
       
    99 runcmd svcid=5  svchost="penpdsn"	methodid=6 DEVICEID=dev1
       
   100 	check RESULT=0
       
   101 runcmd svcid=5  svchost="penpdsn"	methodid=7 DEVICEID=dev1
       
   102 	check RESULT=0
       
   103 
       
   104 
       
   105 #######################################################################################
       
   106 #
       
   107 # Stop all the services
       
   108 #
       
   109 #######################################################################################
       
   110 runcmd svcid=5 svchost="penmn"		methodid=2 FORCE=0
       
   111 	check RESULT=0
       
   112 runcmd svcid=7 svchost="penpdsn"	methodid=2 FORCE=0
       
   113 	check RESULT=0
       
   114 runcmd svcid=5 svchost="penpdsn"	methodid=2 FORCE=0
       
   115 	check RESULT=0
       
   116 
       
   117 
       
   118 #######################################################################################
       
   119 #
       
   120 # Done
       
   121 #
       
   122 #######################################################################################
       
   123 rendezvous