General Motors (GM) interview question

When should a test case be automated?