-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appium1.6.3 driver.get_log('performance') throw "TypeError: Cannot read property 'getLogs' of undefined" #7986
Comments
Can you try Appium 1.6.4-beta? This issue might be already fixed there. |
It is not. This is a legitimate bug in |
@imurchie since it is a bug..is there any workaround for it (or other way to do it)? i have lots of test blocked because of it...thanks |
Not that I can see, no. |
Same issue is happening when I am using iOS 9.3.5 and Appium 1.5.3 Code to replicate
Gist of logs |
Yes. It has been broken for a long time. |
@imurchie Can we except a fix in appium 1.6.4 final version ? |
@imurchie https://appium.io/slate/en/master/?ruby#server-flags per this --show-ios-log, it is [DEPRECATED]. What should be correct way to use it ? |
@vikramvi correct way is to use DesiredCapabilites. The name is showIOSLog |
What is the way to get the performance logs ? |
The performance logs for iOS only exist for web (or webview) testing. The bug is that there is a weird capability to turn it on, that is not documented anywhere. |
This has been fixed. It can be turned on with |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
when I use
appium --show-ios-log
and client withself.driver.get_log('performance')
,and saw the log[iOSLog] [IOS_SYSLOG_ROW] Mar 6 20:54:28 iStevendeMacBook-Pro FFProject[45460]: 拦截到请求 = https://xxxxx
at appium server console,but it's throw errors
Environment
Link to Appium logs
[debug] [MJSONWP] Calling AppiumDriver.getLog() with args: ["performance","e903af0e-d986-41a3-b501-4fbadf8ea818"] [debug] [XCUITest] Executing command 'getLog' [debug] [iOS] Retrieving 'performance' logs [MJSONWP] Encountered internal error running command: TypeError: Cannot read property 'getLogs' of undefined at XCUITestDriver.callee$0$0$ (../../../lib/commands/logging.js:34:38) at tryCatch (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:100:21) at invoke (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:136:37) at enqueueResult (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:185:17) at Promise.exports.(anonymous function).target.(anonymous function).function.target.(anonymous function).F (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.1.2.7@core-js/library/modules/$.export.js:30:36) at AsyncIterator.enqueue (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:184:12) at AsyncIterator.prototype.(anonymous function) [as next] (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:100:21) at Object.runtime.async (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.5.8.24@babel-runtime/regenerator/runtime.js:209:12) at XCUITestDriver.callee$0$0 [as getLog] (../../../lib/commands/logging.js:34:11) at ../../../lib/basedriver/driver.js:173:24 at tryCatcher (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/util.js:26:23) at Promise._settlePromiseFromHandler (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/promise.js:510:31) at Promise._settlePromiseAt (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/promise.js:584:18) at Promise._settlePromiseAtPostResolution (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/promise.js:248:10) at Async._drainQueue (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/async.js:128:12) at Async._drainQueues (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/async.js:133:10) at Immediate.Async.drainQueues (/Users/iSteven/.nvm/versions/node/v6.3.1/lib/node_modules/appium/node_modules/.2.11.0@bluebird/js/main/async.js:15:14) at runCallback (timers.js:570:20) at tryOnImmediate (timers.js:550:5) at processImmediate [as _immediateCallback] (timers.js:529:5) [HTTP] <-- POST /wd/hub/session/e903af0e-d986-41a3-b501-4fbadf8ea818/log 500 30 ms - 214 [HTTP] --> GET /wd/hub/session/e903af0e-d986-41a3-b501-4fbadf8ea818/screenshot {} [MJSONWP] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/e903af0e-d986-41a3-b501-4fbadf8ea818/screenshot] to [GET http://localhost:8100/session/B30B5327-0201-4311-BBF2-00C15EBE6446/screenshot] with body: {}
The text was updated successfully, but these errors were encountered: