I am working on creating a Reports Dashboard for automated tests that run once in a day. I am using WebdriverIO and so far allure has been super helpful in building detailed reports.
I am using the allure command line command:
allure generate --clean ./allure-results && allure open
to generate the reports, however I am not able to get my PREVIOUS results and my TRENDS tile is empty. History is also EMPTY
Is there any way I can store daily reports and filter by date and see them stacked against a particular day?
You have to install it from Manage plugin. Once installed you can configure it to run post build in your job configuration. This will generate allure reports for each build you run and store it in build number folder. You'll also get the trend tile populating automatically.
The Next Step is to generate “Allure Report”. we need to download allure binaries from maven. Download the zip file , unzip the file in the desired location. Copy the location up to bin folder, add it to Environment variables to path system variable just like you did for maven.
Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process.
Before generating the report, copy the history folder from your previous allure-report folder inside your current allure-results folder.
Therefor your new allure-report will have a new history folder that you need to save for the next day, and so on and so forth.
Documentation on this issue are somewhat confusing and naming of directories does not help novice allure user eighter. I'll try to dumb it down a little, so that i would understand it myself with only one pass of reading.
Preconditions
What to do:
What next:
You can integrate your build with Jenkins, where you can use Allure plugin to generate reports.
You have to install it from Manage plugin. Once installed you can configure it to run post build in your job configuration.
This will generate allure reports for each build you run and store it in build number folder. You'll also get the trend tile populating automatically.
For more information you can refer allure documentation here: Allure Jenkins configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With