Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.36 KB

custom_output_handlers.rst

File metadata and controls

49 lines (31 loc) · 1.36 KB

Adding Custom Output Handlers

Third Party Output Handlers

How to Make Your Own Output Handler

You can make your own Output Handler, following the next two steps:

  • Inheriting from rotest.core.result.handlers.abstract_handler.AbstractResultHandler, and overriding the relevant methods.
  • Register the above inheriting class as an entrypoint in your setup.py file inside setup():

    entry_points={
        "rotest.result_handlers":
            ["<handler tag, e.g. my_handler> = <import path to the monitor's module>:<monitor class name>"]
    },
  • Make sure it's being installed in the environment by calling

    python setup.py develop

For an example, you can refer to rotest_reportportal plugin.

Available Events

The available methods of an output handler:

rotest.core.result.handlers.abstract_handler.AbstractResultHandler