This framework is not suggested!
Some materials for iOS - UIAutomation framework:
- Working with UIAutomation
- UI Automation
- UI Automation JavaScript Reference for iOS
- How Do I Perform UI Automation Testing in iOS 4
- iOS - UI Automation get textfield by accessibility label?
- iOS Automated Tests with UIAutomation
- Can’t get value of UIAStaticText?
UIAutomation
- Using JavaScript: each line of JavaScript in UIAutomation will trigger a request to iOS simulator, which make the awful performance of it;
- The framework is unstable: for the script attached, sometimes the testing results are different, even same environment and script are provided; and sometimes the simulator or instrument will hung and quit expected;
- The testing supporting of this framework is not good: the element can be get by its id, but can only get by its name/label occasionally, and there are some issues unresolved, like value of label item can’t be get;
- Readiness of JavaScript is hard, it doesn’t provide the capability to integrate with tools like Cucumber;
- It doesn’t have the capability to integrate with CI tools;
- It can’t run on real devices, but only on simulator, which means it can’t run parallel.