X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fcounters.robot;h=1fa4ca491cd0d3828cf0f31bb0b5191b506ecfc0;hp=45fe3531f63d63200c46f537868151e0c0a6ca86;hb=5db24a985316c70a707f2a11b30dd00f7a98dca7;hpb=03613f1079bf5b86a58dd061fe4dd232ae52c1ea diff --git a/resources/libraries/robot/counters.robot b/resources/libraries/robot/counters.robot index 45fe3531f6..1fa4ca491c 100644 --- a/resources/libraries/robot/counters.robot +++ b/resources/libraries/robot/counters.robot @@ -38,10 +38,55 @@ | | ${ipv4_counter}= | Vpp get ipv4 interface counter | ${node} | ${interface} | | Should Be Equal | ${ipv4_counter} | ${value} +| Show statistics on all DUTs +| | [Documentation] | Show VPP statistics on all DUTs after the test failed +| | Sleep | 10 | Waiting for statistics to be collected +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp show stats | ${nodes['${dut}']} + | Vpp show stats | | [Documentation] | Show [error, hardware, interface] stats | | [Arguments] | ${node} | | Vpp Dump Stats Table | ${node} -| | Vpp Show Errors Verbose | ${node} +| | Vpp Show Errors | ${node} | | Vpp Show Hardware Detail | ${node} -| | Vpp Show Runtime Verbose | ${node} +| | Vpp Show Runtime | ${node} + +| Clear all counters on all DUTs +| | [Documentation] | Clear runtime, interface, hardware and error counters +| | ... | on all DUTs with VPP instance +| | Clear runtime counters on all DUTs +| | Clear interface counters on all DUTs +| | Clear hardware counters on all DUTs +| | Clear errors counters on all DUTs + +| Clear runtime counters on all DUTs +| | [Documentation] | Clear VPP runtime counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear runtime | ${nodes['${dut}']} + +| Clear interface counters on all DUTs +| | [Documentation] | Clear VPP interface counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear interface counters | ${nodes['${dut}']} + +| Clear hardware counters on all DUTs +| | [Documentation] | Clear VPP hardware counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear hardware counters | ${nodes['${dut}']} + +| Clear errors counters on all DUTs +| | [Documentation] | Clear VPP errors counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear errors counters | ${nodes['${dut}']} + +| Show runtime counters on all DUTs +| | [Documentation] | Show VPP runtime counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp show runtime | ${nodes['${dut}']}