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:
testplan.common.exporters.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: testplan.report.testing.base.TestReport, export_context: Optional[testplan.common.exporters.ExportContext] = None) → Optional[Dict[KT, VT]][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
-
report_url
¶
-
web_server_thread
¶
- ui_port (
-
class
testplan.exporters.testing.webserver.base.
WebServerExporterConfig
(**options)[source]¶ Bases:
testplan.common.exporters.ExporterConfig
Configuration object for
WebServerExporter
# pylint: disable=line-too-long object.