Table Views in iOS are used to organize information on the screen. They may just consist of items (and therefore look like a simple list (4.2)), or they may contain various sections - each section can contain other components (4.3).
Both types of Table View are testable using the actions available on the List component.
You can, e.g. select items from the list, check their existence etc.
In the Table Views that contain other components, you can also address the individual components (labels, buttons etc.) in the list using the actions such as check existence, check text, click etc.
When writing a test on these components, it is important to decide which component you want to test 4.7.4.
If you need to scroll to a certain section of a list that is currently not visible, you can use the select action on the list component to make the correct portion of the screen visible. You can also use 0 clicks to simply hover over the item instead of tapping it.
Bear in mind that many apps remember where you were on a screen. You may need to add explicit scrolling (via selection) to your tests in order to ensure that the components you require are on screen.
Figure 4.2: Simple Table View (list component)
Figure 4.3: Grouped Table View (list component)
Copyright BREDEX GmbH 2014. Made available under the Eclipse Public License v1.0.