fbe651dbfae03b5c1f8ba07958f7657c22c27735
[csit.git] / tests / dmm / func / SingleCliSer-func.robot
1 # Copyright (c) 2018 Huawei Technologies Co.,Ltd.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.NodePath
16 | Library | resources.libraries.python.Trace
17 | Library | resources.libraries.python.TrafficScriptExecutor
18 | Library | resources.libraries.python.DMM.SingleCliSer
19 | Resource | resources/libraries/robot/shared/default.robot
20 | Resource | resources/libraries/robot/shared/interfaces.robot
21 | Resource | resources/libraries/robot/shared/counters.robot
22 | Resource | resources/libraries/robot/dmm/dmm_utils.robot
23 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | VM_ENV | FUNCTEST | DMM
24 | Documentation | *DMM vs epoll test suite.*
25 | ...
26 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG with single link
27 | ... | between nodes. From this topology only DUT1 and DUT2 nodes are used.
28 | ... | here we test the 1. test the vs_epool and vc_epoll
29
30 *** Test Cases ***
31 | TC01: DMM base vs epoll test case
32 | | Given Path for 2-node testing is set | ${nodes['DUT1']} | ${nodes['DUT2']}
33 | | And Pick out the port used to execute test
34 | | When Exec the base vs epoll test | ${dut1_node} | ${dut2_node}
35 | | Echo DMM logs | ${dut2_node}
36 | | ${no_packet_loss} = | Get the test result | ${dut2_node}
37 | | Then Should Not Be Equal As Integers | ${no_packet_loss} | 0