iPhone 的自动化测试

发布于 2024-07-10 05:49:19 字数 219 浏览 6 评论 0 原文

我知道这希望渺茫,但我想我会尝试一下。 有谁知道 iPhone 模拟器的自动化测试任何吗? 如果有像 Selenium 这样的东西,但对于 iPhone 模拟器,我会很高兴。 我不需要任何花哨的东西,比如断言,只需要一些可以伪造屏幕点击的东西,这样我就可以停止滥用我的触控板。 :)

有没有办法将点击或按键事件(例如在 android 上通过 adb)发送到 iOS 设备?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(14

南城旧梦 2024-07-17 05:49:19

iPhone OS 4.0(刚刚发布)包含一个用于测试自动化的“UIAutomation Instrument”。

自动化测试
通过使用新的 UIAutomation Instrument 编写触摸事件脚本来自动测试应用程序。

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

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

别在捏我脸啦 2024-07-17 05:49:19

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.

╰◇生如夏花灿烂 2024-07-17 05:49:19

Gorilla Logic 刚刚开源了一款适用于 iPhone 的真正录音/回放功能测试工具。 它称为 FoneMonkey,可在 http://www.gorillalogic.com/fonemonkey 上免费获得。

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.

乞讨 2024-07-17 05:49:19

试试这个:

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

UISpec 是iPhone 的行为驱动开发框架,提供驱动实际 iPhone UI 的完全自动化测试解决方案。 它是根据非常流行的 Ruby RSpec 建模的

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

别闹i 2024-07-17 05:49:19

Square 刚刚发布了他们的测试框架

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

Square just released their testing framework

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

仄言 2024-07-17 05:49:19

Telerik 刚刚发布了一款适用于 iOS 的自动化测试工具 - http ://www.telerik.com/automated-testing-tools/ios-testing/ios-application-testing.aspx

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

何其悲哀 2024-07-17 05:49:19

祝您尝试使用 JS 自动化 iOS 平台一切顺利。 当 QA 精通 JS 时,你就不必再做 QA 了。 我们中有很多人熟悉 Selenium,这反过来意味着您在某种程度上了解 Java。 我找到了一种使用完全开源的 Java 库来实现 iOS 自动化的方法。

我在上面放了一个视频:
http://www.vimeo.com/21999946

我很快就会发布更深入的视频。

由于它是 Java,因此它可以在任何 CI 环境中与 Junit、ANT、Maven 完美配合。

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.

吻安 2024-07-17 05:49:19

查看 UISpec http://code.google.com/p/uispec/

它是 BDD让您“驱动”iPhone 模拟器的测试框架。

最好的,

布莱恩

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

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

Best,

Brian

简单爱 2024-07-17 05:49:19

我写了一篇关于KIF(Keep It Function)的博客,这是来自公司广场的测试框架,非常好! 我用它来测试我们的 iPhone 应用程序。

有关如何设置框架的更多信息和示例

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

玩得开心!

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!

花间憩 2024-07-17 05:49:19

还有 Keynote 产品。 他们有:

企业交互测试中心(应用程序平台,任何具有网站/应用程序的设备。面向内部/外部的应用程序和网站,手动测试。)

企业自动化测试中心(应用程序平台,任何具有网站/应用程序的设备。带有脚本。)

测试中心开发人员(应用程序平台,任何带有网站/应用程序的设备,手动,无脚本。)

涉及未知成本,您必须致电他们。 但其功能集非常令人印象深刻。 他们的每部手机都有多个真实设备,您只需选择使用哪一个即可。 如果它们在使用中,您可以预订它们等。我认为这是测试任何移动应用程序的最终选择。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文