简体   繁体   English

单元测试应用程序委托applicationWillResignActive

[英]Unit test app delegate applicationWillResignActive

Has anyone found a way of unit testing of App Delegate message applicationWillResignActive. 有没有人找到App Delegate消息applicationWillResignActive的单元测试方法。 I need to basically start simulator and then switch to springboard and then check a variable. 我需要基本上启动模拟器,然后切换到跳板,然后检查变量。

Have you tried testing it with Instruments and UI Automation? 您是否尝试过使用Instruments和UI Automation测试它? (example: http://alexvollmer.com/posts/2010/07/03/working-with-uiautomation/ ) (示例: http : //alexvollmer.com/posts/2010/07/03/working-with-uiautomation/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM