allure2
allure2 copied to clipboard
Missing x axis labels on Trend charts
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
- for Trends it should be dates on which the tests were run.
- 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:
- Go to 'home page or graphs page'
- Scroll down to 'trends charts'
- See error
Expected behavior I should see proper x axis labels
Screenshots
If applicable, add screenshots to help explain your problem.
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
I confirm the bug, also our side. we are using allure with python behave integration
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?
Please provide additional details on the setup. Graphs work fine for demo report
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:
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.
@baev is this enough info, or you need something more?
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 ;/
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
@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.
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/
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/