Skip to content

Instantly share code, notes, and snippets.

@cdamian
Created November 30, 2016 09:08
Show Gist options
  • Save cdamian/e5b7a32a22bc2cb4c50aeedaa80668cb to your computer and use it in GitHub Desktop.
Save cdamian/e5b7a32a22bc2cb4c50aeedaa80668cb to your computer and use it in GitHub Desktop.
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"https://rink.hockeyapp.net/api/2/apps/d28195d2546d2e41eebbe2c755a93e5e/app_versions/1013?format=apk&avtoken=17790f50f26289cbc75961bceb23447c23cd196b","hub":"http://127.0.0.1:4444/wd/hub","noReset":"true","noSign":"true","platformVersion":"5.0","browserName":"Nexus5","udid":"06c64cb3d007fd3d","platformName":"Android","deviceName":"Nexus 5"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] app: 'https://rink.hockeyapp.net/api/2/apps/d28195d2546d2e41eebbe2c755a93e5e/app_versions/1013?format=apk&avtoken=17790f50f26289cbc75961bceb23447c23cd196b'
[Appium] hub: 'http://127.0.0.1:4444/wd/hub'
[Appium] noReset: 'true'
[Appium] noSign: 'true'
[Appium] platformVersion: '5.0'
[Appium] browserName: 'Nexus5'
[Appium] udid: '06c64cb3d007fd3d'
[Appium] platformName: 'Android'
[Appium] deviceName: 'Nexus 5'
[debug] [AndroidDriver] AndroidDriver version: 1.10.35
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'noSign' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: hub.
[AndroidDriver] The desired capabilities should generally not include both an app and a browser
[BaseDriver] Session created with session id: 40580c79-8f11-4289-a374-521574de5df5
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[ADB] Checking whether adb is present
[ADB] Using adb from /home/qa-mobile/Android/Sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[AndroidDriver] Using device: 06c64cb3d007fd3d
[ADB] Checking whether adb is present
[ADB] Using adb from /home/qa-mobile/Android/Sdk/platform-tools/adb
[debug] [ADB] Setting device id to 06c64cb3d007fd3d
[BaseDriver] Using downloadable app 'https://rink.hockeyapp.net/api/2/apps/d28195d2546d2e41eebbe2c755a93e5e/app_versions/1013?format=apk&avtoken=17790f50f26289cbc75961bceb23447c23cd196b'
[debug] [BaseDriver] https://rink.hockeyapp.net/api/2/apps/d28195d2546d2e41eebbe2c755a93e5e/app_versions/1013?format=apk&avtoken=17790f50f26289cbc75961bceb23447c23cd196b downloaded to /tmp/20161030-15521-1ycrk70.93pxfrms4i/appium-app.apk
[debug] [BaseDriver] Downloaded file type 'application/vnd.android.package-archive'
[BaseDriver] Downloaded app to '/tmp/20161030-15521-1ycrk70.93pxfrms4i/appium-app.apk'
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","echo","ping"]
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","install","/usr/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","install","/usr/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","getprop","ro.build.version.release"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Using aapt from /home/qa-mobile/Android/Sdk/build-tools/25.0.1/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: com.xxx.dev
[debug] [ADB] badging act: com.xxx.activities.SplashActivity
[debug] [AndroidDriver] Parsed package and activity are: com.xxx.dev/com.xxx.activities.SplashActivity
[AndroidDriver] Remote apk path is /data/local/tmp/79d15646ab315b245a9a4dda9b9fae38.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","ls","/data/local/tmp/79d15646ab315b245a9a4dda9b9fae38.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for com.xxx.dev
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Device API level: 21
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","pm","list","packages","-3","com.xxx.dev"]
[debug] [ADB] App is not installed
[AndroidDriver] Apk is not yet installed
[AndroidDriver] installing apk from remote
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","mkdir","-p","/data/local/tmp"]
[AndroidDriver] Clearing out any existing remote apks with the same hash
[debug] [AndroidDriver] Removing any old apks
[debug] [AndroidDriver] Except ["79d15646ab315b245a9a4dda9b9fae38"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","ls","/data/local/tmp/*.apk"]
[AndroidDriver] Will remove /data/local/tmp/2e6fd64ee3580c41144cf9ac2b2c7b98.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","rm","-f","/data/local/tmp/2e6fd64ee3580c41144cf9ac2b2c7b98.apk"]
[AndroidDriver] Pushing com.xxx.dev to device. Will wait up to 90000 milliseconds before aborting
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","push","/tmp/20161030-15521-1ycrk70.93pxfrms4i/appium-app.apk","/data/local/tmp/79d15646ab315b245a9a4dda9b9fae38.apk"]
[debug] [ADB] Uninstalling com.xxx.dev
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","am","force-stop","com.xxx.dev"]
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","uninstall","com.xxx.dev"]
[ADB] App was not uninstalled, maybe it wasn't on device?
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","pm","install","-r","/data/local/tmp/79d15646ab315b245a9a4dda9b9fae38.apk"]
[debug] [AndroidDriver] Extracting strings from apk /tmp/20161030-15521-1ycrk70.93pxfrms4i/appium-app.apk null /tmp/com.xxx.dev
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 21
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","getprop","persist.sys.language"]
[debug] [ADB] Current device property 'persist.sys.language': en
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","push","/tmp/com.xxx.dev/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4725 to device: 4724
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","forward","tcp:4725","tcp:4724"]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state 'starting'
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","push","/usr/lib/node_modules/appium/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","ps"]
[debug] [ADB] Attempting to kill process 10594
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running '/home/qa-mobile/Android/Sdk/platform-tools/adb' with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","kill",10594]
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","06c64cb3d007fd3d","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.xxx.dev","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state 'stopped'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment