Suitest tests are heavily dependent on how robust element selectors are. The Suitest framework that is integrated into your tvOS application generates XPath for each UIView. This absolute XPath is however fragile.
As XPath is not stable because the UI element may have been wrapped, moved up or down in the view hierarchy very easily therefore making your selector obsolete. Of course, you could change the XPath to something more robust and unique for the element however this greatly increases the amount of effort. This is where the tvOS suitester command line tool will become very useful.
To use the tool, download and extract the zip file based on your Xcode version:
What does the tool do?¶
The tool sets the
AccessibilityIdentifier for elements that do not have this attribute set. The
tools scans your project folder for any interface builders such as
reads them and then modifies them.
The tool modifies elements which are UIView's or a subclass, that contain an empty
AccessibilityIdentifier will be given the ID property that the Xcode Interface Builder generated.
Once the tool is ran on the project, all UI elements will have their
attributes set correctly in the interface builder.
||build using scheme and configuration from arguments then from export plist|
||only build app from the source code without modification|
|Build specific help and options||
|Copy and modify||
|General help and options||
|Modify and build ipa||
|Modify specific help and options||
|modify||Copies source code, looks for elements without
||Configuration to build e.g. AdHoc, Release.||No|
||A path to ExportOption plist used for export ipa.||Yes|
||A path to the Project folder which will be built for Suitest.||Yes|
||Scheme name to build.||No|
||Project workspace to build. Tool supports only workspaces for now.||No|
||Shows all options.||No|
||Log message level.||No|