# OpenHTF, the open-source hardware testing framework in Python URL: / OpenHTF (Open Hardware Testing Framework) is an open-source Python framework for hardware testing, originally created at Google. Phases, measurements with limits, plugs for instruments, an operator UI and JSON test records. OpenHTF is a Python framework for writing hardware test scripts: the functional, end-of-line and burn-in tests that decide whether a board or a product passes. It was originally created at **Google** and is used from design verification through validation to manufacturing. This documentation is maintained by the team at TofuPilot, a plug-and-play database and analytics app for OpenHTF tests. It is independent from Google (see the disclaimer). OpenHTF tests are Python scripts that run a series of test steps on a Device Under Test (DUT), taking measurements along the way. The framework handles setup, execution and teardown, records everything, and produces a pass/fail outcome. Test steps — plain Python functions — that perform actions and return pass, fail, or skip. Phases → Values captured during phases, with optional validators (limits, regex, custom) that decide the outcome. Measurements → Reusable classes that wrap external hardware and software — instruments, the DUT's serial port, the operator. Plugs → Structured output with outcomes, measurements, logs and attachments, written by output callbacks to JSON or a database. Test Record →