Create Grafana dashboard from Allure report results/appium test automation - appium

I am trying to create a Grafana dashboard for my mobile automation project and need some heads up on how to proceed. Searching on Google hasn't helped much. We export the results for our mobile automation to allure reports and now want to create send the results to a dashboard. Is there any API to send allure results to Grafana? or should I export my appium test results to a DB and then send it to Grafana, if yes, then any way ahead? New to dashboarding stuff so need help

Allure generates influxdb (and prometheus) files in export directory. You need to feed this file to influxDB database. After that you set Grafana to pull from that database and show data.

Related

Getting access to the allure report statistics in Jenkins (tests with Webdriverio)

I have a set of tests which run within Jenkins and at the end of the tests (in the post section) I generate an allure report. The tests are created with Webdriverio.
The last time I did anything like this, I was using standard selenium running with Junit and due to that combination, the Jenkins Rest API had access to things like failedCount, skipCount, passes and failed counts. This however seems to only be possible with JUnit.
Does allure expose this to Jenkins somehow - or am I going to have to try and scrape the statistics from a pre-generated report?
(as a side note, I have tried to configure a second reporter in webdriverio, but while that seems to create some xml files locally, the folder I configure is not appearing on Jenkins. Also, webdriverio doesn't support JUnit as a framework - currently it's using mocha.)
I eventually managed to figure this out.
There is url which you can go to to get a json file with the summary information.
So if you report is at /allure - then you navigate to /widgets/summary.json

How do we find the TFS logs?

How do we find the TFS logs? I need to extract those logs and export/bind them to my new TFS server.
How can we extract and attach the TFS logs?
You can find all the activity logs over provided url. Similar query over here
http://server:8080/tfs/_oi/_diagnostics/activityLog
You can use export option on selecting host [collection/project], it downloads the logs in CSV format. I believe you can attach/import it to your new server

Integrate jenkins to Power BI

How can I integrate Jenkins to POWERBI, i.e, getting jenkins jobs build and failed And JOb NUMBERS to POWERBI.
I don't thing there is a direct way of doing it currently.
(https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/6798689-jenkins-data-source)
But as a workaround you can always create a groovy script to read jenkins log and use database to store data.
From there you can use powerBI to create reports.

What is the best Jenkins dashboard plugin that displays all results?

Can someone point out a plugin that can aggregate all results from all jobs into one uniform Pass/Fail/Skipped dashboard?
I am currently using the dashboard view in jenkins that shows me grids, pie charts and test trends using Junit results.
I am now using Calabash and would like to publish the Cucumber reports to the same dashboard.
If someone can point me out to a dashboard that can consume all formats so I can have a centralized reporting page I would appreciate it.
Dashing would be an ideal choice since it is highly customisable.
Check it out from http://dashing.io
There are plenty 3rd party libs that does integration with jenkins and uses dashing in github as well.
Try integrating influxdb with jenkins.
Why influxdb?
Open source
Its time series database
Existing jenkins plugin
Easier to build query using GUI, no need to learn flux query to
get required data
Existing dashboard templates
Easier to connect to Grafana to
visualize, monitor data and create dashboards
Plugin Path: https://plugins.jenkins.io/influxdb/

Jenkins CI Results CSV

I am attemtping to integrate Jenkins CI and APtest so that my Jenkins run will automatically update APtest results.
I have the ApTest importresults script below but need a way to generate the appropiate CSV file containing all results data from Jenkins.
Can someone help?
APTest import results.
Do you need all results data in the history of the job / system dumped every single time? Or are you looking for an incremental CSV after the completion of each build?

Resources