如何使用KIF测试框架自动确认系统警报? [英] How to acknowledge system alerts automatically using KIF test framework?
本文介绍了如何使用KIF测试框架自动确认系统警报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 KIF 来测试用户界面以进行持续集成。当应用程序首次在设备上启动(或 iOS模拟器)时,系统将显示一些警报视图以确保安全性。 KIF如何自动确认系统警报以防止测试失败?
I use KIF to test the UI for continuous integration. When the app is the first launch on a device (or iOS Simulator), the system will show some alert views for security. How can KIF automatically acknowledge system alerts to prevent test from failure?
推荐答案
最好的方法是使用 [tester acknowledgeSystemAlert]
。它将点击系统警报中的最后一个按钮:)
The best way is to use [tester acknowledgeSystemAlert]
. It will click the last button in the system alert :)
有关详细信息,请参阅这个 github线程。
For more information see this github thread.
这篇关于如何使用KIF测试框架自动确认系统警报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文