HILSTER Testing Framework

Welcome to the HILSTER Testing Framework documentation. It is a part of QABench.

HILSTER Testing Framework is a professional Python Testing Framework with a strong focus on reporting, industrial applications and functional safety.

It allows you to build HWIL-teststands (Hardware in the Loop teststands) with Python-based tests.

Tests can be created using Python scripts as well as Behavior Driven Development tests.

If you’d like to see videos look at the demo.

HILSTER Testing Framework seamlessly works with the Dashboard.

It can be used for free with the community license or you can get a commercial license.

You might be interested in the community add-ons, too.


htf is installed via pip:

pip install -i https://pypi.hilster.io htf-community

You might also be interested in the community license.

Getting Started

To get started, take a look at the installation instructions, the introduction and how to write tests, fixtures and available test reports.

Learn how to run tests from the command line and Python scripts.

If you prefer a more guided introduction take a look at the HILSTER Testing Framework Demonstrator.


import htf

def test_example(step, assertions, attachments, threads):
   with step("Tests can be structured with steps"):
      assertions.assert_true(True, "This step succeeds")

      with step("Attach a file if the outer step succeeds"):
         attachments.attach_file("graph.png", "Important graph")

   with step("Run something in the background"):
      def tick():
         while True:

if __name__ == "__main__":


If you have any questions or ideas, please don’t hesitate and e-mail us via support@hilster.io.