51Testing软件测试论坛

标题: error: Logcat capture failed: spawn E:\adt\sdk\platform-tools\adb.exe [打印本页]

作者: cphuaian    时间: 2016-10-7 21:10
标题: error: Logcat capture failed: spawn E:\adt\sdk\platform-tools\adb.exe
本帖最后由 cphuaian 于 2016-10-7 21:15 编辑

APPUIM,麻烦问问报错如下如何解决,网上找了类似的帖子很多,但是都解决不了,谢谢
> info: [debug] executing cmd: "E:\adt\sdk\platform-tools\adb.exe" devices
> info: [debug] 1 device(s) connected
> info: Found device emulator-5554
> info: [debug] Setting device id to emulator-5554
> info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
> info: [debug] executing cmd: "E:\adt\sdk\platform-tools\adb.exe" -s emulator-5554 wait-for-device
> info: [debug] executing cmd: "E:\adt\sdk\platform-tools\adb.exe" -s emulator-5554 shell "echo 'ready'"
> info: [debug] Starting logcat capture
> info: [debug] Stopping logcat capture
> error: Logcat capture failed: spawn "E:\adt\sdk\platform-tools\adb.exe" ENOENT

> info: <-- POST /wd/hub/session - - ms - -
> info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"E:\\workspace_app\\test1\\apps\\ContactManager\\****_2016.09.06_1.1.4-baidu.apk","appPackage":"com.***","appActivity":".LoadingActivity","platformVersion":"4.4.2","browserName":"Firefox","unicodeKeyboard":"True","platformName":"Android","deviceName":"Android Emulator","resetKeyboard":"True"}}
> info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)
> info: [debug] Error: Requested a new session but one was in progress
>     at [object Object].Appium.start (E:\Appium\node_modules\appium\lib\appium.js:139:15)
>     at exports.createSession (E:\Appium\node_modules\appium\lib\server\controller.js:188:16)
>     at Layer.handle [as handle_request] (E:\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:110:13)
>     at Route.dispatch (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:91:3)
>     at Layer.handle [as handle_request] (E:\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
>     at E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:267:22
>     at Function.proto.process_params (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:100:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at E:\Appium\node_modules\appium\lib\server\controller.js:39:7
>     at Layer.handle [as handle_request] (E:\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:110:13)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:104:14)
>     at Route.dispatch (E:\Appium\node_modules\appium\node_modules\express\lib\router\route.js:91:3)
>     at Layer.handle [as handle_request] (E:\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
>     at E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:267:22
>     at Function.proto.process_params (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
>     at methodOverride (E:\Appium\node_modules\appium\node_modules\method-override\index.js:79:5)
>     at Layer.handle [as handle_request] (E:\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
>     at trim_prefix (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:302:13)
>     at E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:270:7
>     at Function.proto.process_params (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
>     at logger (E:\Appium\node_modules\appium\node_modules\morgan\index.js:136:5)
>     at Layer.handle [as handle_request] (E:\Appium\node_modules\appium\node_modules\express\lib\router\layer.js:82:5)
>     at trim_prefix (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:302:13)
>     at E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:270:7
>     at Function.proto.process_params (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:321:12)
>     at next (E:\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:10)
>     at E:\Appium\node_modules\appium\node_modules\body-parser\lib\read.js:111:5
>     at done (E:\Appium\node_modules\appium\node_modules\body-parser\node_modules\raw-body\index.js:248:14)
>     at IncomingMessage.onEnd (E:\Appium\node_modules\appium\node_modules\body-parser\node_modules\raw-body\index.js:294:7)
>     at IncomingMessage.g (events.js:199:16)
>     at IncomingMessage.emit (events.js:104:17)
>     at _stream_readable.js:908:16
>     at process._tickDomainCallback (node.js:381:11)
> info: [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":"d523dae4-8371-4603-b332-1a857a14d02b"}
> 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 25.970 ms - 250
> undefined

作者: cphuaian    时间: 2016-10-8 18:23
有没有人遇到过呢




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2