Automated testing for iPhone

IphoneTestingIos SimulatorAutomated TestsIos Ui-Automation

Iphone Problem Overview


I know this one is going to be a long-shot, but I thought I'd try. Does anyone know of any automated test anything for the iPhone simulator? I'd love it if there was something like Selenium but for the iPhone simulator. I don't need anything fancy like assertions, just something that can fake out taps on a screen so I can stop abusing my trackpad. :)

Is there a way to send taps or keyevents (like on android over adb) to iOS devices?

Iphone Solutions


Solution 1 - Iphone

iPhone OS 4.0 (just announced) includes a "UIAutomation Instrument" for test automation.

Automated testing
Automate the testing of your application by scripting touch events using the new UIAutomation Instrument.

From: http://developer.apple.com/technologies/iphone/whats-new.html#tools

Solution 2 - Iphone

Here's an article about automated user interface testing for the iPhone that you may find helpful. It's a little kludgy but it probably gets the job done for certain tasks. Note that I haven't yet tried it myself.

Solution 3 - Iphone

Gorilla Logic has just open sourced a true record/playback functional testing tool for the iPhone. It's called FoneMonkey and it's freely available at http://www.gorillalogic.com/fonemonkey.

Solution 4 - Iphone

Solution 5 - Iphone

Solution 6 - Iphone

Try this:

http://code.google.com/p/uispec/

UISpec is a Behavior Driven Development framework for the iPhone that provides a full automated testing solution that drives the actual iPhone UI. It is modeled after the very popular RSpec for Ruby

Solution 7 - Iphone

Square just released their testing framework

http://corner.squareup.com/2011/07/ios-integration-testing.html

Solution 8 - Iphone

Telerik just released an automated testing tool for iOS - http://www.telerik.com/automated-testing-tools/ios-testing/ios-application-testing.aspx

Solution 9 - Iphone

Good luck with trying to automate iOS platform with JS. By the time QA gets proficient with JS, well you wouldn't have to be QA anymore. There is plenty of us out there that are familiar with Selenium which in turns means you know Java to some extent. I have found a way to automate iOS using complete open source with Java Libraries.

I put up a video on it: http://www.vimeo.com/21999946

I will will be putting up more in depth video shortly.

And since its Java it works perfectly with Junit, ANT, Maven in any CI environment.

Solution 10 - Iphone

Check out UISpec http://code.google.com/p/uispec/

It's BDD testing framework that lets you "drive" the iphone simulator.

Best,

Brian

Solution 11 - Iphone

Solution 12 - Iphone

Solution 13 - Iphone

I blogged about KIF (Keep It Functional), this is the testframework from the company square and it is really good! I use it to test our iPhone app.

More information and an example how to setup the framework

http://dnlkntt.wordpress.com/2011/12/02/iphone-test-automation-using-kif-keep-it-functional/

Have Fun!

Solution 14 - Iphone

There's also Keynote products. They have:

Test Center Enterprise Interactive (App platform, any device with website / app. Internal / external facing apps and websites, manual testing.)

Test Center Enterprise Automation (App platform, any device with website / app. WITH scripting.)

Test Center Developer (App platform, any device with website / app, manual, no scripting.)

Unknown costs involved, you have to call them. But the feature set is very impressive. They have multiple real devices for each handset and you just select which one you use. If they are in use you can book them etc. I think this is the ultimate option for testing any mobile app.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsammichView Question on Stackoverflow
Solution 1 - IphoneDave HuntView Answer on Stackoverflow
Solution 2 - IphoneMarc NovakowskiView Answer on Stackoverflow
Solution 3 - IphoneStu SternView Answer on Stackoverflow
Solution 4 - IphonemarkivView Answer on Stackoverflow
Solution 5 - IphoneKristopher JohnsonView Answer on Stackoverflow
Solution 6 - IphonekrishcView Answer on Stackoverflow
Solution 7 - IphoneTom PinckneyView Answer on Stackoverflow
Solution 8 - IphoneShoerobView Answer on Stackoverflow
Solution 9 - IphoneLaser HawkView Answer on Stackoverflow
Solution 10 - IphoneBrianView Answer on Stackoverflow
Solution 11 - IphoneReginald StadlbauerView Answer on Stackoverflow
Solution 12 - IphoneNeoView Answer on Stackoverflow
Solution 13 - IphoneDanielView Answer on Stackoverflow
Solution 14 - IphoneAdamantusView Answer on Stackoverflow