summaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2015-10-15 01:28:55 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-10-23 13:57:48 +0000
commit52eacb37b9e6d11174c23bd053f7ad42b1581dd3 (patch)
treec0f4ada7ac16daf80892b3bcbc72864648801791 /testcases
parentc2971871dd1380b88d58f29211a3e8478aca477a (diff)
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 <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Gene Snider <eugene.snider@huawei.com> Reviewed-by: Al Morton <acmorton@att.com>
Diffstat (limited to 'testcases')
-rw-r--r--testcases/testcase.py7
1 files changed, 6 insertions, 1 deletions
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