Appium appium.app 真机最后启动报错,跑不起来

derek · 2014年10月13日 · 最后由 隔壁小王 回复于 2015年08月03日 · 1936 次阅读

error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress

info: <-- POST /wd/hub/session 500 1.463 ms - 250

debug: Error: Requested a new session but one was in progress
at Appium.start (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/lib/appium.js:112:15)
at Object.exports.createSession as handle
at next_layer (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/route.js:113:13)
at Route.dispatch (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/route.js:117:5)
at /Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/index.js:222:24
at Function.proto.process_params (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/index.js:288:12)
at next (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/index.js:216:19)
at next (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/index.js:180:38)
at next (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/index.js:180:38)
at next (/Users/derek/Downloads/Appium.app/Contents/Resources/node_modules/appium/node_modules/express/lib/router/index.js:180:38)
debug: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Requested a new session but one was in progress)","origValue":"Requested a new session but one was in progress"},"sessionId":"ad9b2056-1119-4646-8820-e2ebfa4954cc"}

appium 配置如下:

eclipse 配置如下:

共收到 3 条回复 时间 点赞

重启电脑就可以解决了

#1 楼 @lihuazhang error: Could not parse plist file (as binary) at /var/folders/my/_16vzmls2sjdpv843g038gj40000gp/T/114915-7340-1fino0q/Payload/AMapiPhoneTest.app/Info.plist
parseStringSync() is deprecated. Use parse() instead.
我想通过 appium 往机器里装 ipa,然后直接自动化,可会报上述错误,请问是什么原因呢

需要勾选 app path 啊

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