testplan.exporters.testing.webserver package

Submodules

testplan.exporters.testing.webserver.base module

Web server exporter for test reports, it opens a local http web server which can display the test result.

class testplan.exporters.testing.webserver.base.WebServerExporter(name='Web Server exporter', **options)[source]

Bases: BaseExporter

Web Server Exporter.

Parameters:
  • ui_port (int) – Port of web application.

  • json_path (str) – File path for saving JSON report.

  • web_server_startup_timeout (int) – Timeout for starting web server.

Also inherits all Exporter options.

CONFIG

alias of WebServerExporterConfig

export(source: TestReport, export_context: ExportContext | None = None) Dict | None[source]

Exports report to JSON then opens a local webserver to display it.

Param:

source: Testplan report to export

Param:

export_context: information about other exporters

Returns:

dictionary containing the possible output

property report_url
property web_server_thread
class testplan.exporters.testing.webserver.base.WebServerExporterConfig(**options)[source]

Bases: ExporterConfig

Configuration object for WebServerExporter # pylint: disable=line-too-long object.

classmethod get_options()[source]

Override this classmethod to provide extra config arguments.

Module contents