xtesting.core.behaveframework module¶
Define classes required to run any Behave test suites.
-
class
xtesting.core.behaveframework.
BehaveFramework
(**kwargs)¶ Bases:
xtesting.core.testcase.TestCase
BehaveFramework runner.
-
dir_results
= '/var/lib/xtesting/results'¶
-
parse_results
()¶ Parse output.json and get the details in it.
-
run
(**kwargs)¶ Run the BehaveFramework feature files
- Here are the steps:
- create the output directories if required,
- run behave features with parameters
- get the results in output.json,
- Args:
- kwargs: Arbitrary keyword arguments.
- Returns:
- EX_OK if all suites ran well. EX_RUN_ERROR otherwise.
-