This repository contains instructions and scripts for setting up and using a Robot Framework environment with the Browser Library.
Use the VS Code environment when you are writing, editing, and debugging Robot Framework tests.
The Docker environment is designed for executing tests in a clean, reproducible container that matches CI behavior.
This setup requires Python 3 to run Robot Framework and related tools. Make sure Python 3 is installed and available in your system PATH.
Then follow these steps:
- Run the
create_robot_venv.shscript in the VS Code terminal. - Install the RobotCode extension.
- Select the Python interpreter (via the Command Palette) from the .venv directory.
Copy .env.template to .env in the project's root folder.
Set HSL_MAP_PUBLISHER_USER and HSL_MAP_PUBLISHER_PASSWORD to allow robot tests to log in to the Map Publisher service.
Set HEADLESS=false if you want to see the browser in visible mode - otherwise tests are run in the background.
Using RobotCode Extension: Use Run Test from the RobotCode extension.
Using Terminal:
robot -d results tests/
Run run_robot_docker.sh script.