【发布时间】:2012-12-12 10:38:13
【问题描述】:
您将如何设置模拟 UITouches 的回归测试?
我正在开发一款 iOS 游戏,并希望对核心功能进行一些回归测试。我需要自动触发对 touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 等的调用以获得固定的假触摸列表,然后我可以自动评估测试结果。
【问题讨论】:
标签: ios testing uikit regression
您将如何设置模拟 UITouches 的回归测试?
我正在开发一款 iOS 游戏,并希望对核心功能进行一些回归测试。我需要自动触发对 touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 等的调用以获得固定的假触摸列表,然后我可以自动评估测试结果。
【问题讨论】:
标签: ios testing uikit regression
没有公共构造函数,但人们找到了方法,请参阅
http://www.cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html
【讨论】: