Functional testing API for Android applications