Licensed under the MIT License. See file LICENSE.
Robot Framework example for test library implemented in Python. Example includes code written in Robot Framework and Python.
This example can be run as follows.
Create virtual environment with python -m venv .venv
.
Activate virtual environment with source .venv/bin/activate
for Linux bash. Or with .venv\Scripts\activate.bat
for Windows command line.
Restore packages with pip install -r requirements.txt
.
Check installation with robot --version
.
Run test with Python keywords using robot --pythonpath src --outputdir ./log ./python_tests/python_keywords.robot
.
Command line option --pythonpath
is not necessary when you set environment variable PYTHONPATH
.
For more information on extending Robot Framework with test libraries written in Python, see chapter Creating test libraries in the user guide.
- Robot Framework
- Add unit tests
- Create dictionary variable example
- Create list variable example