Skip to main content

Output processor and dashboard generator for Robot Framework output files

Project description

Robot Framework Dashboard

Overview

The Robot Framework Dashboard is a tool for Robot Framework that provides insight of your test results across multiple runs. The tool makes use of the built in Robot Framework Result Visitor API to analyse output.xml files, stores these in a simple sqlite3 database and finally creates a HTML dashboard that makes use of Chart.js and Datatables for the graphs and tables and makes use of Bootstrap for styling.

If you need help, have suggestions or want to discuss anything, feel free to contact through the slack channel.

Command Line Features

When running the tool the following steps will be executed

  1. Database preparation creates robot_results.db or specified database if it does not yet exist and connects to it
  2. Optionally reads test execution result from 1 or more output XML file(s) and uploads to the database
  3. Optionally lists all runs currently available in the database, ordered by the time they were entered
  4. Optionally removes run(s) specified by run_date or index of being added
  5. Optionally generates a dashboard HTML file that can be used to look at the stored results

Dashboard HTML Features

The Robot Framework Dashboard HTML will provide information across your runs across all levels. Currently available features:

  • Global filters: run, run tag, run date
  • Runs
    • Statistics: pass, fail, skip
    • Duration: total elapsed time
    • Overview: table overview of runs
  • Suites
    • Filter: suite
    • Statistics: pass, fail, skip
    • Duration: total elapsed time
    • Most failed: top 10 failing suites
    • Overview: table overview of suites
  • Tests
    • Filter: suite, test
    • Statistics: pass, fail, skip
    • Duration: total elapsed time
    • Most failed: top 10 failing tests
    • Overview: table overview of tests
  • Keywords
    • Filter: keywords
    • Keyword statistics: pass, fail, skip
    • Keyword times run
    • Keyword total duration
    • Keyword average duration
    • Keyword min duration
    • Keyword max duration
    • Overview: table overview of keywords

Installation

  1. Install Robot Framework 6.0.0 or higher (if not already installed):
  2. Install Robot Framework Dashboard
pip install robotframework-dashboard

Usage

Run robotdashboard through the command line to initialize your database and generate the report:

robotdashboard -o output.xml

For detailed command line options take a look at:

robotdashboard -h

or

robotdashboard --help

Advanced examples:

  • Generate the report without adding new outputs
robotdashboard
  • Add tags to your output.xmls
robotdashboard -o output1.xml:tag1 -o reports/output2.xml:tag1:tag2
  • Do not list runs and/or do not create the dashboard HTML
robotdashboard -l false -g false
  • Custom path/file name for your dashboard HTML
robotdashboard -n results/result_robot_dashboard.html
  • Custom database path/file location
robotdashboard -d result_data/robot_result_database.db
  • Remove data from the database, can be based on run number (index) or run start time
robotdashboard -r 0
robotdashboard -r -1 -r "2024-10-17 15:05:04.563559"

Example usage output

This is an example after running robotdashboard for the first time. 3 outputs are added, stored and processed in the dashboard HTML.

Input:

robotdashboard -o output1.xml -o output2.xml -o output3.xml

Results:

==============================================================================
 1. Database preparation
  created database connection: '.
obot_results.db'
==============================================================================
 2. Processing output XML(s)
  Processing output XML 'output1.xml'
  Processed output XML 'output1.xml' in 0.04 seconds
  Processing output XML 'output2.xml'
  Processed output XML 'output2.xml' in 0.05 seconds
  Processing output XML 'output3.xml'
  Processed output XML 'output3.xml' in 0.05 seconds
==============================================================================
 3. Listing all available runs in the database
  Run 0   | 2024-10-17 15:05:04.563559 | RobotFramework-Project1
  Run 1   | 2024-10-18 16:43:12.772757 | Robotframework-Project2
  Run 2   | 2024-10-21 10:54:25.663094 | Robotframework-Project1
==============================================================================
 4. Removing runs from the database
  skipping step
==============================================================================
 5. Creating dashboard HTML
  created dashboard '.
obot_dashboard_20241021-150726.html' in 0.01 seconds

Contributing

Contributions are welcome! If you encounter any issues, have suggestions for improvements, or would like to add new features, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Note: This project is not officially affiliated with or endorsed by robotframework.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_dashboard-0.2.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_dashboard-0.2.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_dashboard-0.2.0.tar.gz.

File metadata

  • Download URL: robotframework_dashboard-0.2.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for robotframework_dashboard-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3fcf9adfb7540e6a8c339a412fa6cd3c0313c1f445dbd35857d4d4b6d402c31d
MD5 d1035ee7d4537bd84defb9fed1c02a35
BLAKE2b-256 5e2e36b16d389d1f99ef11730d8f48d9220b47d371120511f090b9998c75f20f

See more details on using hashes here.

File details

Details for the file robotframework_dashboard-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_dashboard-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcf5359dfa553816cc1e00a970d98f592303d4c3c4b4d47a4c3adaed25e7b9c5
MD5 5fbba7a953689bb654f068a114f00ba1
BLAKE2b-256 004d25e800978a80d58f1d6a34dd12fb5ddbfb3e5eb658afb1d2ee636d041e1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page