在Xcode UI测试期间检查电子邮件? [英] Check Email during Xcode UI Testing?
本文介绍了在Xcode UI测试期间检查电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更新:这仍然可以采用新的UI方式使用Xcode进行测试?
UPDATE: Is this still possible with the new way of UI testing with Xcode?
我是否可以通过编程方式从 iOS UI Automation 脚本?
Can I programmatically access my email from an iOS UI Automation script?
我想访问我的iPhone应用程序通过电子邮件发送到我的电子邮件帐户的注册码。
I want to access the signup code that my iPhone app emails to my email account.
推荐答案
使用 NSURLSession
从测试方法中发出HTTP请求。请参阅: https://stackoverflow.com/a/35708282/242933
Use NSURLSession
to make HTTP requests from within test methods. See: https://stackoverflow.com/a/35708282/242933
这篇关于在Xcode UI测试期间检查电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文