我是iPhone自動化新手,iOS4引入了UIAutomation框架。最近我使用UIAutomation通過儀器在iPhone模擬器上自動測試應用程序,但它給了我一個錯誤,如「意外錯誤 - [UIATarget_0x5a20d20 frontMostApp],/ SourceCache/UIAutomation_Sim /UIAutomation-37/Framework/UIATargetElements.m line 437」UIAutomation框架能在模擬器上工作嗎?
我也嘗試過使用iOS4更新後在iPhone 3G設備上運行應用程序。但是儀器給我顯示了警告「這個設備不支持自動化」。
我的問題是,UIAutomation是否在模擬器上工作?我是否需要購買像3GS或iPhone 4.0這樣的新設備才能運行?在此先感謝...
的[我們可以使用UI自動化工具與iPhone模擬器?(可能重複http://stackoverflow.com/questions/3397733/can-we-use-ui-automation -tools-with-the-iphone-simulator) – 2010-08-09 17:58:21