Automated Testing Tools

This section will explain how to use the automated reporting tools

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

To use the automatic reporting examples also jinja2 (http://jinja.pocoo.org/docs/2.10/) and weasyprint (https://weasyprint.org/) is required. On the latest motorcortex RTOS images jinja2 and weasyprint are already pre-installed, so the scripts can also run directly from the controller.

To run from a Linux (Debian/Ubuntu) desktop the required libraries must be installed:

pip install jinja2 weasyprint motorcortex-python motorcortex-python-tools

Downloading Example Files

The example files are stored on motorcortex-python-tools. Here you can find an example of an actuator test with the template and script to generate the report.