We would like to automatically purge all test results when a test session is cancelled. The issue at hand is that all results are included in higher level items and reports, even when the session is cancelled and the results are to be neglected. This can happen for instance when one discovers that the test setup is wrong or contains faulty components. Instead of modifying the reports etc., we prefer to tackle the root cause and delete all results from a cancelled test session.
The command tm purgeresults does the trick, but we can't seem to find the bean to include this functionality in a trigger.
Thanks in advance,