The Apple Watch is coming. Are you ready? With the release of the much-anticipated watch happening in less than a month, I thought it would be fun to talk about iOS testing. This episode should help you get up-to-speed with iOS testing and start thinking about how you’re going to test Apple Watch apps. Andy Obusek is an iOS mobile developer at the popular Email marketing firm AWeber, and he shares some of his favorite IOS tips and tricks with us.
46: Andy Obusek: iOS Testing: The Apple Watch is Coming – Are You Ready?
About this episode
Andy Obusek
Andy has been an iOS Engineer since iOS 3.0 with professional experience as an independent and enterprise developer. He is the co-host of the podcast Brotherly Mobile, where he talks about technology and software development with a loose focus on mobile devices. Andy has also spent significant time coding in the J2EE world and contributes articles to many of the popular technology how-to sites, including Tuts+.
Quotes & Insights from this Test Talk
- XCODE is where you write your IOS code in.
- You have two options when debugging your IOS apps – either on a physical device or a simulator – and there are pros and cons for running on either one.
- It normally takes more time to run your test on an actual device.
- XCTest is Apple’s unit testing framework.
- Writing automation tests is hard, and is something you need organizational support for to be successful with.
- You write Objective-C code that calls methods from your “production" code and verify that the code under test actually does what it's intended to do.
- UI Automation is a tool provided by Apple to perform a higher level of testing on your iOS application than anything achievable with XCTest.
- UI Automation tests are written in JavaScript.
- OCMock is one of Andy’s favorite open-source tools that helps to mock objects for Objective-C.
- KIF, which stands for Keep It Functional, is an iOS integration test framework. It allows for easy automation of iOS apps by leveraging the accessibility attributes that the OS makes available for those with visual disabilities.
- KIF allows you to write automated tests using Objective-C or Swift.
- FBSnapshotTestCase – created by Facebook and allows you to create image-based UI automated tests.
- It's important that KIF does not make it into production code, as it will get your app submission denied by Apple.
- Xcode 6 and above has the ability to measure the performance of a piece of code.
- Apple Watch uses the WatchKit to write watch apps. The code you write for Apple Watch apps is going to be bundled with the iOS app that is paired with that WatchKit app.
- Much, much more!
Resources
- Introduction to Testing on IOS
- Introduction to iOS Testing with UI Automation
- FBSnapshotTestCase – Facebook mobile image-based testing framework
- OCMock – Objective-C mocking library
- KIF – Cool new iOS automated testing framework
- WatchKit
- BOOK->Test iOS Apps with UI Automation: Bug Hunting Made Easy By Jonathan Penn
Connect with{Name}
- Twitter: @obusek
- Blog: http://www.andyobusek.com/
- Podcast: Brotherly Mobile
May I Ask You For a Favor?
Thanks again for listening to the show. If it has helped you in any way, shape or form, please share it using the social media buttons you see on the page.
Additionally, reviews for the podcast on iTunes are extremely helpful and greatly appreciated! They do matter in the rankings of the show and I read each and every one of them.
Special offer for TestTalks listeners, get 20 hours of automated testing for free when you sign-up with promo code testtalks14 (more info).
Keep listening
Related episodes

Automation Testing Podcast · Ep. 612
Robot Framework Test Automation: Automate Web, Desktop, Mobile, and Embedded Systems
What makes Robot Framework flexible enough to test medical devices, low code bots, monitoring systems, and embedded
Nov 17

Automation Testing Podcast · Ep. 611
Playwright at Scale: Run 500 Tests in Minutes with Oliver Stenbom
with Oliver Stenbom
Is your Playwright suite slowing you down instead of speeding you up? In this episode, Oliver Stenbom,
Nov 10

Automation Testing Podcast · Ep. 610
How to Prove Your Release Is Ready When AI Writes the Code
How to Prove Your Release Is Ready When AI Writes the Code? Can you prove your software is ready to ship, or does that answer still depend on a meeting and a spreadsheet? Want to see if your team can prove a release is ready? Book a custom LoopIQ demo with Ashwin: https://testgld.link/loopiqdemo In this episode,
Nov 3

Automation Testing Podcast · Ep. 609
Why Your AI Tests Pass When Your Features Fail with Donovan Brady
with Donovan Brady
Why Your AI Tests Pass When Your Features Fail? Donovan Brady of Leapwork shows how to make
Oct 27

