allure-framework / allure-framework/allure-python
How can I gather the steps info in script for logging bug automatically when assertion fails
- Dominant language
- Python
- Stars
- 814
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
I'm submitting a ...
[ X] feature request
I added testing steps via allure.step for each individual stories for Allure Report, and I received a requirement that script should be able to log bug via Bug Management System API automatically when assertion fails. My problem is I need an easy way to collect the steps info I added via allure.step, so that I can log it into Bug Management System for people to reproduce the issue. Please kindly suggest. Many thanks :)
- Allure version: 2.13.0
- Test framework: pytest@5.2.4
- Allure adaptor: allure-pytest@2.8.6
Contributor guide
Research direction
Start by reviewing how allure.step records steps in the allure-pytest integration and how pytest exposes assertion failures. Determine whether the collected steps can be made available to the requested Bug Management System API; done would require a defined integration, reproducible failure details, and an agreed API behavior, none of which the issue specifies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100