Skip to content

Automatic upload after a test session is finished

When running tests using Typhoon Test Hub, adding the argument --tth-upload to the pytest call triggers an automatic upload of the Allure report to Typhoon Test Hub.

When the test session finishes, the history of previous test reports is retrieved from Typhoon Test Hub. Based on the results of the test session and history of previous reports, an Allure report is generated using typhoon-allure and uploaded to Typhoon Test Hub.

Option tth-tags is an optional parameter which can be defined as an argument in the terminal when starting a test session: --tth-tags=TAG_NAMES. This option allows tagging an execution to which the report is assigned with one or multiple tags defined as a single string divided by commas (e.g. --tth-tags=tag1,tag_2,third_tag). The Allure report history is generated based on reports that belong to a previously tagged executions with the same tags.

Once a pytest session is finished, the result of the testing process is an Allure results directory. The Allure results directory contains a summary and raw logs for each executed test. Based on Allure results directory content, an Allure report is generated. An Allure report is a structured report based on parsed and processed information from an Allure result.