testplan.exporters.testing.http package

Module contents

HTTP exporter for uploading test reports via HTTP transmission. The web server must be able to handle POST request and receive data in JSON format.

class testplan.exporters.testing.http.HTTPExporter(name: str = 'HTTP exporter', **options)[source]

Bases: BaseExporter

HTTP exporter.

Parameters:
  • http_url (str) – Http url for posting data.

  • timeout (int) – Connection timeout.

Inherits all Exporter options.

CONFIG

alias of HTTPExporterConfig

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

Uploads report to remote HTTP server.

Param:

source: Testplan report to export

Param:

export_context: information about other exporters

Returns:

dictionary containing the possible output

class testplan.exporters.testing.http.HTTPExporterConfig(**options)[source]

Bases: ExporterConfig

Configuration object for HTTPExporter object.

classmethod get_options()[source]

Override this classmethod to provide extra config arguments.