allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

Missing x axis labels on Trend charts

Open sukeshlaghate opened this issue 2 years ago • 10 comments

First of all Thank you for creating awesome tool. Describe the bug I noticed that charts (graphs) in generated allure report dashboards have missing x Axis labels. For e.g

  1. for Trends it should be dates on which the tests were run.
  2. For categories it should be listing category labels and so on.

However, they are not showing up in these charts. Is there any settings that I might be missing? please refer to the attached screen shots

To Reproduce Steps to reproduce the behavior:

  1. Go to 'home page or graphs page'
  2. Scroll down to 'trends charts'
  3. See error

Expected behavior I should see proper x axis labels

Screenshots If applicable, add screenshots to help explain your problem. Allure_graphs Allure_home_trend

Environment (please complete the following information):

Allure version 2.17.2
Test framework [email protected]
Allure adaptor [email protected]
Generate report using [email protected]

Additional context Add any other context about the problem here.

Would appreciate any pointers on how to enable x-axis labels for trend charts.

With regards Sukesh

sukeshlaghate avatar Mar 09 '22 08:03 sukeshlaghate

I confirm the bug, also our side. we are using allure with python behave integration

alef75 avatar May 26 '22 06:05 alef75

Any updates on this? Im also eager to have this X-Axis if not product version, also just timestamp would be better than nothing .

@baev could you help?

imool5 avatar Sep 07 '23 21:09 imool5

Please provide additional details on the setup. Graphs work fine for demo report

baev avatar Sep 11 '23 14:09 baev

hmm then I cant find how to setup this X-axis and I cant see anything on it on documentation. My trend graph look like this: image and for generating it im using allure commandline -> simple allure generate and then i copy history folder from last report into new report and publish on gitlab pages.

imool5 avatar Sep 12 '23 09:09 imool5

@baev is this enough info, or you need something more?

imool5 avatar Sep 19 '23 16:09 imool5

image image

Im missing those two values + I cant click on previous runs and check results, and on demo you can make it.

Im using something like this: cp -rf backup/$REPO_NAME/public/$REPORT_NAME/history/ allure-results/history

so im copying history from report that is already hosted and put it in allure-results/history, maybe I copy too little informations? Should I copy something more into history to make it "clickable" and to have those X-axis details and to have this clickable?

@baev that would be great if you could help since im stuck in there ;/

imool5 avatar Oct 02 '23 07:10 imool5

Hello,

How can one name the different runs / reports, please ? The doc mentions allure generate --report-version 1.4.5 --report-path tests/_output/allure-report -- tests/_output/allure-results but with allure 2.24:

--report-version does not exist

blenzi avatar Oct 03 '23 09:10 blenzi

@baev i found that if you want those numbers and clickable trend chart I need to provide executor file that I dont have now. Generally also this documentation was a little bit helpful when i saw I only have data in my files and I didnt have like "reportUrl": "https://reports.example.com/1234",

https://allurereport.org/docs/how-it-works/history-files/

although its never mentioned how to do this and there is no description for executors file.

It would be also nice to have a little more info on what additional files are accepted and how they're managed.

image

imool5 avatar Oct 17 '23 11:10 imool5

I am having the same issue and have spent several days looking to see why the trend graph does not have the x-axis values and why it is not clickable. @baev where is the source for your demo report? Can you share it so I can see what is missing on mine? I would love to have a report like how you have it here: https://allure-framework.github.io/allure-demo/

kshrestha99 avatar Jan 30 '24 18:01 kshrestha99

The information for this in the the documentation: https://allurereport.org/docs/how-it-works/

For the x axis, you just need to create an executor.json file in the same directory as the data used to generate the report. It's the buildOrder value here and can only be an int: https://allurereport.org/docs/how-it-works-executor-file/

hunterzach02 avatar Mar 06 '24 20:03 hunterzach02