72

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?

4

14 回答 14

38

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

于 2010-04-09T15:08:08.100 回答
23

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.

于 2008-12-31T06:56:37.617 回答
13

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.

于 2010-03-02T23:02:26.400 回答
5

How to use UIAutomation to create iPhone UI tests:

http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui-tests/

于 2010-07-06T10:21:35.357 回答
4

See also

于 2008-12-31T14:51:56.597 回答
4

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

于 2009-09-30T22:50:04.290 回答
4

Square just released their testing framework

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

于 2011-07-15T20:28:18.480 回答
4

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

于 2012-03-20T16:18:42.587 回答
3

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.

于 2011-04-06T19:51:44.317 回答
2

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

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

Best,

Brian

于 2009-07-24T22:14:01.103 回答
1

See also http://www.froglogic.com/pg?id=NewsEvents&category=111

Regards, Reginald

于 2009-09-02T04:54:23.343 回答
1

Pick whichever Automation Tool you want from this page: http://www.mobileappstesting.com/category/mobile-application-testing/mobile-application-testing-and-automation-tools/

Eggplant :- http://www.testplant.com/products/eggplant/

于 2011-07-29T09:39:51.020 回答
1

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!

于 2012-01-09T13:37:07.993 回答
0

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.

于 2012-05-31T11:53:34.373 回答