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:

  1. runs all pre-job plugins

  2. run main() function entry of provided jobfile

  3. cleanup any dangling tasks

  4. add any child task messages to report email

  5. run post-job plugins