I have written a python script to clear all open testpoints. To run it from the command line:
clear_all_testpoints
It can also be ran from the CDS Overview MEDM screen by pressing the 'ClearTestPoints' button in the lower right corner of the screen.
In both cases, if there are testpoints to be cleared a confirmation message is displayed (see attachment). If confirmed, then the open testpoints are cleared.
Note that the h1calinj model is exempted from this due to hardware injection testpoints.