Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Appium] Creating new AndroidUiautomator2Driver (v1.24.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] deviceName: Android Emulator
[Appium] app: ./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk
[Appium] appPackage: com.elliot.android
[Appium] appActivity: com.elliot.android.MainActivity
[Appium] automationName: uiautomator2
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"platformName":"Android","...
[BaseDriver] Session created with session id: 4dbcbfc9-a673-4146-9ea5-810d9695305b
(node:2454) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[BaseDriver] Using local app './android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk'
[BaseDriver] The current application path './android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk' is relative, which might cause further issues. The path has been rewritten to '/Users/vagrant/git/android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk' in order to avoid them
[debug] [UiAutomator2] Checking whether app is actually present
[AndroidDriver] Java version is: 1.8.0_202
[ADB] Checking whether adb is present
[ADB] Found 17 'build-tools' folders under '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx' (newest first):
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.2
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.1
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.0
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/27.0.3
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/27.0.2
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/27.0.1
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/27.0.0
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/26.0.2
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/26.0.1
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/25.0.3
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/24.0.3
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/23.0.3
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/22.0.1
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/21.1.2
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/19.1.0
[ADB] /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/17.0.0
[ADB] Using adb from /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/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: emulator-5554
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 25
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell ps'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
F------[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 22 ms - 57
[HTTP]
F[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"platformName":"Android","deviceName":"Android Emulator","app":"./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk","appPackage":"com.elliot.android","appActivity":"com.elliot.android.MainActivity","automationName":"uiautomator2"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","deviceName":"Android Emulator","app":"./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk","appPackage":"com.elliot.android","appActivity":"com.elliot.android.MainActivity","automationName":"uiautomator2"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1549912065090 (11:07:45 GMT-0800 (Pacific Standard Time))
[Appium] Creating new AndroidUiautomator2Driver (v1.24.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] deviceName: Android Emulator
[Appium] app: ./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk
[Appium] appPackage: com.elliot.android
[Appium] appActivity: com.elliot.android.MainActivity
[Appium] automationName: uiautomator2
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"platformName":"Android","...
[BaseDriver] Session created with session id: a69dc48d-0e64-4402-bd25-f307c6ecfce8
[BaseDriver] Using local app './android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk'
[BaseDriver] The current application path './android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk' is relative, which might cause further issues. The path has been rewritten to '/Users/vagrant/git/android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk' in order to avoid them
[debug] [UiAutomator2] Checking whether app is actually present
[AndroidDriver] Java version is: 1.8.0_202
[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: emulator-5554
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 25
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell ps'
[debug] [ADB] Checking app cert for /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk
[ADB] Using apksigner from /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["verify","--print-certs","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.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/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' is already signed.
[debug] [ADB] Checking app cert for /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["verify","--print-certs","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [ADB] Signer #1 certificate SHA-256 digest: 707bc2493ea5b0267dc10a9bd4cedbab5431976f13274cdd045d93470179556d
[debug] [ADB] Signer #1 certificate SHA-1 digest: b8db0b11cec13cc7574a7d62f383ec16c0d275ee
[debug] [ADB] Signer #1 certificate MD5 digest: 4fcd3b10d1e80a20bbd28758c8a3e19b
[debug] [ADB]
[debug] [ADB] '/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with non-default certificate
[ADB] Checking whether zipalign is present
[ADB] Using zipalign from /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/zipalign
[debug] [ADB] /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already zip-aligned. Doing nothing
[debug] [ADB] Signing '/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' with default cert
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["sign","--key","/Users/vagrant/git/node_modules/appium/node_modules/appium-adb/keys/testkey.pk8","--cert","/Users/vagrant/git/node_modules/appium/node_modules/appium-adb/keys/testkey.x509.pem","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]'
[debug] [ADB] Uninstalling io.appium.uiautomator2.server
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is not installed
[ADB] io.appium.uiautomator2.server was not uninstalled, because it was not present on the device
[debug] [ADB] Uninstalling io.appium.uiautomator2.server.test
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [ADB] 'io.appium.uiautomator2.server.test' is not installed
[ADB] io.appium.uiautomator2.server.test was not uninstalled, because it was not present on the device
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is not installed
[debug] [ADB] App '/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' not installed. Installing
[debug] [ADB] Device API level: 25
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android'
F------[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 3 ms - 57
[HTTP]
F[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"platformName":"Android","deviceName":"Android Emulator","app":"./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk","appPackage":"com.elliot.android","appActivity":"com.elliot.android.MainActivity","automationName":"uiautomator2"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","deviceName":"Android Emulator","app":"./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk","appPackage":"com.elliot.android","appActivity":"com.elliot.android.MainActivity","automationName":"uiautomator2"},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1549912185471 (11:09:45 GMT-0800 (Pacific Standard Time))
[Appium] Creating new AndroidUiautomator2Driver (v1.24.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] deviceName: Android Emulator
[Appium] app: ./android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk
[Appium] appPackage: com.elliot.android
[Appium] appActivity: com.elliot.android.MainActivity
[Appium] automationName: uiautomator2
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"platformName":"Android","...
[BaseDriver] Session created with session id: 2c11f65b-36e2-4d3b-9e8e-517d2d1ca251
[BaseDriver] Using local app './android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk'
[BaseDriver] The current application path './android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk' is relative, which might cause further issues. The path has been rewritten to '/Users/vagrant/git/android/app/build/outputs/apk/debug/Elliot-25-1.7.0-debug.apk' in order to avoid them
[debug] [UiAutomator2] Checking whether app is actually present
[AndroidDriver] Java version is: 1.8.0_202
[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: emulator-5554
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 25
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell ps'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Unable to kill the io.appium.uiautomator2.server process, assuming it is already killed
[debug] [ADB] Checking app cert for /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["verify","--print-certs","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk"]'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession'
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android'
[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/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' is already signed.
[debug] [ADB] Checking app cert for /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["verify","--print-certs","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.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/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[UiAutomator2] Unable to force stop app: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/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''
[debug] [ADB] Device API level: 25
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1549912196685 (11:09:56 GMT-0800 (Pacific Standard Time))
[debug] [MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [MJSONWP] at execFunc (/Users/vagrant/git/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:326:13)
[HTTP] <-- POST /wd/hub/session 500 131597 ms - 473
[HTTP]
[debug] [ADB] 'io.appium.uiautomator2.server' is not installed
[debug] [ADB] App '/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' not installed. Installing
[debug] [ADB] Device API level: 25
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk'
F------[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- DELETE /wd/hub/session 404 3 ms - 57
[HTTP]
F
Failures:
1) Scenario: Successful login # features/login.feature:4
✖ Before # features/steps_definition/login.js:17
Error: function timed out, ensure the promise resolves within 40000 milliseconds
at Timeout._time.default.setTimeout [as _onTimeout] (/Users/vagrant/git/node_modules/cucumber/lib/user_code_runner.js:81:20)
at listOnTimeout (timers.js:327:15)
at processTimers (timers.js:271:5)
- Given I am in Elliot app home page # features/steps_definition/login.js:26
- When I click on "Fazer Login" button # features/steps_definition/login.js:32
- And I fill email field with "valenca.karine@gmail.com" # features/steps_definition/login.js:37
- And I fill password field with "12345678" # features/steps_definition/login.js:43
- And I click on "Entrar" button # features/steps_definition/login.js:48
- Then I see Elliot home page # features/steps_definition/login.js:53
✖ After # features/steps_definition/login.js:22
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (/Users/vagrant/git/node_modules/wd/lib/utils.js:151:13)
at PromiseWebdriver.<anonymous> (/Users/vagrant/git/node_modules/wd/lib/callbacks.js:61:12)
at cb (/Users/vagrant/git/node_modules/wd/lib/webdriver.js:169:22)
at /Users/vagrant/git/node_modules/wd/lib/webdriver.js:183:5
at Request._callback (/Users/vagrant/git/node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (/Users/vagrant/git/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
2) Scenario: Unsuccessful login with blank password # features/login.feature:12
✖ Before # features/steps_definition/login.js:17
Error: function timed out, ensure the promise resolves within 40000 milliseconds
at Timeout._time.default.setTimeout [as _onTimeout] (/Users/vagrant/git/node_modules/cucumber/lib/user_code_runner.js:81:20)
at listOnTimeout (timers.js:327:15)
at processTimers (timers.js:271:5)
- Given I am in Elliot app home page # features/steps_definition/login.js:26
- When I click on "Fazer Login" button # features/steps_definition/login.js:32
- And I fill email field with "valenca.karine@gmail.com" # features/steps_definition/login.js:37
- And I fill password field with "" # features/steps_definition/login.js:43
- And I click on "Entrar" button # features/steps_definition/login.js:48
- Then I see a message informing "Ops, seu usuário ou senha são inválidos" # features/steps_definition/login.js:59
✖ After # features/steps_definition/login.js:22
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (/Users/vagrant/git/node_modules/wd/lib/utils.js:151:13)
at PromiseWebdriver.<anonymous> (/Users/vagrant/git/node_modules/wd/lib/callbacks.js:61:12)
at cb (/Users/vagrant/git/node_modules/wd/lib/webdriver.js:169:22)
at /Users/vagrant/git/node_modules/wd/lib/webdriver.js:183:5
at Request._callback (/Users/vagrant/git/node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (/Users/vagrant/git/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
3) Scenario: Unsuccessful login with blank email # features/login.feature:20
✖ Before # features/steps_definition/login.js:17
Error: function timed out, ensure the promise resolves within 40000 milliseconds
at Timeout._time.default.setTimeout [as _onTimeout] (/Users/vagrant/git/node_modules/cucumber/lib/user_code_runner.js:81:20)
at listOnTimeout (timers.js:327:15)
at processTimers (timers.js:271:5)
- Given I am in Elliot app home page # features/steps_definition/login.js:26
- When I click on "Fazer Login" button # features/steps_definition/login.js:32
- And I fill email field with "" # features/steps_definition/login.js:37
- And I fill password field with "12345678" # features/steps_definition/login.js:43
- And I click on "Entrar" button # features/steps_definition/login.js:48
- Then I see a message informing "Ops, seu usuário ou senha são inválidos" # features/steps_definition/login.js:59
✖ After # features/steps_definition/login.js:22
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (/Users/vagrant/git/node_modules/wd/lib/utils.js:151:13)
at PromiseWebdriver.<anonymous> (/Users/vagrant/git/node_modules/wd/lib/callbacks.js:61:12)
at cb (/Users/vagrant/git/node_modules/wd/lib/webdriver.js:169:22)
at /Users/vagrant/git/node_modules/wd/lib/webdriver.js:183:5
at Request._callback (/Users/vagrant/git/node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (/Users/vagrant/git/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
4) Scenario: Unsuccessful login with wrong password # features/login.feature:28
✖ Before # features/steps_definition/login.js:17
Error: function timed out, ensure the promise resolves within 40000 milliseconds
at Timeout._time.default.setTimeout [as _onTimeout] (/Users/vagrant/git/node_modules/cucumber/lib/user_code_runner.js:81:20)
at listOnTimeout (timers.js:327:15)
at processTimers (timers.js:271:5)
- Given I am in Elliot app home page # features/steps_definition/login.js:26
- When I click on "Fazer Login" button # features/steps_definition/login.js:32
- And I fill email field with "valenca.karine@gmail.com" # features/steps_definition/login.js:37
- And I fill password field with "12345679" # features/steps_definition/login.js:43
- And I click on "Entrar" button # features/steps_definition/login.js:48
- Then I see a message informing "Ops, seu usuário ou senha são inválidos" # features/steps_definition/login.js:59
✖ After # features/steps_definition/login.js:22
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (/Users/vagrant/git/node_modules/wd/lib/utils.js:151:13)
at PromiseWebdriver.<anonymous> (/Users/vagrant/git/node_modules/wd/lib/callbacks.js:61:12)
at cb (/Users/vagrant/git/node_modules/wd/lib/webdriver.js:169:22)
at /Users/vagrant/git/node_modules/wd/lib/webdriver.js:183:5
at Request._callback (/Users/vagrant/git/node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (/Users/vagrant/git/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
5) Scenario: Unsuccessful login with non registered email # features/login.feature:36
✖ Before # features/steps_definition/login.js:17
Error: function timed out, ensure the promise resolves within 40000 milliseconds
at Timeout._time.default.setTimeout [as _onTimeout] (/Users/vagrant/git/node_modules/cucumber/lib/user_code_runner.js:81:20)
at listOnTimeout (timers.js:327:15)
at processTimers (timers.js:271:5)
- Given I am in Elliot app home page # features/steps_definition/login.js:26
- When I click on "Fazer Login" button # features/steps_definition/login.js:32
- And I fill email field with "non-registered@email.com" # features/steps_definition/login.js:37
- And I fill password field with "12345678" # features/steps_definition/login.js:43
- And I click on "Entrar" button # features/steps_definition/login.js:48
- Then I see a message informing "Ops, seu usuário ou senha são inválidos" # features/steps_definition/login.js:59
✖ After # features/steps_definition/login.js:22
Error: [quit()] Unexpected data in simpleCallback.
at exports.newError (/Users/vagrant/git/node_modules/wd/lib/utils.js:151:13)
at PromiseWebdriver.<anonymous> (/Users/vagrant/git/node_modules/wd/lib/callbacks.js:61:12)
at cb (/Users/vagrant/git/node_modules/wd/lib/webdriver.js:169:22)
at /Users/vagrant/git/node_modules/wd/lib/webdriver.js:183:5
at Request._callback (/Users/vagrant/git/node_modules/wd/lib/http-utils.js:89:7)
at Request.self.callback (/Users/vagrant/git/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (/Users/vagrant/git/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
5 scenarios (5 failed)
30 steps (30 skipped)
3m20.595s
[UiAutomator2] Unable to kill the io.appium.uiautomator2.server process, assuming it is already killed
[debug] [ADB] Checking app cert for /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["verify","--print-certs","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk"]'
[UiAutomator2] Unable to force stop app: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/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''
[debug] [ADB] Device API level: 25
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1549912232595 (11:10:32 GMT-0800 (Pacific Standard Time))
[debug] [MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [MJSONWP] at execFunc (/Users/vagrant/git/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:326:13)
[HTTP] <-- POST /wd/hub/session 500 127396 ms - 473
[HTTP]
[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/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' is already signed.
[debug] [ADB] Checking app cert for /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/28.0.3/apksigner' with args '["verify","--print-certs","/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.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/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is not installed
[debug] [ADB] App '/Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' not installed. Installing
[debug] [ADB] Device API level: 25
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession'
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/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''
[debug] [ADB] Device API level: 25
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1549912253843 (11:10:53 GMT-0800 (Pacific Standard Time))
[debug] [MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [MJSONWP] at execFunc (/Users/vagrant/git/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:326:13)
[HTTP] <-- POST /wd/hub/session 500 108524 ms - 473
[HTTP]
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession'
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android'
[UiAutomator2] Unable to force stop app: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.elliot.android' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[debug] [ADB] Running '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/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''
[debug] [ADB] Device API level: 25
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1549912316149 (11:11:56 GMT-0800 (Pacific Standard Time))
[debug] [MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command '/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 install /Users/vagrant/git/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v2.7.0.apk' timed out after 20000ms'; Stderr: ''; Code: 'null'
[debug] [MJSONWP] at execFunc (/Users/vagrant/git/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:326:13)
[HTTP] <-- POST /wd/hub/session 500 130680 ms - 473
[HTTP]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elliot@0.1.0 cucumber: `cucumber-js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elliot@0.1.0 cucumber script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/vagrant/.npm/_logs/2019-02-11T19_11_56_173Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.