A Context-Driven Approach to Automation in Testing