Functional Testing is system level , end-to-end testing of your app from a user's perspective. Automating the process of functional testing of your app offers several benefits – it saves time and effort, it's repeatable, simplifies regression testing, enables testing with large data sets and it can be tied into your Continuous Integration process. UI Automations is an automated functional test framework from Apple. Here, user interactions are driven by test scripts are written in JavaScript and executed using the Instruments Automation tool.
While there are several other automated functional test tools available including Calabash, KIF, Frank and Fone Monkey, UI Automations has the benefit that it is very simple to use, needs minimal or no changes to your existing app and since it's from Apple, it is (fairly) well supported and maintained.
I recently gave a talk on automated functional testing of iOS apps using UI Automations. You can download the presentation from this link. There is also a sample demo application with a corresponding set of UI Automation test scripts.
2 comments
Trackback e pingback
No trackback or pingback available for this article
Hi Priya,
Can you please advice me if the UIAutomation tool supports automating apps built with WKWebview?
Thanks in advance.
Regards,
Divya.
hi Divya
You can use UIAutomation to test any native app. It should not matter if the content is displayed within a WKWebView or otherwise. As of Xcode7/iOS9, you can use UI testing to UI test your apps. https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.html