pyats.robot package

Submodules

class pyats.robot.pyATSRobot.Script

Bases: object

class pyats.robot.pyATSRobot.pyATSRobot

Bases: object

pyASTS RobotFramework library

ROBOT_LIBRARY_SCOPE = 'GLOBAL'
connect_alias_to_device(device, alias)

Connect to a device via non-default alias.

connect_to_all_devices()

Connect to all devices

connect_to_device(device=None)

Connect to device connection as defined in testbed.yaml

connect_to_device_kwargs(device, **kwargs)

Connect to device via connection as defined in testbed.yaml. device is a required argument. You can pass additional arguments via key=value syntax.

connect_to_devices(devices=None)

Connect to devices via connection as defined in testbed.yaml. Specify devices with semi-colon separated list, e.g. “R1;R2”

connect_via_to_device(device, via)

Connect to a device with non-default via.

connect_via_to_device_as_alias(device=None, via=None, alias=None)

Create a new alias by connecting to a device via non-default connection

disconnect_from_device(device=None)

Disconnect from device with default alias

disconnect_from_device_with_alias(device=None, alias=None)

Disconnect from device using alias

disconnect_from_devices()

Disconnect from all devices with default alias.

run_testcase(python_path, *args, **kwargs)

The keyword allow to call any pyATS testcase by passing the full python path of the testcase.

run_testcase_kwargs(python_path, *args, **kwargs)

The keyword allow to call any pyATS testcase by passing the full python path of the testcase.

property testbed

Return testscript.parameters[‘testbed’]

use_testbed(testbed=None)

Load testbed YAML file and instantiate testbed object