General Motors (GM) Interview Question

When should a test case be automated?