4.8.4. Design for testability in iOS AUTs

4.8.4.1. Naming components

To be able to robustly test iOS AUTs, we highly recommend naming the components in your AUT. The name that is used as a part of the object recognition is the accessibility identifier. This is a variable that can be specified for each UI component in an iOS AUT. It is language-independent and is designed for use in automated tests. We recommend using unique names throughout the AUT.

4.8.4.2. Adding support for text retrieval

If you use custom UI views and cannot access the text contained in them during a test, then you can implement the UITestable protocol, which provides a method allowing the remote control to read the text from such controls.



Copyright BREDEX GmbH 2015. Made available under the Eclipse Public License v1.0.