xtesting.core.robotframework module¶
Define classes required to run any Robot suites.
-
class
xtesting.core.robotframework.ResultVisitor¶ Bases:
robot.result.visitor.ResultVisitorVisitor to get result details.
-
get_data()¶ Get the details of the result.
-
visit_test(test)¶ Implements traversing through the test and its keywords.
Can be overridden to allow modifying the passed in
testwithout callingstart_test()orend_test()nor visiting keywords.
-
-
class
xtesting.core.robotframework.RobotFramework(**kwargs)¶ Bases:
xtesting.core.testcase.TestCaseRobotFramework runner.
-
dir_results= '/var/lib/xtesting/results'¶
-
generate_report()¶ Generate html and xunit outputs
-
parse_results()¶ Parse output.xml and get the details in it.
-
run(**kwargs)¶ Run the RobotFramework suites
- Here are the steps:
- create the output directories if required,
- get the results in output.xml,
- delete temporary files.
- Args:
- kwargs: Arbitrary keyword arguments.
- Returns:
- EX_OK if all suites ran well. EX_RUN_ERROR otherwise.
-