avocado_robot package

Module contents

Plugin to run Robot Framework tests in Avocado

class avocado_robot.NotRobotTest

Bases: object

Not a robot test (for reporting purposes)

class avocado_robot.RobotCLI

Bases: avocado.core.plugin_interfaces.CLI

Run Robot Framework tests

configure(parser)

Configures the command line parser with options specific to this plugin

description = "Robot Framework options for 'run' subcommand"
name = 'robot'
run(args)

Execute any action the plugin intends.

Example of action may include activating a special features upon finding that the requested command line options were set by the user.

Note: this plugin class is not intended for adding new commands, for that please use CLICmd.

class avocado_robot.RobotLoader(args, extra_params)

Bases: avocado.core.loader.TestLoader

Robot loader class

discover(url, which_tests=False)

Discover (possible) tests from an reference.

Parameters:
  • reference (str) – the reference to be inspected.
  • which_tests – Limit tests to be displayed (ALL, AVAILABLE or DEFAULT)
Returns:

a list of test matching the reference as params.

static get_decorator_mapping()
static get_type_label_mapping()
name = 'robot'
class avocado_robot.RobotTest(name, params=None, base_logdir=None, job=None, executable=None)

Bases: avocado.core.test.SimpleTest

Run a Robot command as a SIMPLE test.

filename

Returns the path of the robot test suite.

test()

Create the Robot command and execute it.