Xcode UI Testing passwordless authentication

我的梦境 提交于 2019-12-02 08:00:41

I think you should run UI tests on stage/QA env and as result you can have some backdoor on stage env for UI tests, for example accept code 1111 for all users etc

  1. Add your email account to the Mail app. Make sure that Push notifications are enabled.

  2. Set the notifications style for Mail to the Alerts style.

  3. In your UI Tests, add the UI interruption monitor to listen for the alert from Mail, which contains the random two-factor authentication code.

Use NSURLSession to make HTTP requests from within test methods.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!