Pattern Matching in Test Automation