AppCrawler AppCrawler 使用 Macaca 问题

Leon · 2017年06月02日 · 最后由 土豆 回复于 2017年10月17日 · 1978 次阅读

2.0.1 支持 Macaca

但是没有成功过,更新了最新版本 macaca。

2017-06-02 16:45:48 INFO [Crawler.setupAppium.232] use macaca
{"desiredCapabilities":{"app":"/Users/leon/Downloads/keep.apk","appPackage":"","reuse":3,"package":"","appium":"http://127.0.0.1:4723/wd/hub","noReset":"false","activity":"","deviceName":"76UBBL8222VE","appActivity":"","autoLaunch":"true","platformVersion":"","automationName":"macaca","autoWebview":"false","platformName":""}}2017-06-02 16:45:48 Request:http://localhost:3456/wd/hub/session:{"desiredCapabilities":{"app":"/Users/leon/Downloads/keep.apk","appPackage":"","reuse":3,"package":"","appium":"http://127.0.0.1:4723/wd/hub","noReset":"false","activity":"","deviceName":"76UBBL8222VE","appActivity":"","autoLaunch":"true","platformVersion":"","automationName":"macaca","autoWebview":"false","platformName":""}}
2017-06-02 16:45:48 Response:Internal Server Error
Exception in thread "main" com.alibaba.fastjson.JSONException: syntax error, pos 1, json : Internal Server Error
    at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1361)
    at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1268)
    at com.alibaba.fastjson.JSON.parse(JSON.java:137)
    at com.alibaba.fastjson.JSON.parse(JSON.java:128)
    at com.alibaba.fastjson.JSON.parseObject(JSON.java:201)
    at macaca.client.common.Utils.postRequest(Utils.java:117)
    at macaca.client.common.Utils.request(Utils.java:157)
    at macaca.client.commands.Session.createSession(Session.java:35)
    at macaca.client.MacacaClient.initDriver(MacacaClient.java:1189)
    at com.xueqiu.qa.appcrawler.MacacaDriver.appium(MacacaDriver.scala:136)
    at com.xueqiu.qa.appcrawler.MacacaDriver.<init>(MacacaDriver.scala:38)
    at com.xueqiu.qa.appcrawler.Crawler.setupAppium(Crawler.scala:233)
    at com.xueqiu.qa.appcrawler.Crawler.start(Crawler.scala:121)
    at com.xueqiu.qa.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:313)
    at com.xueqiu.qa.appcrawler.AppCrawler$.main(AppCrawler.scala:303)
    at com.xueqiu.qa.appcrawler.AppCrawler.main(AppCrawler.scala)

共收到 5 条回复 时间 点赞

看起来是 macaca 的问题 我没在最新的版本上测试过

什么时候计划搞一下呢,macaca 最新版本已经支持 xcode9,appium 还不支持

dengwei729 回复

恩。最近完善下


ios 端突然每次运行 appcrawler 都在 refresh page 那里挂掉,什么情况呢@seveniruby

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