X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance%2Fperformance_utils.robot;h=771e7486cb842deaa6f4f3af25d15c7155e2cb17;hb=6e9d38fbad8198f8647e3e71d12b5859490c21f2;hp=38151cf003e86b6a4a5277d02bceab13d47ef4e5;hpb=35175924550d67f98fb1c2c50b0634656d29169e;p=csit.git diff --git a/resources/libraries/robot/performance/performance_utils.robot b/resources/libraries/robot/performance/performance_utils.robot index 38151cf003..771e7486cb 100644 --- a/resources/libraries/robot/performance/performance_utils.robot +++ b/resources/libraries/robot/performance/performance_utils.robot @@ -425,10 +425,8 @@ | | [Arguments] | ${text} | ${rate_total} | ${framesize} | ${latency}=${EMPTY} | | ... | | ${bandwidth_total}= | Evaluate | ${rate_total}*(${framesize}+20)*8/(10**9) -| | Set Test Message | ${\n}${text} | append=yes -| | Set Test Message | ${\n}RATE: ${rate_total} pps | append=yes -| | Set Test Message | ${\n}BANDWIDTH: ${bandwidth_total} Gbps (untagged) -| | ... | append=yes +| | Set Test Message | ${\n}${text}: ${rate_total} pps, | append=yes +| | Set Test Message | ${bandwidth_total} Gbps (untagged) | append=yes | | Return From Keyword If | not """${latency}""" | | Set Test Message | ${\n}LATENCY usec [min/avg/max] per stream: ${latency} | | ... | append=yes @@ -455,16 +453,15 @@ | | [Arguments] | ${result} | ${framesize} | | ... | | ${framesize}= | Get Frame Size | ${framesize} -| | Set Test Message | NDR+PDR search results: -| | Display single bound | NDR lower bound +| | Display single bound | NDR_LOWER | | ... | ${result.ndr_interval.measured_low.transmit_rate} | ${framesize} | | ... | ${result.ndr_interval.measured_low.latency} -| | Display single bound | NDR upper bound +| | Display single bound | NDR_UPPER | | ... | ${result.ndr_interval.measured_high.transmit_rate} | ${framesize} -| | Display single bound | PDR lower bound +| | Display single bound | PDR_LOWER | | ... | ${result.pdr_interval.measured_low.transmit_rate} | ${framesize} | | ... | ${result.pdr_interval.measured_low.latency} -| | Display single bound | PDR upper bound +| | Display single bound | PDR_UPPER | | ... | ${result.pdr_interval.measured_high.transmit_rate} | ${framesize} | Check NDRPDR interval validity @@ -697,14 +694,16 @@ | | ... | | ... | *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]