{"id":21882,"library":"robotframework-dependencylibrary","title":"Robot Framework DependencyLibrary","description":"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.","status":"active","version":"4.0.1","language":"python","source_language":"en","source_url":"https://github.com/mentalisttraceur/robotframework-dependencylibrary","tags":["robotframework","test","dependencies","testing"],"install":[{"cmd":"pip install robotframework-dependencylibrary","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Runtime dependency: the library works as a Robot Framework test library","package":"robotframework","optional":false}],"imports":[{"note":"All keywords are available via the singleton instance; no other import pattern is common.","wrong":"","symbol":"DependencyLibrary","correct":"from DependencyLibrary import DependencyLibrary"}],"quickstart":{"code":"*** Settings ***\nLibrary    DependencyLibrary\n\n*** Variables ***\n@{REQUIRED_TESTS}    Login    NavigateToSettings\n\n*** Test Cases ***\nDependent Test\n    [Tags]    integration\n    Require Tests    @{REQUIRED_TESTS}\n    Log    This test runs only if Login and NavigateToSettings passed.","lang":"python","description":"Require other tests by their exact name. The dependent test is skipped if any required test failed or was skipped."},"warnings":[{"fix":"Ensure the test name string matches the Robot Framework test case name exactly (including spaces and case).","message":"Test names are case-sensitive and must match the Robot Framework test case name exactly (including spaces).","severity":"gotcha","affected_versions":"all"},{"fix":"Run all dependent tests in a single robot invocation, or redesign to use suite-level dependencies with Require Suites.","message":"Require Tests only works within the same robot execution session; dependencies do not persist across runs or reruns via Rebot.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the programmatic keywords Require Tests and Require Suites with the list of names hardcoded or loaded from variables.","message":"The keyword 'Require Tests From File' and 'Require Suites From File' are deprecated in version 4.0.0+ due to unreliable file parsing.","severity":"deprecated","affected_versions":">=4.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Add 'Library    DependencyLibrary' in the *** Settings *** section of the test suite file.","cause":"Library was not imported in the Settings section or the import failed silently.","error":"No keyword with name 'Require Tests' found."},{"fix":"Run 'pip install robotframework-dependencylibrary' in the environment.","cause":"The library is not installed in the Python environment where Robot Framework runs.","error":"Importing test library 'DependencyLibrary' failed: ModuleNotFoundError: No module named 'DependencyLibrary'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}