This guide takes you from a fresh clone to running the sample tests locally.
- Python 3.13+
- Node.js 22+
- Git
- System-level installs (e.g., Python installer, Node installer) can be run from any directory.
- Project-specific steps (e.g.,
git clone,cd robot-framework-template, creating/activating.venv,pip install -r requirements.txt,rfbrowser init,robot ...) should be run from the project root directory unless noted otherwise.
Download and install the latest Python 3.13 for Windows (be sure to check “Add python.exe to PATH” during installation):
- Official downloads: https://www.python.org/downloads/windows/
Verify installation:
py -3.13 --version
python --versionDownload and install the latest LTS (22.x) from Node.js for Windows:
- Node.js downloads: https://nodejs.org/en/download
Verify installation:
node -v
npm -vgit clone https://github.com/BVisagie/robot-framework-template
cd robot-framework-templatepy -3.13 -m venv .venv
.\.venv\Scripts\Activate.ps1
python --version # should be 3.13+Upgrade pip:
python -m pip install --upgrade pippip install -r requirements.txt
# Optional dev tools
pip install -r requirements-dev.txtOn Windows, Playwright system dependencies are handled differently. Initialize the Browser library:
rfbrowser initpre-commit installNotes:
- Ensure your virtual environment is active (
.\.venv\Scripts\Activate.ps1if you used.venv). - Install dev tools first:
pip install -r requirements-dev.txt. - If you see "pre-commit: command not found", try:
python -m pre_commit install. - Verify:
pre-commit --version.
Run lint/format checks:
robocop check .
robocop format .Headless mode is the default.
- API tests:
robot --outputdir output tests/project_json_placeholder/api_tests- UI tests (Wikipedia demo):
robot --outputdir output tests/project_wikipedia/ui_tests- HEADLESS_BROWSER=true|false (default true)
- WIKIPEDIA_BASE_URL to override the default https://www.wikipedia.org/
- Database (examples only): DB_HOST, DB_PORT, DB_SERVICE_NAME, DB_USER, DB_PASSWORD, DB_API_MODULE
Example (PowerShell):
$env:HEADLESS_BROWSER = "true"
$env:WIKIPEDIA_BASE_URL = "https://www.wikipedia.org/"- If browsers fail to launch, re-run
rfbrowser initafter ensuring Node 22+ is installed. - For DB placeholders, tests are tagged
do_not_runby default and are documentation-only.