aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core/robotframework.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-07 16:08:05 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-07 19:42:53 +0100
commit89bb80232f777b0619d4168b292338c16a0a704c (patch)
tree8f98894f4727bea60f527f915caef52b7cbf4f1a /functest/core/robotframework.py
parente29b1236a4bacc94fd6d13a1744d7979d31a6ed6 (diff)
Add variablefile as possible robot.run() args
Change-Id: Ic80840957b4d9c3c4a1615696a2851f3f5bf7bf4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core/robotframework.py')
-rw-r--r--functest/core/robotframework.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/core/robotframework.py b/functest/core/robotframework.py
index 689d9d94..ccfa26b7 100644
--- a/functest/core/robotframework.py
+++ b/functest/core/robotframework.py
@@ -96,6 +96,7 @@ class RobotFramework(testcase.TestCase):
try:
suites = kwargs["suites"]
variable = kwargs.get("variable", [])
+ variablefile = kwargs.get("variablefile", [])
except KeyError:
self.__logger.exception("Mandatory args were not passed")
return self.EX_RUN_ERROR
@@ -109,8 +110,9 @@ class RobotFramework(testcase.TestCase):
self.__logger.exception("Cannot create %s", self.res_dir)
return self.EX_RUN_ERROR
stream = StringIO()
- robot.run(*suites, variable=variable, output=self.xml_file,
- log='NONE', report='NONE', stdout=stream)
+ robot.run(*suites, variable=variable, variablefile=variablefile,
+ output=self.xml_file, log='NONE',
+ report='NONE', stdout=stream)
self.__logger.info("\n" + stream.getvalue())
self.__logger.info("Results were successfully generated")
try: