summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateless_tests/stl_client_test.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-08-03 16:36:58 +0300
committerimarom <imarom@cisco.com>2016-08-03 16:38:25 +0300
commitddef1a091fc5d73d2d7d49f19a121bfc8f129851 (patch)
treef11509c3e699315f01dc6c8a4af5353e4cb9f14a /scripts/automation/regression/stateless_tests/stl_client_test.py
parent4bb767c98444544428411a638e5d8dda7b234b85 (diff)
fix for https://trex-tgn.cisco.com/youtrack/issue/trex-226
commit #trex-226
Diffstat (limited to 'scripts/automation/regression/stateless_tests/stl_client_test.py')
-rw-r--r--scripts/automation/regression/stateless_tests/stl_client_test.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_client_test.py b/scripts/automation/regression/stateless_tests/stl_client_test.py
index ed125cde..f3bb3188 100644
--- a/scripts/automation/regression/stateless_tests/stl_client_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_client_test.py
@@ -297,3 +297,30 @@ class STLClient_Test(CStlGeneral_Test):
finally:
self.c.set_port_attr(ports = [self.tx_port, self.rx_port], promiscuous = False)
+
+
+ # see https://trex-tgn.cisco.com/youtrack/issue/trex-226
+ def test_latency_pause_resume (self):
+
+ try:
+
+ s1 = STLStream(name = 'latency',
+ packet = self.pkt,
+ mode = STLTXCont(percentage = self.percentage),
+ flow_stats = STLFlowLatencyStats(pg_id = 1))
+
+ self.c.add_streams([s1], ports = self.tx_port)
+
+ self.c.clear_stats()
+
+ # mult has no meaning on latency - just messing around with the test
+ self.c.start(ports = self.tx_port, mult = "10mpps")
+
+ for i in range(100):
+ self.c.pause()
+ self.c.resume()
+
+ self.c.stop()
+
+ except STLError as e:
+ assert False , '{0}'.format(e)