Offline upload
Upload your test results at any time after their execution.

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():
# Replace with actual path of your report
file_path = "data/PCB01A69658.openhtf_test.2025-01-20_15-32-06-058.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.

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.


Offline upload
Upload your test results at any time after their execution.

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():
# Replace with actual path of your report
file_path = "data/PCB01A69658.openhtf_test.2025-01-20_15-32-06-058.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.

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.

