Long perf tests
[csit.git] / resources / libraries / robot / default.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
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 | Variables | resources/libraries/python/topology.py
16 | Library | resources/libraries/python/DUTSetup.py
17 | Library | resources/libraries/python/TGSetup.py
18 | Library | Collections
19
20 *** Keywords ***
21 | Setup all DUTs before test
22 | | [Documentation] | Setup all DUTs in topology before test execution
23 | | Setup All DUTs | ${nodes}
24
25 | Setup all TGs before traffic script
26 | | [Documentation] | Prepare all TGs before traffic scripts execution
27 | | All TGs Set Interface Default Driver | ${nodes}
28
29 | Show statistics on all DUTs
30 | | [Documentation] | Show VPP statistics on all DUTs after the test failed
31 | | Sleep | 10 | Waiting for statistics to be collected
32 | | ${duts}= | Get Matches | ${nodes} | DUT*
33 | | :FOR | ${dut} | IN | @{duts}
34 | | | Vpp show stats | ${nodes['${dut}']}