RoboCon 2024

Working with Resources, Libraries and Variables: patterns and pitfalls
2024-02-27 , RoboConOnline

The Robot Framework offers many ways in which you can work with Resources, Libraries and Variables. This flexibility is a very powerful feature but as the saying goes: With great power comes great responsibility. And as always: Anything that can go wrong, will go wrong.


In this tutorial I'll go over a number of patterns I've seen in Robot Framework projects, their pros and cons and related pitfalls.


We'll also look at how a language server can help us (and how we can help the language server), what it's trying to tell us and how this relates to the tidy and robocop tools.


I hope to also show a proof-of-concept for a tool to visualize the import structure of a Robot Framework project that can help in improving the structure of a project.


Lessons Learned:
  • Better insight in how the Robot Framework resources / libraries system works
  • What (common) patterns there are and their pros and cons
  • How a language server / tidy / robocop can help solving "import issues" in a project
Is this suitable for ..?:

Beginner RF user, Intermediate RF user, Advanced RF user

Robin has been working in the test automation field for over 15 years with over 8 years of Robot Framework and Python experience. The past few years he's been working as an automation consultant, helping companies improve their Python and Robot Framework projects.