🌐
Openhtf
openhtf.com › openhtf documentation
OpenHTF Documentation: Python Hardware Testing Framework by Google
1 week ago - 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 ...
🌐
GitHub
github.com › google › openhtf
GitHub - google/openhtf: The open-source hardware testing framework. · GitHub
OpenHTF is a Python library that provides a set of convenient abstractions designed to remove as much boilerplate as possible from hardware test setup and execution, so test engineers can focus primarily on test logic.
Author: google
Discussions

Python framework to test hardware and control various equipment
I know this is an old thread, but since this came up while looking for python based solutions for Hardware-in-the loop tests, I figured this might help others as well. I found this curated list to be useful, which contains several python-based frameworks: https://github.com/sschaetz/awesome-hardware-test More on reddit.com
🌐 r/learnpython
8
5
November 15, 2022
How is Python used in test automation in embedded systems?
so many things: i/o logging between computer and embedded device like this creating/simulating algorithms and converting them to fixed point like this HDL verification as someone has mentioned like this countless more things - its often used to automate things you dont want to do by hand a lot of the time More on reddit.com
🌐 r/embedded
31
116
April 19, 2023
People also ask

Which Python versions does OpenHTF support?
OpenHTF 1.6 requires Python 3.10 or newer. The 1.5.x releases required Python 3.7 or newer.
🌐
openhtf.com
openhtf.com › openhtf documentation
OpenHTF Documentation: Python Hardware Testing Framework by Google
How is OpenHTF different from pytest?
pytest is a general software test runner. OpenHTF adds what hardware tests need: measurements with limits and units stored in the record, plugs with managed lifecycle for instruments, an operator UI with prompts, and a structured JSON test record per unit.
🌐
openhtf.com
openhtf.com › openhtf documentation
OpenHTF Documentation: Python Hardware Testing Framework by Google
Is OpenHTF still maintained?
Yes. It is maintained by a team at Waymo (Alphabet) and receives regular commits; release 1.6.0 shipped in March 2025.
🌐
openhtf.com
openhtf.com › openhtf documentation
OpenHTF Documentation: Python Hardware Testing Framework by Google
🌐
Reddit
reddit.com › r/learnpython › python framework to test hardware and control various equipment
r/learnpython on Reddit: Python framework to test hardware and control various equipment
November 15, 2022 -

Hi,

I am looking for a Python framework to test hardware (boards or multiple of boards) and control various equipment (scope, thermal chamber, power supplies, etc...) via VISA, SSH, modbus, serial for a long time of time (up to 7 days) of running. During this time, I would like to make calls to make adjustment to both DUT and equipment based on triggers or time (every 1, 2, 3 hours, etc..)

I have looked at:

OpenHTF (by Google) supported Python3.7

https://github.com/google/openhtf

Spintop OpenHTF (by Tackv, a spin branch off from Google) supported Python3.7

https://spintop-openhtf.readthedocs.io/en/latest/

FastAPI

https://fastapi.tiangolo.com/

Make a new framework and use Celery

https://docs.celeryq.dev/en/stable/getting-started/introduction.html

OpenHTF does not seem to have a way to continuously run the tests for a long period of time nor a way to make async to DUT/equipment. It is more like a manufacturer test to QC the product on the production line.

FastAPI seems to be good not sure if it can handle all the async call based on triggers/time. Celery seems to be quiet complex but it can trigger calls based on time.

For database storage, I will use influxdb/grafana for collecting/viewing data and postgres for storing DUT/equipment/test config/final test results. They will all be dockerized.

Do you have any suggestions/comments?

Thanks!

Top answer
1 of 5
4
I know this is an old thread, but since this came up while looking for python based solutions for Hardware-in-the loop tests, I figured this might help others as well. I found this curated list to be useful, which contains several python-based frameworks: https://github.com/sschaetz/awesome-hardware-test
2 of 5
2
In at least one application—spacecraft electronics testing, OpenHTF was an unmitigated nightmare. OpenHTF enforces an unfamiliar test architecture that gets in the way of fast hardware debugging. It was likely written by software geeks who know nothing about production testing. For design validation it is even worse. As I understand, OpenHTF is not even full documented with regards to implementing specific test situations. In some cases one can only guess what their various strictures are good for and what problem they initially were intended to solve. The effort we needed to make this stuff work for us was two or three times greater than the amount of time we could have spent writing our home-grown software all over again, to say nothing of actual test code. Even worse, we got stuck with a production system deployed that will always be impossibly hard to service. In our case it would have been better to stick to our home-grown solution, but some bozo manager forced our group to use it over my strenuous objections. I quit in disgust and he is no longer with the company either. Keep the focus on your test code and make sure the framework doesn’t force an entire rewrite. Bad framework.
🌐
GitHub
github.com › sschaetz › awesome-hardware-test
GitHub - sschaetz/awesome-hardware-test: A curated list of awesome hardware test projects · GitHub
Flojoy Studio - Flojoy Studio is a desktop visual scripting IDE for running Python scripts - primarily for DAQ, test benches, robotics control, and no-code embedded systems · htf - a hardware testing framework for automated tests, continuous integration, continuous delivery and end-of-line tests, written in Python and certified for ISO/TR 80002-2 (medical devices)
Author: sschaetz
🌐
Golioth
blog.golioth.io › home › automated hardware testing using pytest
Automated hardware testing using pytest - The Golioth Developer Blog
March 4, 2025 - Pytest is a framework for testing and we use it for our Firmware SDK. This post reviews setting up fixtures that connect embedded projects to pytest.
🌐
Substack
nominalinc.substack.com › nominal’s substack › hardware testing with openhtf & python
Hardware testing with OpenHTF & Python - by Jack Parmer
August 12, 2025 - OpenHTF is Google's open-source Python library built specifically for hardware testing. First shared at the 2016 Google Test Automation Conference by Joe Ethier and John Hawley, OpenHTF was born out of Google's Glass project, where traditional ...
🌐
PyPI
pypi.org › project › nanaimo
Client Challenge
March 14, 2020 - JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Find elsewhere
🌐
Hilster
docs.hilster.io › htf › latest
htf - Hardware Testing Framework — htf 4.3.0 documentation
htf is a professional Hardware Testing Framework based on Python to easily realize Automated Hardware Tests.
🌐
Freedom To Play
frdmtoplay.com › openhtf-the-missing-tutorial
Automating hardware testing with a Teensy, Firmata, and OpenHTF
April 11, 2020 - OpenHTF ("Open-Source Hardware Testing Framework") is a Python test framework open-sourced by Google at the 2016 Google Test Automation Conference with a big bold disclaimer: "This is not an official Google product", so hopefully OpenHTF cannot be discontinued.
🌐
GitHub
github.com › fairwaves › pymtest
GitHub - fairwaves/pymtest: Python post-manufacturing hardware test framework · GitHub
We invite companies manufacturing hardware to contribute to the Pymtest core test framework, as well as contribute test vectors for various types of hardware.
Starred by 2 users
Forked by 3 users
Languages: Python 99.6% | Prolog 0.4%
🌐
FunTest
funtestfpc.com › post › funtest-and-python-a-simplified-approach-to-hardware-test-automation
FunTest and Python: A Simplified Approach to Hardware Test Automation
January 16, 2024 - Ease of Use and Readability: Python is known for its simplicity and readability, making it easy for engineers to write and maintain test scripts. This user-friendly syntax allows for quicker development and less time spent on understanding complex code structures. Extensive Libraries and Cross-Platform Compatibility: Python's extensive range of libraries covers virtually every need in hardware test automation, from interfacing with hardware to advanced data processing.
🌐
Softlandia
softlandia.com › en › blog › revolutionizing-hardware-testing-with-python-based-solutions
Revolutionizing Hardware Testing with Python-based Solutions
April 6, 2025 - Often, the test system is a software framework written in Python that can run user-defined test scripts, also written in Python. This approach is commonly used in R&D labs to validate new hardware during development.
🌐
FixturFab
fixturfab.com › home › resources › open source › pytest-f3ts
pytest-f3ts | FixturFab
January 7, 2025 - FixturFab's open-source Python library for connecting to and controlling the test instruments in a functional test system. An open-source reference test suite for FixturFab's FixturCtrl, built with pytest-f3ts and f3ts-hardware-utils.
🌐
Qabench
qabench.io › docs
QABench | Hardware-in-the-Loop Testing for Embedded-Systems with Python
QABench | Hardware-in-the-Loop Testing for Embedded-Systems with Python
🌐
GitHub
github.com › topics › hardware-testing
hardware-testing · GitHub Topics · GitHub
A toy library for conducting hardware tests using Arduino as a DAQ for Robot Framework. arduino data-acquisition daq hardware-testing robotframework-library ... python microcontroller embedded sdk firmware esp32 stm32 ci-cd pytest pytest-plugin ...
🌐
Slideshare
slideshare.net › home › engineering › automated hardware testing using python
Automated hardware testing using python | PPT
March 26, 2016 - SOFTWARE DESIGN -PYTHONSOFTWARE DESIGN - PYTHON An open source software used to Automate the Hardware Testing UNITTEST module supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, ...
🌐
Scribd
scribd.com › doc › 305992221 › Automated-Hardware-Testing-Using-Python
Automated Hardware Testing Using Python | PDF | Software Testing | Embedded System
Automated Hardware Testing Using Python - Free download as Powerpoint Presentation (.ppt / .ppsx), PDF File (.pdf), Text File (.txt) or view presentation slides online. Hardware Test Equipment and python software design at low cost with help of opensource tools.. 1. Arduino 2.Python
Rating: 3.7 ​ - ​ 3 votes
🌐
LabJack
labjack.com › blogs › news › hardware-in-the-loop-hil-testing-with-labjack-and-hilsters-hardware-testing-framework-htf
Hardware-in-the-Loop (HIL) testing with LabJack and HILSTER's hardware
September 21, 2023 - htf (a part of the quality assurance suite QABench) is a professional Hardware Testing Framework, based on Python, that makes it easier to perform Automated Hardware Tests.
🌐
Awesome-hardware-test
awesome-hardware-test.com › en
Awesome Hardware Test - Testing Tools, Frameworks & Instruments for Electronics Validation | Awesome Hardware Test
PYTHONEXECUTION_ENGINES · Google's framework for scalable hardware validation and manufacturing tests · OSS · CRAPPY IMAGE COMING SOON · 92 · CRAPPY · PYTHONEXECUTION_ENGINES · Python framework for real-time data acquisition and parallel hardware control ·