behave_tests: change packet rate for latency non regression tests 90/72790/2
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Fri, 16 Jul 2021 09:12:38 +0000 (11:12 +0200)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Thu, 22 Jul 2021 15:10:30 +0000 (17:10 +0200)
commitbc825ac3ee6f58791d47f9bfef288624624f700c
treefabb14540291b57f6a9cf2e5517d2b728167ecb7
parentc80ee07cd1aeb76420c42af1b87b365321ce6298
behave_tests: change packet rate for latency non regression tests

Base the rate of the latency test on the latest characterization max throughput
test instead of the latest non regression max throughput test.  The goal is to
use the same packet rate for all latency tests and to avoid variations of the
latency result due to the variation of the max throughput results, ie to
decouple max throughput and latency test results.

This is achieved with a new "Given" behave phrase:

    Given packet rate equal to {percentage} of max throughput of last characterization

This new phrase is now used by default in non-regression.feature, but it is
still possible to use the previous behaviour with the phrase:

    Given <throughput> rate of previous scenario

Change-Id: I15b5d7a68cd57c67d01d2119781f65114e6d41ce
Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
behave_tests/features/non-regression.feature
behave_tests/features/steps/steps.py
behave_tests/features/steps/testapi.py [new file with mode: 0644]