allure-framework / allure-framework/allure2

Get test case id

Open
#922 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5.5k
Forks
782
Avg merge
2d 33m
Merged PRs (30d)
16

Description

**Is your feature request related to a problem? Please describe.**
Hi, we are running our tests from Test Rail, and if test fails, we attach a link to allure report, but currently we attach link to the whole report (like `allure-report/index.html#suites/`), not to the failed test as we would like.

**Describe the solution you'd like**
We would like to attach link to the failed test case. Like (`allure-report/index.html#suites/someCaseId`)

**Additional context**
As I understand, we need to get ids from folder `data/test-cases`, but report generates after all tests are executed. Maybe If you could add a new field (like allure-result id) to `*-results.json`, then you could use that field to generate final report, and I could use that field when test fails.

Contributor guide

Open the contributing guide

Research direction

Start by examining the IDs in data/test-cases and the structure of *-results.json, then compare them with the generated anchors in allure-report/index.html#suites/. The work is done when a failed test can expose or use an identifier that produces a link to that individual test case rather than the whole report.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.