fix(uti): export correct units in cps ndrpdr 22/36022/4
authorVratko Polak <vrpolak@cisco.com>
Fri, 22 Apr 2022 11:29:06 +0000 (13:29 +0200)
committerVratko Polak <vrpolak@cisco.com>
Mon, 20 Jun 2022 14:09:21 +0000 (14:09 +0000)
Compute Bandwidth keyword returns value in Gbps,
as that is convenient for test messages.
Export Search Bound keyword expects value in bps,
as that is convenient for JSON export.

While the conversion was present in
Display Single PPS Bound keyword, it was missing from
Display Single CPS Bound keyword. Now added.

Change-Id: I5bb5934beeecfa2ee1b77dd1b1bfc788d034c845
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/robot/performance/performance_display.robot

index aaf5be8..1313788 100644 (file)
 | |
 | | Set Test Message | ${\n}${text}: ${tps} CPS | append=yes
 | | ${bandwidth} | ${pps} = | Compute Bandwidth | ${tps}
-| | Export Search Bound | ${text} | ${tps} | cps | ${bandwidth}
+| | Export Search Bound | ${text} | ${tps} | cps | ${bandwidth * 1e9}
 | | Return From Keyword If | not """${latency}"""
 | | Set Test Message | ${\n}LATENCY [min/avg/max/hdrh] per stream: ${latency}
 | | ... | append=yes