{"id":21734,"library":"pyats-robot","title":"pyATS Robot Framework Module","description":"The pyATS Robot library provides a Robot Framework interface for Cisco pyATS (Python Test Automation Framework), enabling users to write test cases in Robot Framework syntax while leveraging pyATS test infrastructure. Current version is 26.3, released as part of the pyATS ecosystem. The library follows pyATS release cadence, updating approximately quarterly.","status":"active","version":"26.3","language":"python","source_language":"en","source_url":"https://github.com/CiscoDevNet/pyats","tags":["pyats","robotframework","test-automation","cisco","network-testing"],"install":[{"cmd":"pip install pyats-robot","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core pyATS library required for testbed, device, and test infrastructure.","package":"pyats","optional":false},{"reason":"Required to parse and execute Robot Framework test cases.","package":"robotframework","optional":false}],"imports":[{"note":"Common mistake: importing the standard 'robot' module instead of pyATS-specific Robot class.","wrong":"import robot","symbol":"Robot","correct":"from pyats.robot import Robot"},{"note":"Correct import for Robot-based test cases; no common wrong import.","symbol":"TestCase","correct":"from pyats.robot.testcase import RobotTestCase"}],"quickstart":{"code":"from pyats.easypy import run\nfrom pyats.robot import Robot\n\ndef main():\n    robot = Robot()\n    robot.run('tests/my_test.robot')\n\nif __name__ == '__main__':\n    main()","lang":"python","description":"Basic example: run a Robot Framework test file using pyATS Robot module."},"warnings":[{"fix":"Ensure Python >=3.8 is used. Upgrade Python if on an older version.","message":"pyATS Robot 26.x requires Python 3.8+; Python 2.7 support dropped in earlier versions.","severity":"breaking","affected_versions":">=26.0"},{"fix":"Add 'Library  pyats.robot.libraries.*' in Robot test files explicitly.","message":"The 'pyats.robot.Robot' class's 'run' method may require explicit Robot Framework library imports in test files; implicit imports deprecated.","severity":"deprecated","affected_versions":">=25.0"},{"fix":"Pass the testbed path explicitly via '--testbed-file' argument or set 'PYATS_TESTBED' environment variable.","message":"Testbed YAML files must be referenced correctly; pyATS Robot does not automatically load testbed from environment variable.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install robotframework' to install Robot Framework.","cause":"Robot Framework is not installed or not in the Python environment.","error":"ModuleNotFoundError: No module named 'robot'"},{"fix":"Use 'from pyats.robot import Robot'. Upgrade pyats-robot via 'pip install --upgrade pyats-robot'.","cause":"Incorrect import statement (e.g., 'from pyats import robot'), or older version of pyats-robot.","error":"AttributeError: module 'pyats.robot' has no attribute 'Robot'"},{"fix":"Add 'Library  pyats.robot.libraries.DeviceLibrary' and other needed libraries in the '*** Settings ***' section.","cause":"Missing import of pyATS libraries in the Robot test file.","error":"Robot Framework test fails: 'No keyword with name ... found'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}