Custom Scripts

Validity is shipped together with some Custom Scripts.

The scripts are available under Customization > Scripts GUI menu.

Run Compliance Tests

This script executes Compliance Tests and creates Test Result instances.

This script also deletes the old Test Results and Reports if they exceed the maximum number from settings.

The script may generate a lot of DB queries. To spread the queries over time you can adjust sleep_between_tests setting.

Params

Param API Param Description
Sync Data Sources sync_datasources Sync all Data Sources which are bound to Devices
participating in the script execution
Make Compliance
Report
make_report Create Report together with Test Results
Specific Selectors selectors Run the tests only for a limited number of selectors
Specific Devices devices Run the tests only for a limited number of devices.
Specific Test Tags test_tags Run only those tests which have at least one of
the specified tags
Explanation Verbosity
Level
explanation_verbosity 0 - No explanation at all.
1 - Explanation of the calculation steps
2 - the same as 1 plus deepdiff value in case of
comparisons
Override DataSource override_datasource Ignore Data Sources bound to Devices and use
this one instead. It may be useful if you want to
use Validity Polling Data Source just to run some
operational tests only for now.