Architecture and setup
Robot Framework sits in the middle of a simple stack. Your test cases call keywords; keywords come from libraries (Python code) or resource files (shared Robot Framework code); libraries drive the system under test — a browser, an API, the file system. This layering is the generic test automation architecture (gTAA): the framework defines and runs, libraries adapt it to each interface.
Preview unavailableSee how test data, Robot Framework, libraries, and the system under test form one automation stack.
To run anything you need a Python project with Robot Framework installed. This course can run commands three ways — pick yours with the “Run with” picker above the first command below:
- uv (recommended) — one tool for the environment and dependencies.
- venv — a plain Python virtual environment (
.venv). - poetry — the poetry package manager.
Every command example below and throughout the course adapts to your choice. You can change it any time; set each lab up with the runner you picked.
Task 1 — Create a project and add Robot Framework
Section titled “Task 1 — Create a project and add Robot Framework”Work in your open workspace folder.
-
Create the project:
Terminal window uv init --no-workspace --name rf-essentials -
Add Robot Framework:
Terminal window uv add robotframeworkTerminal window pip install robotframeworkTerminal window poetry add robotframework
-
Create a virtual environment (use
python3ifpythonisn’t found):Terminal window python -m venv .venv -
Activate it —
source .venv/bin/activate, or.venv\Scripts\Activate.ps1in PowerShell — then install Robot Framework into it:Terminal window uv add robotframeworkTerminal window pip install robotframeworkTerminal window poetry add robotframework
-
Create the project:
Terminal window uv init --no-workspace --name rf-essentials -
Add Robot Framework:
Terminal window uv add robotframeworkTerminal window pip install robotframeworkTerminal window poetry add robotframework
Done when
Robot Framework is installed in the project’s environment.
Task 2 — Verify Robot Framework runs
Section titled “Task 2 — Verify Robot Framework runs”Confirm the install by asking Robot Framework for its version:
uv run robot --versionrobot --versionpoetry run robot --versionIt prints a line like Robot Framework 7.x (Python 3.x on ...) and exits.
Done when
the last command ran robot and printed its version banner.
Check your understanding
Quick recall. Your first answer stays in this browser; the quiz never blocks your progress.
In the generic test automation architecture (gTAA), Robot Framework is…
Robot Framework is the execution and definition layer; libraries adapt it to each interface under test.
Show the answer
Answer: The test execution layer that drives libraries — Robot Framework is the execution and definition layer; libraries adapt it to each interface under test.
What does
uv add robotframeworkchange in your project?uv addwrites the dependency into pyproject.toml and pins the resolved version in uv.lock.Show the answer
Answer: It records the dependency and locks a resolved version —
uv addwrites the dependency into pyproject.toml and pins the resolved version in uv.lock.
Key terms
- uvcommand
- Fast Python package manager:
uv add <pkg>records a dependency;uv run <cmd>runs inside the project environment. - RobotCodeconcept
- The recommended VS Code extension for Robot Framework — syntax, run, and debug support.