Test automation with Robot Framework

Robot Framework lets you write tests that read like a test plan, and that anyone on the team can review. We learn its syntax, drive a browser and other programs, then write a small Python library for what the built-in keywords can't do.

Duration: 2 to 3 days · Level: beginner

For: testers, QA teams and functional analysts with little programming experience.

Prerequisites: knowing how to use a terminal helps; no programming required.

Test automation with Robot Framework

Day 1 — Writing tests like sentences

  • What Robot Framework is for, and what it isn't
  • Installing everything with uv
  • The structure of a .robot file
  • Test cases, settings and sections
  • Variables: scalars, lists and dictionaries
  • The built-in keywords
  • Writing your own keywords
  • Tags: sorting and selecting tests
  • Setup and teardown
  • Reading the reports and logs

Day 2 — Driving the real world

  • Testing a web application with the Browser library
  • SeleniumLibrary, when you already have Selenium
  • Finding elements without fragile selectors
  • Forms, waits and screenshots
  • Running other programs with the Process library
  • Files and directories with OperatingSystem
  • Data-driven tests with templates
  • Resource files: sharing keywords
  • Running the tests in CI

Day 3 — Optional: a pinch of Python

  • Just enough Python to write a keyword
  • Writing a custom Python library
  • Passing arguments and returning values
  • Logging from your library
  • Talking to an API or a database
  • Debugging a failing test
  • Organising a test project that lasts

Elevate Your Python Proficiency!