首页 > 其他 > 详细

实践 UI Testing in Xcode

时间:2016-05-23 13:20:18      阅读:208      评论:0      收藏:0      [点我收藏+]

blog:

 

comment:

 1. wait-for-idle

     view 与view 之间转换的时候,为了保证有效的manipulation 和assertion,等待app处于稳定的状态再执行操作

  

  _ = self.expectationForPredicate(
            NSPredicate(format: "self.count = 1"),
            evaluatedWithObject: XCUIApplication().tables,
            handler: nil)
  self.waitForExpectationsWithTimeout(5.0, handler: nil)

 

   2. read accessibility info

 

实践 UI Testing in Xcode

原文:http://www.cnblogs.com/JulieandJulia/p/5519572.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!