def run(self, args): try: if args and args[0] == 'rebot': rebot_from_cli(args[1:], rebot.__doc__) else: run_from_cli(args, runner.__doc__) except SystemExit, err: return err.code
option to Robot and the default is INFO. Examples: # Simple Rebot run that creates log and report with default names. $ rebot output.xml # Using options. Note that this is one long command split into multiple lines. $ rebot --log none --report myreport.html --reporttitle My_Report --summary mysummary.html --summarytitle My_Summary --SplitOutputs 2 --TagStatCombine smokeANDmytag path/to/myoutput.xml # Running 'robot/rebot.py' directly and creating combined outputs. $ python /path/robot/rebot.py -N Project_X -l x.html -r x.html outputs/*.xml """ import sys try: import pythonpathsetter except ImportError: # Get here when run as 'python -m robot.rebot' and then importing robot # works without this and pythonpathsetter is imported again later. pass import robot if __name__ == '__main__': robot.rebot_from_cli(sys.argv[1:], __doc__)
Available levels are the same as for --loglevel option to Robot and the default is INFO. Examples: # Simple Rebot run that creates log and report with default names. $ rebot output.xml # Using options. Note that this is one long command split into multiple lines. $ rebot --log none --report myreport.html --reporttitle My_Report --summary mysummary.html --summarytitle My_Summary --SplitOutputs 2 --TagStatCombine smokeANDmytag path/to/myoutput.xml # Running 'robot/rebot.py' directly and creating combined outputs. $ python /path/robot/rebot.py -N Project_X -l x.html -r x.html outputs/*.xml """ import sys try: import pythonpathsetter except ImportError: # Get here when run as 'python -m robot.rebot' and then importing robot # works without this and pythonpathsetter is imported again later. pass import robot if __name__ == '__main__': robot.rebot_from_cli(sys.argv[1:], __doc__)