Ios Xcode UITest无法测试微信登录

Ios Xcode UITest无法测试微信登录,ios,xcode,xcode-ui-testing,Ios,Xcode,Xcode Ui Testing,这是一款具有第三方登录功能的中文应用程序,类似于facebook登录。我尝试了微信登录。应用程序跳转到微信应用程序,我可以看到确认登录按钮,但UITests会在微信屏幕上停止 以下是日志: t = 17.90s Wait for app to idle t = 18.06s Find the "denglu 0012 weixin login" Button t = 18.06s Snapshot acc

这是一款具有第三方登录功能的中文应用程序,类似于facebook登录。我尝试了微信登录。应用程序跳转到微信应用程序,我可以看到确认登录按钮,但UITests会在微信屏幕上停止

以下是日志:

 t =    17.90s         Wait for app to idle
    t =    18.06s         Find the "denglu 0012 weixin login" Button
    t =    18.06s             Snapshot accessibility hierarchy for com.nadouxing.development
    t =    18.27s             Find: Descendants matching type Button
    t =    18.27s             Find: Elements matching predicate '"denglu 0012 weixin login" IN identifiers'
    t =    18.29s             Wait for app to idle
    t =    18.44s         Synthesize event
    t =    18.81s         Wait for app to idle
    t =    21.44s             App event loop idle notification not received, will attempt to continue.
    t =    21.44s             App animations complete notification not received, will attempt to continue.
    t =    23.46s     Tap "确认登录" Button
    t =    23.46s         Wait for app to idle
    t =    25.48s             Unable to monitor animations
    t =    31.61s             Unable to monitor event loop
    t =    31.75s             App event loop idle notification not received, will attempt to continue.
    t =    31.76s             App animations complete notification not received, will attempt to continue.
    t =    31.76s         Find the "确认登录" Button
    t =    31.76s             Snapshot accessibility hierarchy for com.nadouxing.development
    t =    37.87s                 Unable to monitor animations
    t =    44.02s                 Unable to monitor event loop
    t =    47.12s                 Assertion Failure: <unknown>:0: UI Testing Failure - Failed to get snapshot within 15.0s
t=17.90秒等待应用程序空闲
t=18.06s找到“登格鲁0012微信登录”按钮
t=18.06s com.nadouxing.development的快照可访问性层次结构
t=18.27s查找:匹配类型按钮
t=18.27s Find:匹配标识符中谓词“denglu 0012 weixin login”的元素
t=18.29s等待应用程序空闲
t=18.44s综合事件
t=18.81s等待应用程序空闲
t=21.44s未收到应用程序事件循环空闲通知,将尝试继续。
t=21.44s未收到应用程序动画完成通知,将尝试继续。
t=23.46s分接头“确认登录" 按钮
t=23.46s等待应用程序空闲
t=25.48s无法监视动画
t=31.61s无法监视事件循环
t=31.75s未收到应用程序事件循环空闲通知,将尝试继续。
t=31.76s未收到应用程序动画完成通知,将尝试继续。
t=31.76s,找到“确认登录“按钮
t=31.76s com.nadouxing.development的快照可访问性层次结构
t=37.87s无法监视动画
t=44.02s无法监视事件循环
t=47.12s断言失败::0:UI测试失败-未能在15.0s内获取快照

除了您正在制作的应用程序外,您不能与任何其他应用程序交互,并且一次只能对一个应用程序进行UI测试。(即使您自己制作了微信应用程序,也无法使用XCTest与它们交互。)


您的UI测试绑定到单个捆绑包ID,它们无法与具有该捆绑包ID的应用程序以外的任何应用程序交互。只有来自具有该捆绑包ID的应用程序的信息才会被检索,并且您必须能够访问该应用程序的调试版本。

您不能与正在制作的应用程序以外的任何应用程序交互,并且只能y UI一次测试一个应用程序。(即使你自己制作了微信应用程序,也没有选择使用XCTest与它们交互。)

您的UI测试绑定到单个捆绑包ID,它们无法与具有该捆绑包ID的应用程序以外的任何应用程序交互。将仅检索来自具有该捆绑包ID的应用程序的信息,并且您必须有权访问该应用程序的调试版本