Offline upload

Upload your test results at any time after their execution.

Runs Page with all Unit Under Testing (UUT) and their uploaded date.

Overview

TofuPilot allows you to upload your test results in real-time, but you might also need to upload them asynchronously—for example, if you're not connected to the internet during testing or to bulk import data from previous tests.

Integration

With the TofuPilot Python Client, you can upload test results, specifying started_at to keep the original test date; otherwise, the upload date will apply. Then use create_run to add test details or attachments.

from tofupilot import TofuPilotClient

client = TofuPilotClient()

def main():
    file_path = "path/to/your/openhtf/report.json"
    client.create_run_from_openhtf_report(file_path)

if __name__ == "__main__":
    main()

Uploaded runs then appear on the Runs page with their upload date.

Runs Page with all Unit Under Testing (UUT) and their uploaded date.

The Run page shows the started date of the test. These two runs have been started the same day (e.g. started_at October 28th) even if they have been uploaded different days.

Runs Page with all Unit Under Testing (UUT) and their uploaded date. Runs Page with all Unit Under Testing (UUT) and their uploaded date.

Was this page helpful?