Skip to content

A tool for inserting Robot Framework test run results into ReportPortal.

License

Notifications You must be signed in to change notification settings

doyou89/RPBot

 
 

Repository files navigation

RPBot

Test Python

RPBot is a Python script to serialize Robot Framework output files into a ReportPortal. This way the future Robot Framework related tools and plugins will have a unified storage for the test run results.

RPBot is a fork of DbBot-SQLAlchemy project that is using SQLAlchemy in order to store test run results in any of the major supported database systems.

Requirements

RPBot is tested on

  • Python 3.5+
  • Robot Framework 4.0+

It may (though it is not guaranteed) work with older versions of dependencies.

How it works

The script takes one or more output.xml files as input, and stores the respective results into a ReportPortal

Installation

This tool is installed with pip with command:

$ pip install rpbot

Alternatively you can download the source distribution, extract it and install using:

$ python setup.py install

Usage

$ python -m rpbot.run <options> <rp_group_options> <output.xml>
  • options

    • -d, --dry-run: do everything except store results into ReportPortal.
    • -v, --verbose: be verbose. WARN, INFO, and DEBUG available.
  • rp_group_options

    • --RP_UUID: ReportPortal UUID. (required)
    • --RP_ENDPOINT: ReportPortal URL. (required)
    • --RP_LAUNCH: ReportPortal launch name. (required)
    • --RP_PROJECT: ReportPortal project name. (required)
    • --RP_LAUNCH_DOC: ReportPortal launch description.
    • --RP_LAUNCH_ATTRIBUTES : ReportPortal launch attributes. Space-separated list of tags/attributes. ex) "CUSTOMER:KDI PKG_VER:SVR20C"
    • --RP_TEST_ATTRIBUTES: ReportPortal test attributes. Space-separated list of tags/attributes.
  • output.xml: Output XML file of robot framework

License

RpBot is released under the Apache License, Version 2.0.

See LICENSE.TXT for details.

About

A tool for inserting Robot Framework test run results into ReportPortal.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%