Automated testing tools
less than a minute
This example shows how to create automated reports from the data logged on a Motorcortex controller. The report is generated as a PDF file including plots and tables based on the logged data. The report generation is fully automated and can be scheduled to run at specific intervals or triggered by certain events.
Installing Python libraries
The automated reporting examples also need Jinja2 and WeasyPrint. On the latest Motorcortex RTOS images both are already pre-installed, so the scripts can run directly from the controller.
To run from a Linux (Debian/Ubuntu) desktop, install the tools with the autotest extra, which pulls in both libraries:
pip install motorcortex-python-tools[autotest]
Downloading example files
The example files are stored in motorcortex-python-tools, which includes an actuator test with the template and script to generate the report.