16 from org.robotframework
import RobotPythonRunner
26 USAGE =
"""robotframework.jar - Robot Framework runner.
28 Usage: java -jar robotframework.jar [command] [options] [input(s)]
31 run - Run Robot Framework tests. The default, if no command is given.
32 rebot - Post process Robot Framework output files.
33 libdoc - Create test library or resource file documentation.
34 tidy - Clean-up and changed format of test data files.
35 testdoc - Create documentation from Robot Framework test data files.
37 Run `java -jar robotframework.jar command --help` for more information about
38 an individual command.
41 java -jar robotframework.jar mytests.robot
42 java -jar robotframework.jar run mytests.robot
43 java -jar robotframework.jar rebot --log mylog.html out.xml
44 java -jar robotframework.jar tidy --format robot mytests.html
53 _commands = {
'run': run_cli,
'rebot': rebot_cli,
'tidy': tidy_cli,
54 'libdoc': libdoc_cli,
'testdoc': testdoc_cli}
59 except SystemExit
as err:
63 if not args
or args[0]
in (
'-h',
'--help'):
65 raise SystemExit(INFO_PRINTED)
71 return self.
_commands_commands[args[0]], args[1:]
Used for Java-Jython interop when RF is executed from .jar file.
def _parse_command_line(self, args)