Skip to content

Instantly share code, notes, and snippets.

@scalopus
Created March 1, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scalopus/fc7dd2282674f6315ff2a5f1804511fb to your computer and use it in GitHub Desktop.
Save scalopus/fc7dd2282674f6315ff2a5f1804511fb to your computer and use it in GitHub Desktop.
[info] [Appium] Welcome to Appium v1.7.2
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/warun/dev/scb-appium-tests/apps/app-automation-debug.apk","automationName":"uiautomator2","platformName":"Android","deviceName":"Android","platformVersion":"8.0"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/warun/dev/scb-appium-tests/apps/app-automation-debug.apk","automationName":"uiautomator2","platformName":"Android","deviceName":"Android","platformVersion":"8.0"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1519915023626 (21:37:03 GMT+0700 (+07))
[info] [Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session
[info] [Appium] Capabilities:
[info] [Appium] app: /Users/warun/dev/scb-appium-tests/apps/app-automation-debug.apk
[info] [Appium] automationName: uiautomator2
[info] [Appium] platformName: Android
[info] [Appium] deviceName: Android
[info] [Appium] platformVersion: 8.0
[debug] [BaseDriver]
[debug] [BaseDriver] W3C capabilities [] and MJSONWP desired capabilities were provided
[warn] [BaseDriver] Expected W3C "capabilities" to be a JSON Object but was provided with: []
[warn] [BaseDriver] Falling back to MJSONWP desired capabilities
[info] [BaseDriver] Session created with session id: 6cfa49ae-0742-4ee4-b931-42697c229f29
[info] [BaseDriver] Using local app '/Users/warun/dev/scb-appium-tests/apps/app-automation-debug.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version[info] [AndroidDriver] Java version is: 1.8.0_162
[info] [ADB] Checking whether adb is present
[info] [ADB] Found 2 'build-tools' folders under '/Users/warun/Library/Android/sdk' (newest first):
[info] [ADB] /Users/warun/Library/Android/sdk/build-tools/27.0.3
[info] [ADB] /Users/warun/Library/Android/sdk/build-tools/26.0.2
[info] [ADB] Using adb from /Users/warun/Library/Android/sdk/platform-tools/adb
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[info] [AndroidDriver] Looking for a device with Android '8.0'
[debug] [ADB] Setting device id to emulator-5554
[info] [ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 8.0.0
[info] [AndroidDriver] Using device: emulator-5554
[info] [ADB] Checking whether adb is present
[info] [ADB] Using adb from /Users/warun/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Current device property 'ro.build.version.sdk': 26
[debug] [ADB] Device API level: 26
[debug] [AndroidDriver] Parsing package and activity from app manifest
[info] [ADB] Using apkanalyzer from /Users/warun/Library/Android/sdk/tools/bin/apkanalyzer
[debug] [ADB] Starting '/Users/warun/Library/Android/sdk/tools/bin/apkanalyzer' with args ["-h","manifest","print","/Users/warun/dev/scb-appium-tests/apps/app-automation-debug.apk"][info] [ADB] Package name: 'com.scb.phone.dev'
[info] [ADB] Main activity name: 'com.scb.phone.view.activity.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: com.scb.phone.dev/com.scb.phone.view.activity.splash.SplashActivity
[info] [ADB] Getting device platform version
[debug] [ADB] Getting connected devices...[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 8.0.0
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","wm","size"][debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","wm","density"][debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.product.model"]
[debug] [ADB] Current device property 'ro.product.model': Android SDK built for x86
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","getprop","ro.product.manufacturer"]
[debug] [ADB] Current device property 'ro.product.manufacturer': Google
[debug] [ADB] Getting connected devices...[info] [ADB] Checking whether aapt is present
[info] [ADB] Using aapt from /Users/warun/Library/Android/sdk/build-tools/27.0.3/aapt
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","pm","list","packages","io.appium.uiautomator2.server"][debug] [ADB] App is not installed
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","pm","list","packages","io.appium.uiautomator2.server.test"][debug] [ADB] App is not installed
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-v0.3.0.apk
[info] [ADB] Using apksigner from /Users/warun/Library/Android/sdk/build-tools/27.0.3/apksigner
[info] [ADB] Using apksigner from /Users/warun/Library/Android/sdk/build-tools/27.0.3/apksigner
[debug] [ADB] Starting '/Users/warun/Library/Android/sdk/build-tools/27.0.3/apksigner' with args 'verify,/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-v0.3.0.apk'[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-v0.3.0.apk' is already signed.
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[warn] [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","shell","am","force-stop","com.scb.phone.dev"]
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","forward","--remove","tcp:8200"]
[debug] [ADB] Running '/Users/warun/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","emulator-5554","forward","--remove","tcp:8200"]
[warn] [UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/warun/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
[error] [MJSONWP] Encountered internal error running command: TypeError: Cannot create property 'replace' on boolean 'true'
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/lib/tools/apk-utils.js:331:20)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at Promise (<anonymous>)
at F (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at ADB.callee$0$0 [as install] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-adb/build/lib/tools/apk-utils.js:765:30)
at UiAutomator2Server.signAndInstall$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/lib/uiautomator2.js:109:20)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-uiautomator2-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[info] [HTTP] <-- POST /wd/hub/session 500 4593 ms - 187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment