A Unified Approach to Regression Testing for Mobile Apps