3

当我在我的本地 Mac 机器上运行“ zucchini run features/ ”时,该命令正在执行,但是当我通过远程 ssh 对同一台机器运行相同的命令时,它给出“在第 615 行找不到屏幕 'PINScreen' 的锚点” feature.js ”错误。

错误如下:

zucchini run features/
Failed to authorize rights (0x2) with status: -60007.
Failed to authorize rights (0x2) with status: -60007.
2013-12-12 18:37:23.983 ScriptAgent[3473:2f07] CLTilesManagerClient: initialize, sSharedTilesManagerClient

2013-12-12 18:37:23.983 ScriptAgent[3473:2f07] CLTilesManagerClient: init
2013-12-12 18:37:23.984 ScriptAgent[3473:2f07] CLTilesManagerClient: reconnecting, 0x97f4030
2013-12-12 18:37:24.147 ScriptAgent[3473:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:3467
2013-12-12 18:37:24.156 ScriptAgent[3473:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:3467
2013-12-12 13:07:24 +0000 Debug: target.setDeviceOrientation("1")
2013-12-12 13:07:29 +0000 Error: Script threw an uncaught JavaScript error: Could not find anchor for screen 'PINScreen' on line 615 of feature.js
2013-12-12 13:07:29 +0000 Stopped: Script was stopped by the user
Instruments Trace Complete (Duration : 17.254980s; Output : /Users/jebastalin/Desktop/ZucchiniNew/FileViewer/instrumentscli0.trace)
1..1
not ok 1 - feature
    1..0
    Bail out! Instruments run error

TAP report generated to /tmp/zucchini.t
HTML report generated to /tmp/zucchini_report.html
[SSH] exit-status: 1

那么,锄头我可以从远程登录成功运行“zucchini run”命令吗?

4

2 回答 2

0

将显示元素放在您调用屏幕的西葫芦脚本上方,这可能会解决您的问题。

于 2014-02-25T07:03:29.347 回答
0

我发现如果我在日志中遇到类似于以下内容的行:

2014-05-01 14:17:43.915 ScriptAgent[14082:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:14073
2014-05-01 14:17:43.925 ScriptAgent[14082:2f07] AX Lookup problem! 1102 com.apple.iphone.axserver:14073

这将导致好的代码失败。我一直在使用的补救措施是退出 iOS 模拟器(以及 Instruments.app)。关闭两者后,重新运行 Zucchini,无需更改我的任何代码,现在一切正常。

我不能说这是解决方法,但它在我记忆中一直有效。

于 2014-05-01T21:40:42.433 回答