diff options
author | imarom <imarom@cisco.com> | 2016-05-19 13:37:17 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-05-19 13:37:44 +0300 |
commit | bbc4f5349ad0f41e675101b7fa3edaf4c3522dd5 (patch) | |
tree | 56e557b4043122f8df5c4e7de1e69532853d7a1a | |
parent | 95a9c388c6deb214f991411adf9ff08f64708ffd (diff) |
added a stress test for latency - incremental latency streams
-rw-r--r-- | scripts/automation/regression/stateless_tests/stl_rx_test.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_rx_test.py b/scripts/automation/regression/stateless_tests/stl_rx_test.py index 70c003aa..171512b4 100644 --- a/scripts/automation/regression/stateless_tests/stl_rx_test.py +++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py @@ -187,3 +187,36 @@ class STLRX_Test(CStlGeneral_Test): except STLError as e: assert False , '{0}'.format(e) + + + + # this test adds more and more latency streams and re-test with incremental + def test_incremental_latency_streams (self): + total_pkts = self.total_pkts + + exp = [] + try: + for i in xrange(1, 128): + s1 = STLStream(name = 'rx', + packet = self.pkt, + flow_stats = STLFlowLatencyStats(pg_id = i), + mode = STLTXSingleBurst(total_pkts = total_pkts, + percentage = 1 + )) + + # add both streams to ports + self.c.add_streams([s1], ports = [self.tx_port]) + + print("\nport {0} : starting with {1} streams at {2}% of line rate\n".format(self.tx_port, i, i)) + + exp.append({'pg_id': i, 'total_pkts': total_pkts, 'pkt_len': self.pkt.get_pkt_len()}) + + self.__rx_iteration( exp ) + + + + except STLError as e: + assert False , '{0}'.format(e) + + + |