Robot Framework DependencyLibrary
raw JSON → 4.0.1 verified Mon Apr 27 auth: no python
Robot Framework test library for declaring dependencies between test cases and suites, enabling sequential execution and skipping of dependent tests when prerequisites fail. Latest version 4.0.1, active development with infrequent releases.
pip install robotframework-dependencylibrary Common errors
error No keyword with name 'Require Tests' found. ↓
cause Library was not imported in the Settings section or the import failed silently.
fix
Add 'Library DependencyLibrary' in the *** Settings *** section of the test suite file.
error Importing test library 'DependencyLibrary' failed: ModuleNotFoundError: No module named 'DependencyLibrary' ↓
cause The library is not installed in the Python environment where Robot Framework runs.
fix
Run 'pip install robotframework-dependencylibrary' in the environment.
Warnings
gotcha Test names are case-sensitive and must match the Robot Framework test case name exactly (including spaces). ↓
fix Ensure the test name string matches the Robot Framework test case name exactly (including spaces and case).
gotcha Require Tests only works within the same robot execution session; dependencies do not persist across runs or reruns via Rebot. ↓
fix Run all dependent tests in a single robot invocation, or redesign to use suite-level dependencies with Require Suites.
deprecated The keyword 'Require Tests From File' and 'Require Suites From File' are deprecated in version 4.0.0+ due to unreliable file parsing. ↓
fix Use the programmatic keywords Require Tests and Require Suites with the list of names hardcoded or loaded from variables.
Imports
- DependencyLibrary
from DependencyLibrary import DependencyLibrary
Quickstart
*** Settings ***
Library DependencyLibrary
*** Variables ***
@{REQUIRED_TESTS} Login NavigateToSettings
*** Test Cases ***
Dependent Test
[Tags] integration
Require Tests @{REQUIRED_TESTS}
Log This test runs only if Login and NavigateToSettings passed.