pyats.robot.commands package¶
Submodules¶
- class pyats.robot.commands.impl.RunRobot(prog)¶
Bases:
pyats.cli.base.Command
Run RobotFramework Script in a generated job file
- description = '\nRuns a RobotFramework script with the provided arguments, generating & report\nresult.\n'¶
- help = 'runs the provided RobotFramework script'¶
- main(argv)¶
internal entrypoint for commands
- name = 'robot'¶
- usage = '{prog} [file] [options]\n\nExample\n-------\n {prog} /path/to/my_robot_script.robot\n {prog} /path/to/my_robot_script.robot --testbed-file /path/to/testbed.yaml\n'¶
- class pyats.robot.commands.job.SimpleRobotJob(*args, **kwargs)¶
Bases:
pyats.easypy.job.Job
Job constructor
Instantiates a job object and sets all sorts of internal states.
- Parameters
(str) (jobfile) –
(EasypyRuntime) (runtime) –
- classmethod configure_parser(parser, legacy_cli=True)¶
- run()¶
Job run
Runs the provided jobfile. Steps:
runs all pre-job plugins
run main() function entry of provided jobfile
cleanup any dangling tasks
add any child task messages to report email
run post-job plugins