X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance%2Fperformance_utils.robot;h=1935337445f8c4e25b411f8752c9786bd8df01cd;hp=4cabe5660efd3bc9a7fb28345d16f779ab0914c4;hb=refs%2Fchanges%2F48%2F13548%2F9;hpb=1e2e2be1c90c83a6b9b4283f285bc89a5ece64ec diff --git a/resources/libraries/robot/performance/performance_utils.robot b/resources/libraries/robot/performance/performance_utils.robot index 4cabe5660e..1935337445 100644 --- a/resources/libraries/robot/performance/performance_utils.robot +++ b/resources/libraries/robot/performance/performance_utils.robot @@ -575,13 +575,16 @@ | | ... | | [Arguments] | ${interval} | ${packet_loss_ratio}=${0.0} | | ... -| | ${lower_bound_lf} = | Set Variable | ${interval.measured_low.loss_fraction} +| | ${lower_bound} = | Set Variable | ${interval.measured_low} +| | ${lower_bound_lf} = | Set Variable | ${lower_bound.loss_fraction} | | Return From Keyword If | ${lower_bound_lf} <= ${packet_loss_ratio} | | ${message}= | Catenate | SEPARATOR=${SPACE} | | ... | Minimal rate loss fraction ${lower_bound_lf} | | ... | does not reach target ${packet_loss_ratio}. +| | ${message_zero} = | Set Variable | Zero packets forwarded! +| | ${message_other} = | Set Variable | ${lower_bound.loss_count} packets lost. | | ${message} = | Set Variable If | ${lower_bound_lf} >= 1.0 -| | ... | ${message}${\n}Zero packets forwarded! | ${message} +| | ... | ${message}${\n}${message_zero} | ${message}${\n}${message_other} | | Fail | ${message} | Perform additional measurements based on NDRPDR result