AppCrawler iphone 如何运行 AppCrawler

jc · 2017年09月11日 · 最后由 轩天 回复于 2021年06月04日 · 1496 次阅读

@seveniruby 作者你好,有疑惑麻烦能百忙之中给予帮助,谢谢

我使用 iOS
命令输入如下:
$ bin/appcrawler -a KDemo.app/
错误信息如下:
2017-09-11 12:39:37 ERROR [IOSCrawler.setupAppium.44] error
2017-09-11 12:39:37 ERROR [IOSCrawler.setupAppium.45] An unknown server-side error occurred while processing the command. Original error: Xcode version [object Object] is not yet supported (WARNING: The server did not provide any stacktrace information)

我的 mac 系统是 10.12.6,xcode 版本 8.3.3
根据错误信息可以得出,xcode 的版本过高,不支持,查看了论坛的评论大致原因是苹果不在支持 uiatuomation,而是使用了 xctest,但具体如何解决没有给出官方的建议。
麻烦作者给予一定的支持,谢谢。

我想到的版本是不是设置配置文件,配置文件如下:


logLevel: "TRACE"
saveScreen: true
screenshotTimeout: 20
tagLimitMax: 3
currentDriver: "iOS"
maxTime: 10800
resultDir: ""
capability:
newCommandTimeout: 120
launchTimeout: 120000
platformVersion: ""
platformName: ""
autoWebview: "false"
autoLaunch: "true"
noReset: "false"
iosCapability:
deviceName: "iPhone 7 Plus"
bundleId: "com.netease.qa.KIFDemo"
screenshotWaitTimeout: "10"
platformVersion: "10.3"
autoAcceptAlerts: "true"
app: "/Users/jc/Documents/工程信息/MonkeyUITest/appcrawler-1.7.1/KDemo.app"
automationName: "XCUITest"

我将 automationName: "XCUITest"设置,但发现提示错误,无法识别 XCUITest:
错误信息如下:
A new session could not be created. Details: The desiredCapabilities object was not valid for the following reason(s): automationName XCUITest not part of Appium,Selendroid,WebDriverAgent. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 92 milliseconds

所以麻烦作者给出指导意见,谢谢

共收到 5 条回复 时间 点赞
jc #5 · 2017年09月11日 Author

@seveniruby 作者目前给出的基本是 android 的例子,能够也给出个 iPhone 的官方 demo

求 ios 能用的配置文件,貌似项目中都没有提供

楼主解决了吗,是不是 ios 这块实现不了

iPhone 能运行,就是跟安卓比起来,基本找不到元素,不知道为啥。。难道是 appium 的文图?

请问你是如何设置的?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册