Robot Framework API documentation — Robot Framework 7.2.2 documentation (original) (raw)

This documentation describes the public API of Robot Framework. Installation, basic usage and wealth of other topics are covered by the Robot Framework User Guide.

If you have questions related to the APIs, you can ask them on Robot Framework Slack, Forum or mailing list. If you encounter bugs, please submit an issue.

Entry points

Command line entry points are implemented as Python modules and they also provide programmatic APIs. Following entry points exist:

See built-in tool documentation for more details about Rebot, Libdoc, and Testdoc tools.

Public API

robot.api package exposes the public APIs of Robot Framework.

Unless stated otherwise, the APIs exposed in this package are considered stable, and thus safe to use when building external tools on top of Robot Framework. Notice that all parsing APIs were rewritten in Robot Framework 3.2.

Currently exposed APIs are:

All of the above classes can be imported like:

from robot.api import ClassName

The public API intends to follow the distributing type information specificationoriginally specified in PEP 484.

See documentations of the individual APIs for more details.

Tip

APIs related to the command line entry points are exposed directly via the robot root package.

All packages

All robot packages are listed below. Typically you should not need to import anything from them directly, but the above public APIs may return objects implemented in them.

Indices