skillfed

robotframework-dependencylibrary

Declare dependencies between Robot Framework tests

robotframework-dependencylibrary v4.0.1 89.0K downloads/30d#13,691 on PyPI21
Permissive license 0BSD (BSD Zero Clause License) DORMANT released

What it is and what it does

DependencyLibrary is a Robot Framework extension that lets you declare when one test depends on another test or suite passing. Instead of tests failing redundantly or running in the wrong order, you use keywords like `Depends on test` to mark prerequisites; if a dependency fails or is skipped, the dependent test is automatically skipped with a clear message rather than running and failing again.

The library handles three scenarios: when a dependency passes, the dependent test runs normally; when a dependency fails or is skipped, the dependent test is skipped with a message explaining why; and when you reference a test that doesn't exist or hasn't run yet, the library warns you. It works within a single test file by default, and across files when you run Robot Framework with `--listener DependencyLibrary` or include the library in each file's settings.

Use it for:

  • Skip integration tests when their setup test fails, avoiding cascading false failures in test reports
  • Run tests in a required sequence where later tests depend on state set up by earlier ones
  • Depend on an entire test suite passing before running a downstream suite of tests
  • Catch mistakes in test dependencies with warnings when you reference non-existent or self-referential tests
  • Make test suites more readable by explicitly declaring which tests must pass before others run

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Declares and enforces dependencies between Robot Framework tests, allowing tests to skip or fail gracefully when their prerequisites don't pass.

Yes, if you use Robot Framework and have tests with explicit sequential or state dependencies. The library is stable and permissively licensed, with low install friction. The main caveat is dormant maintenance—last release was 2023-03-23—so verify compatibility with your robotframework version before adopting it in new projects.

Install

robotframework-dependencylibrary on PyPI

pip

pip install robotframework-dependencylibrary

uv

uv add robotframework-dependencylibrary

poetry

poetry add robotframework-dependencylibrary

Installing robotframework-dependencylibrary

Before you install

Low install friction with a single runtime dependency on robotframework. Maintenance is dormant—last release was 2023-03-23, though the repository remains active and the library is marked Production/Stable.

License in practice

Licensed under 0BSD (BSD Zero Clause License), a permissive license with no restrictions on use, modification, or distribution.

Quickstart

pip install robotframework-dependencylibrary

# In your Robot Framework test file:
*** Settings ***
Library  DependencyLibrary

*** Test Cases ***
First Test
    No operation

Second Test
    Depends on test  First Test
    Log  This runs only if First Test passed

Requires robotframework to be installed; to depend on tests or suites from other files, run Robot Framework with --listener DependencyLibrary or include DependencyLibrary in those files' Settings.

Verify before relying

  • Whether the library works with current robotframework versions given the last release was 2023-03-23
  • Support status for Python 2, which is end-of-life, given classifiers list both Python 2 and 3

Package facts

License 0BSD (BSD Zero Clause License) (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — robotframework
Maintenance dormant — 1,240 days since the last release
Last repo commit
First released
Downloads 88,950/month — #13,691 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: robotframework_dependencylibrary-4.0.1-py2.py3-none-any.whl

Development Status :: 5 - Production/StableFramework :: Robot Framework :: LibraryOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development :: Testing

Tags

robot framework test dependenciestest ordering and prerequisitesconditional test executionrobot framework test sequencingdependent test managementtest suite dependenciesskip tests on failure
test-orchestrationrobot-framework-plugin

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

robotframework-seleniumlibrary

SeleniumLibrary is a Robot Framework library…

permissive · top 5,000 on PyPI

robotframework-retryfailed

A Robot Framework listener that automatically…

permissive · top 15,000 on PyPI

robotframework-pabot

Pabot splits Robot Framework test execution…

permissive · top 5,000 on PyPI

robotframework-debuglibrary

Provides an interactive debug shell and library…

permissive · top 15,000 on PyPI

robotframework-databaselibrary

A Robot Framework library that adds keywords…

permissive · top 15,000 on PyPI

robotframework-appiumlibrary

AppiumLibrary is a Robot Framework library that…

permissive · top 15,000 on PyPI

robotframework-selenium2library

A Robot Framework library that wraps Selenium…

permissive · top 15,000 on PyPI

robotframework-sshlibrary

A Robot Framework test library for executing…

permissive · top 15,000 on PyPI

robotframework-whitelibrary

WhiteLibrary automates Windows GUI testing for…

permissive · top 15,000 on PyPI

pytest-depends

A pytest plugin that lets you declare…

permissive · top 15,000 on PyPI

Further reading