iPhone 的自动化测试
我知道这希望渺茫,但我想我会尝试一下。 有谁知道 iPhone 模拟器的自动化测试任何吗? 如果有像 Selenium 这样的东西,但对于 iPhone 模拟器,我会很高兴。 我不需要任何花哨的东西,比如断言,只需要一些可以伪造屏幕点击的东西,这样我就可以停止滥用我的触控板。 :)
有没有办法将点击或按键事件(例如在 android 上通过 adb)发送到 iOS 设备?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(14)
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
这是一篇关于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.
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.
如何使用 UIAutomation 创建 iPhone UI 测试:
http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui-tests/
How to use UIAutomation to create iPhone UI tests:
http://answers.oreilly.com/topic/1646-how-to-use-uiautomation-to-create-iphone-ui-tests/
另请参阅
See also
试试这个:
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
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
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
祝您尝试使用 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.
查看 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
另请参阅 http://www.froglogic.com/pg?id=NewsEvents&类别=111
问候,
雷金纳德
See also http://www.froglogic.com/pg?id=NewsEvents&category=111
Regards,
Reginald
从此页面中选择您想要的自动化工具: http://www.mobileappstesting.com/category/mobile-application-testing/mobile-application-testing-and-automation-tools/
茄子:- http://www.testplant.com/products/eggplant/
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/
我写了一篇关于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!
还有 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.