Efficient Strategies for Automating Time-Based Tests