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:

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 import generate_report

generate_report(input_file='output.xml', output_file='unbound_report.html')

Example

from unbound_report import generate_report
generate_report(input_file='output.xml', output_file='unbound_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.0.tar.gz (11.9 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.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unbound_report-1.0.0.tar.gz
  • Upload date:
  • Size: 11.9 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.0.tar.gz
Algorithm Hash digest
SHA256 2e3c38635d843d2932628500684fc0f641541f6989985ad2bb99ae5b136e75eb
MD5 62dffc57cbcf299ba5cd11c19f6cfe39
BLAKE2b-256 1c6b9a4856b6f117f3636d47a564bc2ebf7ec15e95bd383428e88ea2e4c67d43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unbound_report-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfc2001266227a6414feaa87a303640cede0d2f00295d4036c8293fcbe1cb68e
MD5 2734e83d20df2f3fa812e5b29d41802d
BLAKE2b-256 da4f5e44b531cb14adb210c38917568d4a17b8c47717735fdcc6ec02e8da3f67

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