Typhoon Test Hub API client library documentation
Version: 1.2.0
Description
The Typhoon Test Hub API client library (tth-api-client) provides a set of functions for interacting with Typhoon Test Hub API.
Installation
Package is available on PyPI. To install the tth-api-client library from PyPI, use:
Getting started
To interact with Typhoon Test Hub API, you first need to instantiate a client. APIKeyClient is currently the only supported client that requires an API key for authentication:
You can now trigger an event trigger:
You can obtain information of selected Execution:
You can wait for the Execution to finish:
You can upload an Allure report:
allure_report_path = "path_to_allure_report_directory"
report_id = client.report.upload_report(allure_report_path, execution_id)
You can upload an artifact:
file_to_upload_path = "some_file.txt"
artifact_id = client.artifact.upload_artifact(file_to_upload_path)
You can download an artifact: