Robot Framework is a generic open-source automation framework for acceptance testing, acceptance test-driven development (ATDD), and robotic process automation (RPA). It uses a keyword-driven approach, allowing for easy-to-read test cases. The project is actively maintained with frequent bug fix releases (e.g., 7.4.x series) and feature releases (e.g., 7.4, 7.3) typically a few times a year. The current version is 7.4.2.
pip install robotframeworkVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to programmatically run a Robot Framework test from a Python script. It creates a simple `.robot` file on the fly and then uses `robot.run` to execute it. This is useful for integrating Robot Framework into CI/CD pipelines or other automation scripts. Standard usage often involves running tests directly from the command line using `robot path/to/tests.robot`.
Update `FOR` loops in `.robot` files by removing the leading colon. Ensure your environment uses Python 3.8 or newer. Consult release notes for other changes.
Migrate to the external `robotframework-testdoc` tool. Install it via `pip install robotframework-testdoc` and use it instead of the built-in version.
Embrace the keyword-driven syntax for test cases. Use Python primarily for creating custom keywords (libraries) or for programmatic execution/reporting, rather than writing entire test cases in Python scripts.
Use `set PYTHONPATH=<path/to/my/libraries>` before running tests, or specify the library path directly in the `.robot` file using `Library ./my_libraries/MyLibrary.py`.
Familiarize yourself with the 'Variables' section of the Robot Framework User Guide. Use `Log Variables` keyword for debugging variable states and explicitly define variable scopes when necessary.
Ensure the correct library (e.g., `SeleniumLibrary` for browser automation) is imported in the test suite settings or resource file, or correct the keyword name if it's misspelled.
Install the missing library using pip: `pip install robotframework-seleniumlibrary` (replace with the correct library name).
Add the Python Scripts directory (e.g., `C:\Python39\Scripts` on Windows or `~/.local/bin` on Linux/macOS for user installs) to your system's PATH environment variable, or reinstall Robot Framework.
Define the variable in the appropriate scope (e.g., Variables section, Test Setup, Suite Setup) or correct the variable name to match an existing one.
No dependency data recorded yet.