Digital testing of high-voltage circuit breakers