HILSTER Testing Framework¶
Welcome to the HILSTER Testing Framework documentation.
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.
HILSTER Testing Framework seamlessly works with the Dashboard.
htf is installed via pip:
pip install -i https://pypi.hilster.io htf-community
You might also be interested in the community license.
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: print('tick') threads.run_background(tick) if __name__ == "__main__": htf.main()
If you have any questions or ideas, please don’t hesitate and e-mail us via
- Installation, Activation and Upgrading
- Writing Tests
- htf — Command line utility
- Running tests
- Specifying tests
- Running multiple tests
- Report Server
- Draft Reports
- Minimized Report Size
- Shuffle Tests
- Fail fast
- File pattern
- Enable Bash-completion
- Open docs
- View licenses
- Show version
- htf.main() — Testscript utility
- Docker Integration
- Dry Run
- Data Driven Testing
- Interactive Testing
- Test Reports
- Signed Reports
- Report Tool
- Modbus — The Modbus Testing Framework
- HART — The HART Testing Framework
- I/O — Input and Output
- Power Supplies
- Retry Functions
- Issue Tracking
- Thread — A traceable thread implementation
- Filters — Building generic filter expressions
- Terminal Colors