Here is an exemple of functest/ci/testcases.yaml
run:
module: 'functest.opnfv_tests.sdn.odl.odl'
class: 'ODLTests'
args:
suites:
- /home/opnfv/repos/odl_test/csit/suites/integration/basic
- /home/opnfv/repos/odl_test/csit/suites/openstack/neutron
Change-Id: I37b0ffa18f626bd8bb52ed460ae38053bd12c8ee
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
module = importlib.import_module(run_dict['module'])
cls = getattr(module, run_dict['class'])
test_case = cls()
- result = test_case.run()
+ try:
+ kwargs = run_dict['args']
+ result = test_case.run(**kwargs)
+ except KeyError:
+ result = test_case.run()
if result == testcase_base.TestcaseBase.EX_OK:
if GlobalVariables.REPORT_FLAG:
test_case.publish_report()