[MOB-46781] Track and catch actionId for failed actions#1964
[MOB-46781] Track and catch actionId for failed actions#1964devership16 merged 5 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds logic to capture and include actionId in error messages when test steps fail in Taurus. The implementation tracks the current actionId during test execution and wraps test methods with exception handlers that prefix the actionId to error messages, making it easier to identify which specific action failed during test execution.
Changes:
- Added actionId tracking infrastructure with
_current_actionIdattribute and tracking methods - Implemented exception wrapping that includes actionId in error messages for failed actions
- Added test to verify actionId exception handling behavior
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| bzt/modules/_apiritif/generator.py | Added actionId tracking methods, parsing logic, exception wrapping, and class setup modifications to support actionId capture in error messages |
| tests/unit/modules/_selenium/test_selenium_builder.py | Added test case to verify that actionId tracking and exception wrapping is generated correctly in the output script |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1964 +/- ##
==========================================
- Coverage 89.91% 89.90% -0.00%
==========================================
Files 71 71
Lines 20150 20179 +29
==========================================
+ Hits 18115 18140 +25
- Misses 2035 2039 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Uh oh!
There was an error while loading. Please reload this page.