8 ${REST_VIEW_CHANNEL} /restconf/operations/usc-channel:view-channel
9 ${REST_ADD_CHANNEL} /restconf/operations/usc-channel:add-channel
10 ${REST_REMOVE_CHANNEL} /restconf/operations/usc-channel:remove-channel
11 ${REST_SEND_MESSAGE} /restconf/operations/usc-channel:send-message
12 ${NAV_USC_TOOLS} cd ~/usc-tools
13 ${CLONE_USC_TOOLS} [ -f ~/usc-tools/UscAgent.jar ] && echo "The usc-tools does exist. (17/17), done." || git clone https://github.com/victorxu99/usc-tools.git ~/usc-tools
14 ${USC_AGENT_IP} 192.168.56.51
15 ${ECHO_SERVER_PORT} 2007
16 @{LIST_ECHO_SERVER_PORT} 2007 2008 2009
17 ${TEST_MESSAGE} This is a test message.
18 ${NUM_OF_MESSAGES} 100
19 ${AgentTcp} java -jar UscAgent.jar -t true
20 ${AgentUdp} java -jar UscAgent.jar -t false
21 ${AgentTcpCallhome} java -jar UscAgent.jar -t true -c true -h 192.168.56.20
22 ${AgentUdpCallhome} java -jar UscAgent.jar -t false -c true -h 192.168.56.20
23 ${EchoServerTcp} java -jar EchoServer.jar -t true -p 2007
24 ${EchoServerUdp} java -jar EchoServer.jar -t false -p 2007
28 [Documentation] Download UscAgent and EchoServer before any system
30 Log Download tools begin ...
31 ${tools_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
32 Set Suite Variable ${tools_conn_id}
33 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
34 Write ${CLONE_USC_TOOLS}
35 Read Until (17/17), done.
36 Log Download tools ended.
38 Close Download Connection
39 [Documentation] Close Download Connection
40 Log Close Download Connection
41 Switch Connection ${tools_conn_id}
46 [Documentation] Basic setup/cleanup work that can be done safely before any system
48 Log Start USC test VM for TCP
49 ${agent_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
50 Set Suite Variable ${agent_conn_id}
51 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
52 Write ${NAV_USC_TOOLS}
55 ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
56 Set Suite Variable ${echo_conn_id}
57 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
58 Write ${NAV_USC_TOOLS}
59 Write ${EchoServerTcp}
60 Read Until initialized
63 [Documentation] Basic setup/cleanup work that can be done safely before any system
65 Log Start USC test VM for UDP
66 ${agent_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
67 Set Suite Variable ${agent_conn_id}
68 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
69 Write ${NAV_USC_TOOLS}
72 ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
73 Set Suite Variable ${echo_conn_id}
74 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
75 Write ${NAV_USC_TOOLS}
76 Write ${EchoServerUdp}
77 Read Until initialized
80 [Documentation] Basic setup/cleanup work that can be done safely before any system
82 Log Start USC test VM for CALLHOME_TCP
83 ${agent_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
84 Set Suite Variable ${agent_conn_id}
85 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
86 Write ${NAV_USC_TOOLS}
87 Write ${AgentTcpCallhome}
89 ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
90 Set Suite Variable ${echo_conn_id}
91 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
92 Write ${NAV_USC_TOOLS}
93 Write ${EchoServerTcp}
94 Read Until initialized
97 [Documentation] Basic setup/cleanup work that can be done safely before any system
99 Log Start USC test VM for CALLHOME_UDP
100 ${agent_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
101 Set Suite Variable ${agent_conn_id}
102 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
103 Write ${NAV_USC_TOOLS}
104 Write ${AgentUdpCallhome}
106 ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
107 Set Suite Variable ${echo_conn_id}
108 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
109 Write ${NAV_USC_TOOLS}
110 Write ${EchoServerUdp}
111 Read Until initialized
114 [Documentation] Basic setup/cleanup work that can be done safely before any system
116 Log Start USC test VM for Fallback_TCP
117 ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
118 Set Suite Variable ${echo_conn_id}
119 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
120 Write ${NAV_USC_TOOLS}
121 Write ${EchoServerTcp}
122 Read Until initialized
125 [Documentation] Basic setup/cleanup work that can be done safely before any system
127 Log Start USC test VM for Fallback_TCP
128 ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
129 Set Suite Variable ${echo_conn_id}
130 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
131 Write ${NAV_USC_TOOLS}
132 Write ${EchoServerUdp}
133 Read Until initialized
135 Start Multiple_Sessions_TCP
136 [Documentation] Basic setup/cleanup work that can be done safely before any system
138 Log Start USC test VM for Multiple_Sessions_TCP
139 ${agent_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
140 Set Suite Variable ${agent_conn_id}
141 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
142 Write ${NAV_USC_TOOLS}
146 : FOR ${port_index} IN @{LIST_ECHO_SERVER_PORT}
148 \ ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
149 \ Append To List ${L1} ${echo_conn_id}
150 \ Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
151 \ Write ${NAV_USC_TOOLS}
152 \ Write java -jar EchoServer.jar -t true -p ${port_index}
153 \ Read Until initialized
154 Set Suite Variable ${L1}
156 Start Multiple_Sessions_UDP
157 [Documentation] Basic setup/cleanup work that can be done safely before any system
159 Log Start USC test VM for Multiple_Sessions_UDP
160 ${agent_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
161 Set Suite Variable ${agent_conn_id}
162 Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
163 Write ${NAV_USC_TOOLS}
167 : FOR ${port_index} IN @{LIST_ECHO_SERVER_PORT}
169 \ ${echo_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} timeout=30s
170 \ Append To List ${L1} ${echo_conn_id}
171 \ Flexible Mininet Login user=${TOOLS_SYSTEM_USER} password=${TOOLS_SYSTEM_PASSWORD}
172 \ Write ${NAV_USC_TOOLS}
173 \ Write java -jar EchoServer.jar -t false -p ${port_index}
174 \ Read Until initialized
175 Set Suite Variable ${L1}
178 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
180 Log Stop USC test VM for Agent_Echo
181 Switch Connection ${agent_conn_id}
186 Switch Connection ${echo_conn_id}
193 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
195 Log Stop USC test VM for Echo
196 Switch Connection ${echo_conn_id}
202 Stop One_Agent_Multiple_Echo
203 [Documentation] Cleanup/Shutdown work that should be done at the completion of all
205 Log Stop USC test VM for One_Agent_Multiple_Echo
206 Switch Connection ${agent_conn_id}
211 : FOR ${echo_conn_id} IN @{L1}
212 \ Switch Connection ${echo_conn_id}