Skip to content

Instantly share code, notes, and snippets.

@MrShakes
Created April 11, 2018 20:42
Show Gist options
  • Save MrShakes/8eae6a596c74fac257707546a06fe55d to your computer and use it in GitHub Desktop.
Save MrShakes/8eae6a596c74fac257707546a06fe55d to your computer and use it in GitHub Desktop.
[Appium] Welcome to Appium v1.7.2 (REV 73df50459590ea6f5736393158dddf82affd7fde)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformName":"Android","platformVersion":"6.0","deviceName":"Android Emulator","app":"/Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk","automationName":"selendroid","autoWebview":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.12.0","name":"webdriverio"}}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"platformName":"Android","platformVersion":"6.0","deviceName":"Android Emulator","app":"/Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk","automationName":"selendroid","autoWebview":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.12.0","name":"webdriverio"}},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1523053510371 (23:25:10 GMT+0100 (WAT))
[Appium] Creating new SelendroidDriver (v1.6.6) session
[Appium] Capabilities:
[Appium] javascriptEnabled: true
[Appium] locationContextEnabled: true
[Appium] handlesAlerts: true
[Appium] rotatable: true
[Appium] platformName: Android
[Appium] platformVersion: 6.0
[Appium] deviceName: Android Emulator
[Appium] app: /Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk
[Appium] automationName: selendroid
[Appium] autoWebview: true
[Appium] requestOrigins: {
[Appium] url: http://webdriver.io
[Appium] version: 4.12.0
[Appium] name: webdriverio
[Appium] }
[BaseDriver] The following capabilities were provided, but are not recognized by appium: javascriptEnabled, locationContextEnabled, handlesAlerts, rotatable, requestOrigins.
[BaseDriver] Session created with session id: 6845e1cf-d351-4932-8901-cbacb7073ffd
[BaseDriver] Using local app '/Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk'
[debug] [Selendroid] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_144
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/olabosiposhoroye/Library/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] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '6.0'
[debug] [ADB] Setting device id to 192.168.56.101:5555
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 6.0
[AndroidDriver] Using device: 192.168.56.101:5555
[ADB] Checking whether adb is present
[debug] [ADB] Setting device id to 192.168.56.101:5555
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/olabosiposhoroye/Library/Android/sdk/build-tools/26.0.2/aapt
[debug] [ADB] Checking if has internet permission from manifest
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: nx.health.pe
[debug] [ADB] badging act: nx.health.pe.MainActivity
[debug] [AndroidDriver] Parsed package and activity are: nx.health.pe/nx.health.pe.MainActivity
[debug] [ADB] Checking app cert for /var/folders/5p/zp_5c3hx7vx6_rwgbf198rm80000gn/T/selendroid.nx.health.pe.apk
[ADB] Using apksigner from /Users/olabosiposhoroye/Library/Android/sdk/build-tools/26.0.2/apksigner
[debug] [ADB] Starting '/Users/olabosiposhoroye/Library/Android/sdk/build-tools/26.0.2/apksigner' with args 'verify,/var/folders/5p/zp_5c3hx7vx6_rwgbf198rm80000gn/T/selendroid.nx.health.pe.apk'
[debug] [ADB] '/var/folders/5p/zp_5c3hx7vx6_rwgbf198rm80000gn/T/selendroid.nx.health.pe.apk' is already signed.
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","echo","ping"]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","list","packages","io.appium.settings"]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","dumpsys","package","io.appium.settings"]
[ADB] Checking whether aapt is present
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade (5 >= 5)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Current device property 'ro.build.version.sdk': 23
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","dumpsys","package","io.appium.settings"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","dump","io.appium.settings"]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.CHANGE_NETWORK_STATE,;,pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","grant","io.appium.settings","android.permission.CHANGE_NETWORK_STATE",";","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","ps"]
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","start","-W","-n","io.appium.settings/.Settings","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","appops","set","io.appium.settings","android:mock_location","allow"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","list","packages","io.appium.unlock"]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.unlock
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","dumpsys","package","io.appium.unlock"]
[ADB] Checking whether aapt is present
[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade (2 >= 2)
[debug] [ADB] Forwarding system: 8080 to device: 8080
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","forward","tcp:8080","tcp:8080"]
[debug] [Selendroid] Initializing application under test
[debug] [AndroidDriver] Extracting strings from apk /Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk null /var/folders/5p/zp_5c3hx7vx6_rwgbf198rm80000gn/T/nx.health.pe
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","getprop","persist.sys.locale"]
[debug] [ADB] Current device property 'persist.sys.locale':
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","getprop","ro.product.locale"]
[debug] [ADB] Current device property 'ro.product.locale': en-US
[debug] [ADB] No strings.xml for language 'en', getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","push","/var/folders/5p/zp_5c3hx7vx6_rwgbf198rm80000gn/T/nx.health.pe/strings.json","/data/local/tmp"]
[debug] [ADB] Checking app cert for /Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk
[debug] [ADB] Starting '/Users/olabosiposhoroye/Library/Android/sdk/build-tools/26.0.2/apksigner' with args 'verify,/Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk'
[debug] [ADB] '/Users/olabosiposhoroye/Desktop/Awork/nxhealthpe/platforms/android/build/outputs/apk/debug/android-debug.apk' is already signed.
[AndroidDriver] Remote apk path is /data/local/tmp/7aa1acdf2645119108766169166c70c6.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","ls","/data/local/tmp/7aa1acdf2645119108766169166c70c6.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for nx.health.pe
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","list","packages","nx.health.pe"]
[debug] [ADB] App is installed
[AndroidDriver] Apk is already on remote and installed, resetting
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","force-stop","nx.health.pe"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","clear","nx.health.pe"]
[debug] [ADB] Getting install status for selendroid.nx.health.pe
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","pm","list","packages","selendroid.nx.health.pe"]
[debug] [ADB] App is installed
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[Selendroid] Starting selendroid server with instrumentation: selendroid.nx.health.pe/io.selendroid.server.ServerInstrumentation
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","instrument","-e","main_activity","nx.health.pe.MainActivity","selendroid.nx.health.pe/io.selendroid.server.ServerInstrumentation"]
[ADB] Error: Unknown exception during instrumentation. Original error java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{selendroid.nx.health.pe/io.selendroid.server.ServerInstrumentation} from pid=1774, uid=1774 not allowed because package selendroid.nx.health.pe does not have a signature matching the target nx.health.pe
at Object.wrappedLogger.errorAndThrow (/usr/local/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/tools/adb-commands.js:1159:9)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: Unknown exception during instrumentation. Original error java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{selendroid.nx.health.pe/io.selendroid.server.ServerInstrumentation} from pid=1774, uid=1774 not allowed because package selendroid.nx.health.pe does not have a signature matching the target nx.health.pe
at Object.wrappedLogger.errorAndThrow (/usr/local/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/tools/adb-commands.js:1159:9)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [Selendroid] Deleting Selendroid session
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/olabosiposhoroye/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","192.168.56.101:5555","shell","am","force-stop","nx.health.pe"]
[debug] [Logcat] Stopping logcat capture
[MJSONWP] Encountered internal error running command: Error: Unknown exception during instrumentation. Original error java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{selendroid.nx.health.pe/io.selendroid.server.ServerInstrumentation} from pid=1774, uid=1774 not allowed because package selendroid.nx.health.pe does not have a signature matching the target nx.health.pe
at Object.wrappedLogger.errorAndThrow (/usr/local/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/tools/adb-commands.js:1159:9)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 32070 ms - 485
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment