/* * Copyright (C) 2015 DroidDriver committers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Helper classes for writing an Android UI test framework using DroidDriver. * *

UI test framework design principles

* * A UI test framework should model the UI of the AUT in a hierarchical way to maximize code reuse. * Common interactions should be abstracted as methods of page objects. Uncommon interactions may * not be abstracted, but carried out using "driver" directly. *

* The organization of the entities (pages, components) does not need to strictly follow the AUT * structure. The UI model can be greatly simplified to make it easy to use. *

* In general the framework should follow these principles: *

* *

Common pitfalls

* */ package io.appium.droiddriver.helpers;