Skip to main content

A tool to extract test suite data from Robot Framework output.xml and generate HTML reports.

Project description

Unbound Report

Unbound Report is a powerful tool designed to extract and visualize test suite data from Robot Framework's output.xml file. The report is generated as a comprehensive HTML document, offering a clear and detailed view of your test execution. The report can be generated via the command line or by importing the module into your Python code.

Features

  • Extract Detailed Test Data: Capture information about test suites, test cases, keywords, and nested structures like loops from the Robot Framework's output.xml file.
  • Generate Interactive HTML Reports: Produce an HTML report with detailed sections, including graphical statistics, suite/test case details, and defect tracking.
  • Command-Line Interface and Module Import: Flexibility to generate reports using a simple command-line interface or by importing the module into your own scripts.

Report Structure

The generated Unbound Report consists of three main sections:
View Report : Unbound Report

Overview Section:

Provides graphical representations of test execution statistics, including pass/fail rates, duration, and other key metrics. Helps in understanding the overall performance and health of the test execution at a glance.

Suites Section:

Displays a list of all test suites along with their respective test cases. For each test case, it shows the associated keywords, their status, and execution time. Includes detailed information about setup/teardown actions and any nested keywords or loops.

Defects Section:

Focuses on the test cases that failed during execution. Highlights common errors and allows for quick identification of problematic areas in the test suites.

Installation

Install the package using pip:

pip install unbound-report

Usage

Command-Line Interface

You can generate the Unbound Report from the command line with the following command:

unboundreport -o /path/to/output.xml -s /path/to/save/

options

  • -h, --help : show this help message and exit
  • -v, --version : Version
  • -o OUTPUT, --output OUTPUT : Path to the input output.xml file
  • -l LOG, --log LOG : Path to the input log.html file
  • -s SAVE_PATH, --save-path SAVE_PATH : Path to save the processed file

Example

unboundreport -o output.xml -s ./reports

This command will parse the output.xml file and generate an HTML report named unbound-report.html.

Using as a Module

You can also generate the report by importing the module into your Python script:

from unbound_report.generate_report import generate_report

generate_report(output_file='output.xml',log_file='log.html', save_path='demo.html')

Example

from unbound_report.generate_report import generate_report

generate_report(output_file='output.xml',log_file='log.html', save_path='report.html')

This script will achieve the same result as the command-line example.

Development

To contribute to this project:

  1. Clone the repository.
  2. Install dependencies.
  3. Implement new features or fix bugs.
  4. Submit a pull request.

Contributing

Contributions are welcome! If you find any issues or have suggestions for new features, please create an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

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

unbound_report-1.0.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

unbound_report-1.0.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file unbound_report-1.0.1.tar.gz.

File metadata

  • Download URL: unbound_report-1.0.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for unbound_report-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9f343d598c53423f1b9422fec193802c39c6276e3c6897f5b61a4cdf7d0ccee3
MD5 29e97f0ef9d6d94082bdd6c084a9c2f4
BLAKE2b-256 0b065513cd85348edfdf94fc22d27f3608e39708c2f4a0b35bf5239c4aba3a5c

See more details on using hashes here.

File details

Details for the file unbound_report-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: unbound_report-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for unbound_report-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79bdd23f871a997be916b8798a870ae6ac4f0b50ae0b3fed7665ee7e82453c84
MD5 c8f39602905f91f73e7c672c20667c91
BLAKE2b-256 ab1d1b3f1da0ca620df4b6f2fb03d3e2b64d02fcb5f844a8453a5caa674f5373

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