From 52eacb37b9e6d11174c23bd053f7ad42b1581dd3 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Thu, 15 Oct 2015 01:28:55 +0100 Subject: Simple performance Test for the PVP and PVVP Two sample contionous stream testcaes were introduced for PVP and PVVP scenarios. Required frame rate percentage can be specified either by tetcase configuration option "iLoad" or by command line option "iload". Command line option take precendece to testcase option. By default 100% linerate is used if not specified otherwise. Change-Id: I95f7ae6081377a4c99ce70fc7504b6b542f9260b JIRA: VSPERF-95 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Gene Snider Reviewed-by: Al Morton --- testcases/testcase.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'testcases/testcase.py') diff --git a/testcases/testcase.py b/testcases/testcase.py index 78f65239..608a316b 100644 --- a/testcases/testcase.py +++ b/testcases/testcase.py @@ -25,6 +25,7 @@ from core.loader import Loader from tools.report import report from conf import settings as S from tools.pkt_gen.trafficgen.trafficgenhelper import TRAFFIC_DEFAULTS +from conf import get_test_param class TestCase(object): """TestCase base class @@ -44,6 +45,9 @@ class TestCase(object): self.desc = cfg.get('Description', 'No description given.') self.deployment = cfg['Deployment'] self._frame_mod = cfg.get('Frame Modification', None) + framerate = get_test_param('iload', None) + if framerate == None: + framerate = cfg.get('iLoad', 100) # check if test requires background load and which generator it uses self._load_cfg = cfg.get('Load', None) @@ -62,7 +66,8 @@ class TestCase(object): self._traffic.update({'traffic_type': cfg['Traffic Type'], 'flow_type': cfg.get('Flow Type', 'port'), 'bidir': cfg['biDirectional'], - 'multistream': cfg.get('MultiStream', 0)}) + 'multistream': cfg.get('MultiStream', 0), + 'frame_rate': int(framerate)}) def run(self): """Run the test -- cgit 1.2.3-korg