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
(runtime, **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)¶ configures the main runtime parser with this component’s own parser group.
Note
to be implemented by the component owner/developer.
should be adding argument groups and args to the provided parser
-
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