Robot Framework Grafana Dashboard using Jenkins influxdb plugin as exporter
Metrics Covered By Robot Framework Grafana Dashboard :
Execution Status - By build number
Total Executions - Over Time Period
Average Pass Percentage
EMTE - Equivalent Manual Test Effort
Top 10 Failed Test Cases
All Execution Status By build number
Average Execution Time
Execution Trend Graph
REF: https://grafana.com/grafana/dashboards/11541
- Jenkins installed in your DEV environment
- Grafana/InfluxDB(version: 1.8.3) installed in your DEV environment
- Install Robot Framework plugin on Jenkins click here
- Intall InfluxDB plugin on Jenkins click here
Once you have installed InfluxDB, configure the authentication in the server side:
$ sudo vim /etc/influxdb/influxdb.conf
[http]
auth-enabled = true
Then create a user with an authentication password:
curl -XPOST "http://localhost:8086/query" --data-urlencode \
"q=CREATE USER username WITH PASSWORD 'strongpassword' WITH ALL PRIVILEGES"
Now to access influxDB using CLI:
$ influx -username 'username' -password 'password'
Create your database:
CREATE DATABASE robotdb
Test if it was created properly:
> show databases
name: databases
name
----
_internal
robotdb
Inside Jenkins you have to do 2 configuration:
-
Import the Robot Framework dashboad in "Create" > "Import"
-
Copy and paste the json file content and click in "Load"
-
Enjoy! :)
- Rodrigo Charaba - https://github.com/rcharaba