Documentation

Robot Framework Documentation: User Guide, Libdoc and Release Notes

Open technical manual with reference tabs

Robot Framework documentation is extensive, and knowing where each type of information lives saves a lot of searching. The official material is split between the User Guide, library documentation generated with Libdoc, release notes and the source repository, while your own projects can produce documentation with the same tools.

Official Documentation Sources

The project website at robotframework.org links to every official resource. Each source answers a different kind of question, from syntax rules to the exact arguments of a single keyword, so it helps to know which one to open first.

ResourceBest for
User GuideSyntax, execution, variables, libraries and every command-line option
Standard library docsKeywords in BuiltIn, Collections, String, OperatingSystem and others
Release notesNew features, deprecations and backwards-incompatible changes
API documentationPython modules for library authors and tool builders
GitHub repositorySource code, issue tracker and installation notes

Reading the User Guide Effectively

The User Guide is long because it is the complete reference. Rather than reading it front to back, treat it as a manual: learn the basic syntax chapter first, then return to specific chapters when a question appears during real work.

  • Creating test data: sections, syntax, variables and control structures
  • Executing test cases: command-line options, tags and output files
  • Extending Robot Framework: library API, listeners and remote libraries
  • Supporting tools: Libdoc, Testdoc, Tidy and Rebot

The guide is versioned, so make sure the version you are reading matches the version installed in your environment. Features introduced in newer releases may not exist in older installations.

Library Documentation With Libdoc

Libdoc generates keyword documentation for libraries and resource files. Standard library documentation on the website is produced with it, and you can use the same tool for external libraries and for your own keyword collections.

# HTML documentation for a library
libdoc SeleniumLibrary SeleniumLibrary.html

# Documentation for your own resource file
libdoc resources/checkout.resource checkout.html

# Quick list of keywords in the terminal
libdoc BuiltIn list

The generated HTML page includes a searchable keyword list, argument signatures with defaults and type information, and the documentation text from Python docstrings or [Documentation] settings.

Writing Documentation That Libdoc Renders Well

Short first sentences matter because they appear in keyword overviews. Libdoc supports a lightweight formatting syntax, so bold text, lists and links render properly when written using the framework’s own documentation format.

*** Keywords ***
Add Product To Cart
    [Documentation]    Adds a product to the shopping cart.
    ...
    ...    ``name`` is the visible product name.
    ...    ``qty`` defaults to one item.
    [Arguments]    ${name}    ${qty}=1
    Search Product    ${name}

Documenting Test Suites

Suites and tests also support documentation. The Documentation setting describes a suite, and the [Documentation] setting describes individual tests. These texts appear in log.html and report.html, so readers understand the intent of a test without opening the source file.

  • Describe the business rule a suite verifies
  • Link to requirements or tickets where helpful
  • Use metadata for versions, environments or owners

The Testdoc tool creates a high-level HTML overview of suites and tests without running them, which can be shared with stakeholders who want to review coverage.

Release Notes and Upgrades

Release notes are published for every version and list new features, fixes and deprecations. Read them before upgrading, especially the section about backwards-incompatible changes, because syntax that worked before may produce deprecation warnings or errors after an upgrade.

Before upgradingWhy it matters
Read backwards-incompatible changesIdentifies syntax that must be updated
Check deprecation warnings in logsShows usages that will break in future releases
Confirm library compatibilityExternal libraries declare supported framework versions
Verify Python supportEach release supports a specific Python range

Community Documentation and Help

Beyond official material, the community forum and Slack workspace are active places to ask questions. External libraries document themselves on their own GitHub pages and Libdoc output, and conference talks published online often show real-world project structures.

When asking for help, include your framework version, Python version, a minimal suite that reproduces the issue and the relevant part of log.html. Precise questions usually receive precise answers much faster.

Building a Documentation Habit in Your Team

Documentation only helps when it stays current. Generating Libdoc output automatically in the pipeline whenever resource files change keeps keyword documentation aligned with the code, and publishing it on an internal page gives everyone a single place to search before writing new keywords.

  • Generate Libdoc HTML for every shared resource file in CI
  • Publish the output next to the latest test reports
  • Require a [Documentation] line for new shared keywords
  • Review documentation text in pull requests like code

Short, consistent descriptions are more valuable than long ones. A single clear sentence explaining what a keyword does, followed by notes about arguments, is usually enough for teammates to use it correctly.

Using JSON Output for Tooling

Libdoc can also write JSON instead of HTML. Editor extensions and custom tools use this format to offer keyword completion and validation, which means good documentation improves the editing experience as well as the published pages.

libdoc --format JSON resources/checkout.resource checkout.json

Frequently Asked Questions

Is the documentation available offline?

Yes. Libdoc can generate HTML or JSON files locally for any installed library, and the User Guide source lives in the GitHub repository and can be built locally.

Where are command-line options listed?

Run robot --help for a complete list in the terminal. The User Guide explains each option in more detail with examples.

How do I document my own Python library?

Add docstrings to the class and keyword methods, then run Libdoc on the library. The Python article on this site shows how decorators shape keyword names.

Which documentation should a beginner read first?

Start with the introduction and test data syntax chapters of the User Guide, then open the BuiltIn library documentation. Together they explain most of what appears in a typical first suite.

Keep a short note beside a test when its behaviour depends on a library option that is easy to overlook. Record which library version the team uses and why the option matters to that test. During an upgrade, compare the documented default with the setting in the suite, then run the smallest example that exercises the difference under the new library version.

Conclusion

Robot Framework documentation becomes easy to use once you know the layout: the User Guide for syntax and execution, Libdoc for keywords, release notes for upgrades and the repository for source. Generate documentation for your own resources too, and pair this with the keywords overview and Python article.