CSIT-1071 Add traffic evaluation criteria to MRR
[csit.git] / resources / libraries / robot / performance / performance_utils.robot
index 1de57b9..771e748 100644 (file)
 | | ...
 | | ... | *Example:*
 | | ...
-| | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
+| | ... | \| Traffic should pass with maximum rate \| 10 \| 4.0mpps \| 64 \
 | | ... | \| 3-node-IPv4 \|
 | | ...
 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
+| | ... | ${fail_no_traffic}=${True}
 | | ...
 | | ${results}= | Send traffic at specified rate | ${duration} | ${rate}
 | | ... | ${framesize} | ${topology_type}
 | | Display raw results | ${framesize} | ${results}
+| | Run Keyword If | ${fail_no_traffic} | Fail if no traffic forwarded
 
 | Send traffic at specified rate
 | | [Documentation]