Thursday, October 3, 2013

Learning UIAutomation

I am in the midst of writing automation for an iOS project. One of the tools I may select is bundled with Apple's Instrumentation software, UIAutomation. As I search and read the web for information about iOS automation and general mobile test topics, I find it difficult to organize the information in a coherent way. This blog post and other will be my attempt to being some order to my research.

Working with UIAutomation
http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/

An oft searched for quote from Alex Vollmer's posting on Working with UIAutomation is "First, log the element tree (via UIATarget.logElementTree()) liberally and often."

As I get used to writing Javascript again, I find myself missing the IntelliJ IDE I used when writing Java based selenium web automation. It had been very helpful to use its Intellisense type tools...

UIAElement Class Reference
http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Reference/UIAElementClassReference/UIAElement/UIAElement.html

iOS Automated Tests with UIAutomation
http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation

Its dated April 8, 2012. I have not read through it much, but doesn't hurt to have another general reference handy.

http://www.juddsolutions.com/downloads/UnitAndFunctionalTestingForiOSPlatform.pdf

Online JavaScript Interpreter
I am pretty sure, but could be wrong, that there is no console based javascript interpreter outside of a browser. I want to exercise javascript as a functional language rater than anything ties to a browser. One tool I ran across is an interactive interpreter that runs in a browser. Maybe this is something useful.

Of particular interest to me is that I can save the page as a static page to run when disconnected from the internet or when and if the page moves or is removed from the web.

http://math.chapman.edu/~jipsen/js/

UI Automation JavaScript Reference
http://developer.apple.com/library/ios/documentation/DeveloperTools/Reference/UIAutomationRef/UIAutomationRef.pdf

gumbypp's iPhone device testing page
http://iphone.gumbypp.com/provisioning.html

A fantastic mind map for iOS testing. I would love to modify this for my own project as a good top level "test plan"
http://www.ministryoftesting.com/2012/09/ios-testing-mindmap-checklist/
http://farm9.staticflickr.com/8033/7916949920_37dc872d36_o.png

More
http://www.ministryoftesting.com/resources/mobile-testing/

Really Good Article...

http://vokalinteractive.com/2011/12/02/automated-testing-in-ios/

A forward-thinking scripter could use predicates to ensure the script works even as your interface is reorganized in the future.


http://stackoverflow.com/questions/7308058/best-resources-for-uiautomation-testing-for-ios-applications

http://agilewarrior.wordpress.com/2012/07/26/getting-started-with-frank/

Test Studio from Telerik
http://www.telerik.com/automated-testing-tools/support/documentation/mobile-testing/overview.aspx

Pivotal Labs

http://pivotallabs.com/iphone-ui-automation-tests-a-decent-start/
http://pivotallabs.com/iphone-ui-automation-tests-with-jasmine/

http://juddsolutions.blogspot.com/2010/06/your-phone-is-so-much-more-than-phone.html

http://www.testingexcellence.com/does-automating-your-manual-tests-give-you-good-automated-tests/
http://blog.smartbear.com/automated-testing/divide-your-automated-testing-efforts/

UI Automation test runner - Bwoken
http://bendyworks.github.io/bwoken/

iOS UI Automation
http://randomzone.in/2013/04/11/introduction-to-ios-ui-automation/
UI Automation + tuneup.js
  •     It is the Apple’s inbuilt Automation testing framework.
  •     It is highly stable and also reliable testing framework.
  •     It uses javascript to automate the testcases.
  •     Automation can also be performed in the specified devices
  •     It can also be accessible from command line so that we can also integrate this with Hudson
  •     Considering its salient features,simplicity UIAutomation is preferred for automating the test cases over other testing frameworks
Bwoken – iOS UIAutomation testing in CoffeeScript
http://thechangelog.com/bwoken-ios-uiautomation-testing-in-coffeescript/

iOS automation testing: the new baseline skill for ensuring quality

http://aalittle.com/iOS-automation



VIDEO
Introduction to UIAutomation Testing on iOS (Video/Slides)
https://www.cocoacontrols.com/posts/2012/11/13/introduction-to-uiautomation-testing-on-ios-video-slides



No comments: