#14 楼 @Tank007 解决了 25202, 还有个 25201 的问题, 这个问题资料更少. 肯定还是跟读取元素属性有关.
2017-01-12 15:19:51.551 XCTRunner[31911:3032971] Enqueue Failure: UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25201 getting snapshot for element <AXUIElement 0x7fde15c1bbb0> {pid=31912}" UserInfo={NSLocalizedDescription=Error -25201 getting snapshot for element <AXUIElement 0x7fde15c1bbb0> {pid=31912}} <unknown> 0 1
t = 370.11s Find the Application "com.meituan.xxxx" 0x7fced87ddb70 (retry 1)
t = 370.11s Snapshot accessibility hierarchy for com.meituan.iToGo.ep
2017-01-12 15:20:08.399 XCTRunner[31911:3033873] Enqueue Failure: UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25201 getting snapshot for element <AXUIElement 0x7fde15e147c0> {pid=31912}" UserInfo={NSLocalizedDescription=Error -25201 getting snapshot for element <AXUIElement 0x7fde15e147c0> {pid=31912}} <unknown> 0 1
t = 387.24s Find the Application "com.meituan.xxxx" 0x7fced87ddb70 (retry 2)
t = 387.24s Snapshot accessibility hierarchy for com.meituan.iToGo.ep
#8 楼 @Tank007 本质的问题是官方的这段代码没修复好.
https://github.com/facebook/WebDriverAgent/commit/381a4845aaf839858e05e07e10ea86eea8bf37c2#diff-be3350fe6810b7f7a366420d037638fe
注释里面也提了原因, 可惜官方还是没修改好.
- (BOOL)fb_isVisible
{
if (CGRectIsEmpty(self.frame) || CGRectIsEmpty(self.visibleFrame)) {
/*
It turns out, that XCTest triggers
Enqueue Failure: UI Testing Failure - Failure fetching attributes for element
<XCAccessibilityElement: 0x60000025f9e0> Device element: Error Domain=XCTestManagerErrorDomain Code=13
"Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
error in the log if we try to get visibility attribute for an element snapshot, which does not intersect with visible appication area
or if it has zero width/height. Also, XCTest waits for 15 seconds after this line appears in the log, which makes /source command
execution extremely slow for some applications.
*/
return NO;
}
return [(NSNumber *)[self fb_attributeValue:FB_XCAXAIsVisibleAttribute] boolValue];
}
#145 楼 @skyseraph 我的微信是 seveniruby. 早就公布了. 这帖子都一年了, 别回了
#28 楼 @jinglebell 你可以加入了.
#24 楼 @jinglebell sun 跟我们打 每次一喊他组局 他就说先等等换个号
#22 楼 @jinglebell 跟我们打有可能会变 300 珍惜高分号就要远离我们 atm 天团
谁打赏的 20 啊, 谢谢啦. 告诉我小数点后的数字让我认识下土豪
#16 楼 @jinglebell 我选是为了让别人不能选白牛针对他.
加精理由: 弥补了接口测试的内容
写的有创意
做的不错, 挺有产出, 3.75 算是不错的成绩了, 年终奖有保证了.
我觉得是你晋升答辩没做表达好吧. 我们公司也有类似的内容.
再不升来我们美团吧. 美团上海有高 P 的职位.
@Lihuazhang 恒温当时是被人忽悠吓住了. 其实是没什么事情的. 你的文章还可以恢复出来的. 看你的决定了.
这块是挺慢的 我也想找个时间调试下看看慢在哪
记得更新自己的微信打赏二维码或者个人微信, 你已经错过 10 元打赏. 暂时不支持支付宝.