robotframework-stacktrace
A listener that prints a Stack Trace to console to faster find the code section where the failure appears.
What it is and what it does
robotframework-stacktrace is a listener plugin for Robot Framework that intercepts test failures and prints a formatted stack trace to the console. Instead of showing only the final error message, it displays the full execution chain—each test file, keyword file, and line number—so you can immediately see where in your test hierarchy the failure occurred.
You activate it by passing `--listener RobotStackTracer` to the robot command. It works by hooking into Robot Framework's listener API to capture failure events and format them as a readable traceback, similar to Python's standard traceback output. The main dependency is robotframework itself; the package adds no other runtime requirements.
Use it for:
- Debugging complex nested keyword calls in large test suites to pinpoint which keyword or test step failed.
- Reducing time spent hunting through log files when a test fails—the stack trace appears immediately in console output.
- Understanding the execution path through multiple resource files and keyword libraries during test failures.
- Integrating with CI/CD pipelines to get clearer failure signals without parsing HTML logs.
- Troubleshooting timeout or assertion errors in browser automation tests (e.g., Playwright, Selenium).
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Robot Framework listener that prints stack traces to console during test failures, showing the exact file and line where each failure occurs in the test execution chain.
Yes, if you run Robot Framework 4.0+ and want faster failure diagnosis. The package is lightweight, permissively licensed, and solves a real debugging pain point. However, be aware that maintenance is dormant—no updates since mid-2023—so if Robot Framework introduces breaking changes to its listener API, this plugin may stop working without community fixes.
Install
robotframework-stacktrace on PyPI
pip
pip install robotframework-stacktraceuv
uv add robotframework-stacktracepoetry
poetry add robotframework-stacktraceInstalling robotframework-stacktrace
Before you install
Low install friction with a single wheel distribution. Maintenance is dormant—last release was 2021-07-12 and last commit 2023-11-09—so expect no active updates, though the package remains functional for Robot Framework 4.0 and later.
License in practice
Licensed under Apache Software License (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install robotframework-stacktrace
robot --listener RobotStackTracer path/to/tests.robot
Requires Robot Framework >= 4.0 to be installed separately.
Verify before relying
- Whether the stack trace output format remains compatible with Robot Framework versions released after 2023-11-09.
- Whether the listener works with all Robot Framework library types or only specific ones.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — robotframework |
| Maintenance | dormant — 1,859 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 441,743/month — #6,641 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: robotframework_stacktrace-0.4.1-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
robotframework-retryfailedA Robot Framework listener that automatically…
permissive · top 15,000 on PyPI
robotframework-reportportalA RobotFramework listener that sends test…
unclear · top 15,000 on PyPI
allure-robotframeworkIntegrates Robot Framework test execution with…
permissive · top 15,000 on PyPI
robocorp-logProvides structured, automatic logging for…
permissive · top 15,000 on PyPI
tracebackturbo3A drop-in replacement for Python's traceback…
permissive · top 15,000 on PyPI
robotframework-assertion-engineProvides a standardized assertion engine for…
permissive · top 15,000 on PyPI
robotframework-datadriverDataDriver extends Robot Framework to generate…
permissive · top 15,000 on PyPI
robotframework-browserBrowser automation library for Robot Framework…
permissive · top 5,000 on PyPI
robotframework-dependencylibraryDeclares and enforces dependencies between…
permissive · top 15,000 on PyPI
robotframework-seleniumtestabilitySeleniumTestability is a Robot Framework plugin…
permissive · top 15,000 on PyPI