allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

link in the history tab does not contain a suite number

Open AleksandrTheFirst opened this issue 1 year ago • 1 comments

Describe the Bug

tests are located in several suites the link to the current test contains the suite number, but the links in the history tab do not contain the suite number.

clicking on a historical link should open a specific historical testresult. instead, it opens the home page of the test run.

green color -- link .../202411160200/acceptancetest/_output/allure-report/index.html?isNativeBrowsing=true#suites/cd4abcc0ee5d62237215bff47c59110b/52a4c36dd58708be/history

red color -- link .../202411160100/acceptancetest/_output/allure-report/index.html#testresult/8762dcfba2fe6979

correct link for historical testresult .../202411160100/acceptancetest/_output/allure-report/index.html?isNativeBrowsing=true#suites/cd4abcc0ee5d62237215bff47c59110b/8762dcfba2fe6979/

Steps to Reproduce

  1. create 2 or more suites
  2. put tests into suites
  3. enable history
  4. run the tests
  5. run the tests again to generate the history

Expected Behaviour

the link in the history tab opens the desired testresult and contains the suite number

Screenshots or Additional Context

image

image

What Language are you using?

Java

What Framework/Allure Integration you are using?

allure-testng

What version of Allure Integration you are using?

2.29.0

What version of Allure Report you are using?

2.25.0

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

AleksandrTheFirst avatar Nov 16 '24 13:11 AleksandrTheFirst

The history links are generated based on the info provided via the executor.json file, which is usually provided by CI systems, see https://allurereport.org/docs/how-it-works-executor-file/#executor-file

Based on the isNativeBrowsing query parameter, I may assume you're using a custom flow to generate & publish the reports in Artifactory.

The fix would be to include the isNativeBrowsing=true parameter to your executor.json (reportUrl property)

baev avatar Jan 09 '25 15:01 baev