Skip to content

Instantly share code, notes, and snippets.

@dawnTestCode
Created July 30, 2019 19:39
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 dawnTestCode/e25090c413d1a11b500266d4116fcd1f to your computer and use it in GitHub Desktop.
Save dawnTestCode/e25090c413d1a11b500266d4116fcd1f to your computer and use it in GitHub Desktop.
Espresso Appium output
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"Samsung","appium:platformVersion":"7.0","appium:udid":"06157df6b2f41b32","appium:orientation":"PORTRAIT","appium:automationName":"Espresso","appium:forceEspressoRebuild":true,"appium:app":"/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk","appium:appPackage":"com.aicure.aiview.clinical.master.mobile","appium:appActivity":"com.aicure.aiviewswitch.AiViewSwitch","appium:noReset":false,"appium:newCommandTimeout":999,"appium:autoGrantPermissions":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:deviceName":"Samsung","appium:platformVersion":"7.0","appium:udid":"06157df6b2f41b32","appium:orientation":"PORTRAIT","appium:automationName":"Espresso","appium:forceEspressoRebuild":true,"appium:app":"/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk","appium:appPackage":"com.aicure.aiview.clinical.master.mobile","appium:appAct
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:deviceName":"Samsung","appium:platformVersion":"7.0","appium:udid":"06157df6b2f41b32","appium:orientation":"PORTRAIT","appium:automationName":"Espresso","appium:forceEspressoRebuild":true,"appium:app":"/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk","appium:appPackage":"com.aicure.aiview.clinical.master.mobile","appium:appActivity":"com.aicure.aiviewswitch.AiViewSwitch","appium:noReset":false,"appium:newCommandTimeout":999,"appium:autoGrantPermissions":true},null,{"alwaysMatch":{"platformName":"Android","appium:deviceName":"Samsung","appium:platformVersion":"7.0","appium:udid":"06157df6b2f41b32","appium:orientation":"PORTRAIT","appium:automationName":"Espresso","appium:forceEspressoRebuild":true,"appium:app":"/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk","appium:appPackage":"com.aicure.aiview.clinical.master.mobile","appium:appActivity":"com.aicure.aiviewswitch.AiViewSwitch","appium:noReset":false,"ap...
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1564515221600 (15:33:41 GMT-0400 (EDT))
[Appium] Appium v1.14.0 creating new EspressoDriver (v1.13.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] deviceName: Samsung
[Appium] platformVersion: 7.0
[Appium] udid: 06157df6b2f41b32
[Appium] orientation: PORTRAIT
[Appium] automationName: Espresso
[Appium] forceEspressoRebuild: true
[Appium] app: /Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk
[Appium] appPackage: com.aicure.aiview.clinical.master.mobile
[Appium] appActivity: com.aicure.aiviewswitch.AiViewSwitch
[Appium] noReset: false
[Appium] newCommandTimeout: 999
[Appium] autoGrantPermissions: true
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"Android","... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] Session created with session id: b3445d62-7864-483e-8845-213be5134fb7
[BaseDriver] Using local app '/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk'
[debug] [Espresso] Checking whether app is actually present
[Espresso] EspressoDriver version: 1.13.0
[ADB] Using 'adb' from '/Users/dcode/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] Using device: 06157df6b2f41b32
[ADB] Using 'adb' from '/Users/dcode/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to 06157df6b2f41b32
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 24
[debug] [ADB] Device API level: 24
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 wait-for-device'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package io.appium.settings'
[ADB] Using 'aapt' from '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/aapt'
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('2.14.1' >= '2.14.1')
[debug] [ADB] There is no need to install/upgrade '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell pgrep \^appium\\.settings\$'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell pgrep \^appium\\.settings\$'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell appops set io.appium.settings android\:mock_location allow'
[debug] [Logcat] Starting logcat capture
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell settings get global animator_duration_scale'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell settings get global transition_animation_scale'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell settings get global window_animation_scale'
[debug] [Espresso] Forwarding Espresso Server port 6791 to 8300
[debug] [ADB] Forwarding system: 8300 to device: 6791
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 forward tcp\:8300 tcp\:6791'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Checking app cert for /Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk
[ADB] Using 'apksigner' from '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/apksigner'
[debug] [ADB] Starting '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/apksigner' with args '["verify","--print-certs","/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk"]'
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk' is already signed.
[debug] [ADB] Getting install status for com.aicure.aiview.clinical.master.mobile
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] 'com.aicure.aiview.clinical.master.mobile' is installed
[debug] [ADB] Getting install status for com.aicure.aiview.clinical.master.mobile
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] 'com.aicure.aiview.clinical.master.mobile' is installed
[debug] [ADB] Getting package info for 'com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] The version name of the installed 'com.aicure.aiview.clinical.master.mobile' is greater or equal to the application version name ('2019.6.0' >= '2019.6.0')
[debug] [ADB] There is no need to install/upgrade '/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk'
[AndroidDriver] Performing fast reset on 'com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] Getting install status for com.aicure.aiview.clinical.master.mobile
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] 'com.aicure.aiview.clinical.master.mobile' is installed
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell am force-stop com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell pm clear com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] Retrieving requested permissions
[debug] [ADB] Retrieved 15 permission(s) from ["requested"] group(s)
[debug] [ADB] Retrieving granted permissions
[debug] [ADB] Retrieved 8 permission(s) from ["install","runtime"] group(s)
[debug] [ADB] Granting permissions ["android.permission.WRITE_EXTERNAL_STORAGE","android.permission.READ_EXTERNAL_STORAGE","android.permission.CAMERA","android.permission.READ_PHONE_STATE","android.permission.GET_ACCOUNTS","android.permission.RECORD_AUDIO","android.permission.CALL_PHONE"] to 'com.aicure.aiview.clinical.master.mobile'
[debug] [ADB] Got the following command chunks to execute: [["pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.WRITE_EXTERNAL_STORAGE",";","pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.READ_EXTERNAL_STORAGE",";","pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.CAMERA",";","pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.READ_PHONE_STATE",";","pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.GET_ACCOUNTS",";","pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.RECORD_AUDIO",";","pm","grant","com.aicure.aiview.clinical.master.mobile","android.permission.CALL_PHONE",";"]]
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell pm grant com.aicure.aiview.clinical.master.mobile android.permission.WRITE_EXTERNAL_STORAGE \; pm grant com.aicure.aiview.clinical.master.mobile android.permission.READ_EXTERNAL_STORAGE \; pm grant com.aicure.aiview.clinical.master.mobile android.permission.CAMERA \; pm grant com.aicure.aiview.clinical.master.mobile android.permission.READ_PHONE_STATE \; pm grant com.aicure.aiview.clinical.master.mobile android.permission.GET_ACCOUNTS \; pm grant com.aicure.aiview.clinical.master.mobile android.permission.RECORD_AUDIO \; pm grant com.aicure.aiview.clinical.master.mobile android.permission.CALL_PHONE \;'
[debug] [AndroidDriver] Performed fast reset on the installed 'com.aicure.aiview.clinical.master.mobile' application (stop and clear)
[debug] [Espresso] 'forceEspressoRebuild' capability is enabled
[debug] [Espresso] Deleting the obsolete Espresso server package '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk'
[Espresso] Repackaging espresso server for: 'com.aicure.aiview.clinical.master.mobile'
[Espresso] Creating new manifest: '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/AndroidManifest.xml'
[debug] [ADB] Found the most recent Android platform: {"platform":"android-29","platformPath":"/Users/dcode/Library/Android/sdk/platforms/android-29"}
[debug] [ADB] Compiling the manifest: /Users/dcode/Library/Android/sdk/build-tools/29.0.1/aapt package -M /var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/AndroidManifest.xml --rename-manifest-package io.appium.espressoserver.test --rename-instrumentation-target-package com.aicure.aiview.clinical.master.mobile -I /Users/dcode/Library/Android/sdk/platforms/android-29/android.jar -F /var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/AndroidManifest.xml.apk -f
[debug] [ADB] Compiled the manifest at '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/AndroidManifest.xml.apk'
[debug] [ADB] Inserting manifest, src: /usr/local/lib/node_modules/appium/node_modules/appium-espresso-driver/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk dst: /var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk
[debug] [ADB] Unzipping '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/AndroidManifest.xml.apk' to '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T'
[debug] [ADB] Unzip successful
[debug] [ADB] Testing new tmp apk
[debug] [ADB] Moving manifest
[debug] [ADB] Inserted manifest.
[Espresso] Repackaged espresso server ready: '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk'
[debug] [ADB] Checking app cert for /var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk
[debug] [ADB] Starting '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/apksigner' with args '["verify","--print-certs","/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk"]'
[ADB] Got an error during apksigner execution: Command '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/apksigner verify --print-certs /var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' exited with code 1
[ADB] apksigner stderr: DOES NOT VERIFY
[ADB] ERROR: JAR signer CERT.RSA: JAR signature META-INF/CERT.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped?
[ADB]
[debug] [ADB] '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' is not signed with debug cert
[ADB] Using 'zipalign' from '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/zipalign'
[debug] [ADB] /var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' is already zip-aligned. Doing nothing
[debug] [ADB] Signing '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' with default cert
[debug] [ADB] Starting '/Users/dcode/Library/Android/sdk/build-tools/29.0.1/apksigner' with args '["sign","--key","/usr/local/lib/node_modules/appium/node_modules/appium-adb/keys/testkey.pk8","--cert","/usr/local/lib/node_modules/appium/node_modules/appium-adb/keys/testkey.x509.pem","/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk"]'
[debug] [ADB] Uninstalling io.appium.espressoserver.test
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] 'io.appium.espressoserver.test' is installed
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell am force-stop io.appium.espressoserver.test'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 uninstall io.appium.espressoserver.test'
[debug] [ADB] 'adb uninstall io.appium.espressoserver.test' command output: Success
[ADB] io.appium.espressoserver.test was successfully uninstalled
[Espresso] Uninstalled the obsolete Espresso server package from the device under test
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] 'io.appium.espressoserver.test' is not installed
[debug] [ADB] App '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' is not installed
[Espresso] Installing Espresso Test Server apk from the target device (path: '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk')
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''
[debug] [ADB] The count of applications in the cache: 10
[ADB] The application at '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' is already cached to '/data/local/tmp/appium_cache/981ab5aede6cdbed91f457d3259810e7ebbc2689.apk'
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell pm install /data/local/tmp/appium_cache/981ab5aede6cdbed91f457d3259810e7ebbc2689.apk'
[ADB] The installation of 'io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' took 6.887s
[debug] [ADB] Install command stdout: Success
[Espresso] Installed Espresso Test Server apk '/var/folders/zn/qlw9bsp90cd262m8mhv501xr0000gp/T/io.appium.espressoserver.test_1.13.0_com.aicure.aiview.clinical.master.mobile.apk' (pkg: 'io.appium.espressoserver.test')
[debug] [Espresso] Performing cleanup of automation leftovers
[debug] [Espresso] No obsolete sessions have been detected (Error: socket hang up)
[Espresso] Starting Espresso Server v1.13.0 with cmd: adb shell am instrument -w -e debug false io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","06157df6b2f41b32","shell","am","instrument","-w","-e","debug","false","io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] [Espresso] [Instrumentation] [STDOUT]
[Espresso] Waiting for Espresso to be online...
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[debug] [WD Proxy] Got response with status 200: "{\"id\":\"254bc654-ab74-407a-93cc-82b5f44a43b3\",\"sessionId\":null,\"status\":0,\"value\":null}"
[debug] [WD Proxy] Determined that the downstream protocol for proxy is MJSONWP
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8300/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"Samsung","platformVersion":"7.0","udid":"06157df6b2f41b32","orientation":"PORTRAIT","automationName":"Espresso","forceEspressoRebuild":true,"app":"/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk","appPackage":"com.aicure.aiview.clinical.master.mobile","appActivity":"com.aicure.aiviewswitch.AiViewSwitch","noReset":false,"newCommandTimeout":999,"autoGrantPermissions":true},"platformName":"Android","deviceName":"06157df6b2f41b32","platformVersion":"7.0","udid":"06157df6b2f41b32","orientation":"PORTRAIT","automationName":"Espresso","forceEspressoRebuild":true,"app":"/Users/dcode/dev/unspecified/aicure/appium-boilerplate/apps/dev11Debug-2019.6.apk","appPackage":"com.aicure.aiview.clinical.master.mobile","appActivit...
[debug] [Espresso] [Instrumentation] [STDOUT] io.appium.espressoserver.EspressoServerRunnerTest:
[debug] [Espresso] [Instrumentation] [STDOUT] Process crashed while executing startEspressoServer(io.appium.espressoserver.EspressoServerRunnerTest):
[debug] [Espresso] [Instrumentation] [STDOUT] android.content.res.Resources$NotFoundException: Drawable com.aicure.aiview.clinical.master.mobile:dimen/button_h_8 with resource ID #0x7f070059
[debug] [Espresso] [Instrumentation] [STDOUT] Caused by: android.content.res.Resources$NotFoundException: Resource "com.aicure.aiview.clinical.master.mobile:dimen/button_h_8" (7f070059) is not a Drawable (color or path): TypedValue{t=0x5/d=0x2b01 a=3 r=0x7f070059}
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:737)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.res.Resources.getDrawable(Resources.java:1640)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.Context.getDrawable(Context.java:525)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:463)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:203)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:191)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:753)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:196)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:86)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.<init>(AppCompatDelegateImpl.java:260)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatDelegate.create(AppCompatDelegate.java:182)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatActivity.getDelegate(AppCompatActivity.java:520)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.aicure.aiviewswitch.AiViewSwitch.onCreate(AiViewSwitch.java:116)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.Activity.performCreate(Activity.java:6942)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:674)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.-wrap14(ActivityThread.java)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.os.Handler.dispatchMessage(Handler.java:102)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.os.Looper.loop(Looper.java:154)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.main(ActivityThread.java:6682)
[debug] [Espresso] [Instrumentation] [STDOUT] at java.lang.reflect.Method.invoke(Native Method)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
[debug] [Espresso] [Instrumentation] [STDOUT]
[debug] [Espresso] [Instrumentation] [STDOUT] Process crashed while executing startEspressoServer(io.appium.espressoserver.EspressoServerRunnerTest):
[debug] [Espresso] [Instrumentation] [STDOUT] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aicure.aiview.clinical.master.mobile/com.aicure.aiviewswitch.AiViewSwitch}: android.content.res.Resources$NotFoundException: Drawable com.aicure.aiview.clinical.master.mobile:dimen/button_h_8 with resource ID #0x7f070059
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.-wrap14(ActivityThread.java)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.os.Handler.dispatchMessage(Handler.java:102)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.os.Looper.loop(Looper.java:154)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.main(ActivityThread.java:6682)
[debug] [Espresso] [Instrumentation] [STDOUT] at java.lang.reflect.Method.invoke(Native Method)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
[debug] [Espresso] [Instrumentation] [STDOUT] Caused by: android.content.res.Resources$NotFoundException: Drawable com.aicure.aiview.clinical.master.mobile:dimen/button_h_8 with resource ID #0x7f070059
[debug] [Espresso] [Instrumentation] [STDOUT] Caused by: android.content.res.Resources$NotFoundException: Resource "com.aicure.aiview.clinical.master.mobile:dimen/button_h_8" (7f070059) is not a Drawable (color or path): TypedValue{t=0x5/d=0x2b01 a=3 r=0x7f070059}
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:737)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.res.Resources.getDrawable(Resources.java:1640)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.content.Context.getDrawable(Context.java:525)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:463)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:203)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:191)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:753)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:196)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:86)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.<init>(AppCompatDelegateImpl.java:260)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatDelegate.create(AppCompatDelegate.java:182)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatActivity.getDelegate(AppCompatActivity.java:520)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.aicure.aiviewswitch.AiViewSwitch.onCreate(AiViewSwitch.java:116)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.Activity.performCreate(Activity.java:6942)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
[debug] [Espresso] [Instrumentation] [STDOUT] at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate(MonitoringInstrumentation.java:674)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.-wrap14(ActivityThread.java)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.os.Handler.dispatchMessage(Handler.java:102)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.os.Looper.loop(Looper.java:154)
[debug] [Espresso] [Instrumentation] [STDOUT] at android.app.ActivityThread.main(ActivityThread.java:6682)
[debug] [Espresso] [Instrumentation] [STDOUT] at java.lang.reflect.Method.invoke(Native Method)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
[debug] [Espresso] [Instrumentation] [STDOUT] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
[WD Proxy] Got an unexpected response: {"code":"ECONNRESET"}
[debug] [Espresso] Deleting espresso session
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 shell am force-stop com.aicure.aiview.clinical.master.mobile'
[debug] [Espresso] [Instrumentation] [STDOUT] INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[debug] [Espresso] [Instrumentation] [STDOUT] INSTRUMENTATION_CODE: 0
[Espresso] Instrumentation process exited with code 0 from signal null
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8300
[debug] [ADB] Running '/Users/dcode/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df6b2f41b32 forward --remove tcp\:8300'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1564515260380 (15:34:20 GMT-0400 (EDT))
[debug] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [W3C] at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:239:13)
[debug] [W3C] at <anonymous>
[HTTP] <-- POST /wd/hub/session 500 38783 ms - 550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment