{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/issues/129","repository_url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium","labels_url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/issues/129/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/issues/129/events","html_url":"https://github.com/NativeScript/nativescript-dev-appium/issues/129","id":336360352,"node_id":"MDU6SXNzdWUzMzYzNjAzNTI=","number":129,"title":"Tests not running ","user":{"login":"Majed93","id":6452588,"node_id":"MDQ6VXNlcjY0NTI1ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/6452588?v=4","gravatar_id":"","url":"https://api.github.com/users/Majed93","html_url":"https://github.com/Majed93","followers_url":"https://api.github.com/users/Majed93/followers","following_url":"https://api.github.com/users/Majed93/following{/other_user}","gists_url":"https://api.github.com/users/Majed93/gists{/gist_id}","starred_url":"https://api.github.com/users/Majed93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Majed93/subscriptions","organizations_url":"https://api.github.com/users/Majed93/orgs","repos_url":"https://api.github.com/users/Majed93/repos","events_url":"https://api.github.com/users/Majed93/events{/privacy}","received_events_url":"https://api.github.com/users/Majed93/received_events","type":"User","site_admin":false},"labels":[{"id":374469467,"node_id":"MDU6TGFiZWwzNzQ0Njk0Njc=","url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"SvetoslavTsenov","id":3598759,"node_id":"MDQ6VXNlcjM1OTg3NTk=","avatar_url":"https://avatars0.githubusercontent.com/u/3598759?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetoslavTsenov","html_url":"https://github.com/SvetoslavTsenov","followers_url":"https://api.github.com/users/SvetoslavTsenov/followers","following_url":"https://api.github.com/users/SvetoslavTsenov/following{/other_user}","gists_url":"https://api.github.com/users/SvetoslavTsenov/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetoslavTsenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetoslavTsenov/subscriptions","organizations_url":"https://api.github.com/users/SvetoslavTsenov/orgs","repos_url":"https://api.github.com/users/SvetoslavTsenov/repos","events_url":"https://api.github.com/users/SvetoslavTsenov/events{/privacy}","received_events_url":"https://api.github.com/users/SvetoslavTsenov/received_events","type":"User","site_admin":false},"assignees":[{"login":"SvetoslavTsenov","id":3598759,"node_id":"MDQ6VXNlcjM1OTg3NTk=","avatar_url":"https://avatars0.githubusercontent.com/u/3598759?v=4","gravatar_id":"","url":"https://api.github.com/users/SvetoslavTsenov","html_url":"https://github.com/SvetoslavTsenov","followers_url":"https://api.github.com/users/SvetoslavTsenov/followers","following_url":"https://api.github.com/users/SvetoslavTsenov/following{/other_user}","gists_url":"https://api.github.com/users/SvetoslavTsenov/gists{/gist_id}","starred_url":"https://api.github.com/users/SvetoslavTsenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvetoslavTsenov/subscriptions","organizations_url":"https://api.github.com/users/SvetoslavTsenov/orgs","repos_url":"https://api.github.com/users/SvetoslavTsenov/repos","events_url":"https://api.github.com/users/SvetoslavTsenov/events{/privacy}","received_events_url":"https://api.github.com/users/SvetoslavTsenov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-06-27T19:37:20Z","updated_at":"2018-06-30T21:23:40Z","closed_at":null,"author_association":"NONE","body":"I've follow the guide here [https://docs.nativescript.org/angular/plugins/ui-tests](https://docs.nativescript.org/angular/plugins/ui-tests) and can't seem to get it working using the command described `npm run e2e -- --runType android27 --verbose` for a sample test spec file. I'm using an android emulator and getting the following errors:\r\n\r\n--\r\n1) Sample scenario \"before all\" hook:\r\nError: Failed to set \"Don't keep activities\" to false!\r\n\r\n2) Sample scenario \"after all\" hook:\r\nTypeError: Cannot read property \"quit\" of undefined\r\n--\r\n\r\nerror #2 comes from ` await driver.quit();` which i have no idea why it would fail on that.\r\n\r\nAny help would be great!\r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/issues/comments/401567113","html_url":"https://github.com/NativeScript/nativescript-dev-appium/issues/129#issuecomment-401567113","issue_url":"https://api.github.com/repos/NativeScript/nativescript-dev-appium/issues/129","id":401567113,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTU2NzExMw==","user":{"login":"Majed93","id":6452588,"node_id":"MDQ6VXNlcjY0NTI1ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/6452588?v=4","gravatar_id":"","url":"https://api.github.com/users/Majed93","html_url":"https://github.com/Majed93","followers_url":"https://api.github.com/users/Majed93/followers","following_url":"https://api.github.com/users/Majed93/following{/other_user}","gists_url":"https://api.github.com/users/Majed93/gists{/gist_id}","starred_url":"https://api.github.com/users/Majed93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Majed93/subscriptions","organizations_url":"https://api.github.com/users/Majed93/orgs","repos_url":"https://api.github.com/users/Majed93/repos","events_url":"https://api.github.com/users/Majed93/events{/privacy}","received_events_url":"https://api.github.com/users/Majed93/received_events","type":"User","site_admin":false},"created_at":"2018-06-30T21:23:40Z","updated_at":"2018-06-30T21:23:40Z","author_association":"NONE","body":"Yep. Got this version atm 3.4.0-2018-06-29-01 (next - latest as of writing).\r\nThis is i get a message saying 'it can't find the device named emulator-27 (name of my emulator) but yet it seems to be able to install the app on the device and open it, only for it to crash. \r\nInstalled Appium version is `1.8.1` & yes ANDROID_HOME set.\r\n\r\nYour suggestion didn't work, it didn't even install the app on the emulator so i've had to revert to the official latest (3.3.0) Here's the logs: \r\n\r\n```\r\n\r\n> @ e2e M:\\Projects\\FiTracker\r\n> tsc -p e2e && mocha --opts ./e2e/config/mocha.opts \"--runType\" \"android27\" \"--verbose\"\r\n\r\nCapabilities found at: M:\\Projects\\FiTracker\\e2e\\config\\appium.capabilities.json\r\nAvailable applications: [ 'platforms/android/app/build/outputs/apk/debug/app-debug.apk' ]\r\nApplication full path: platforms/android/app/build/outputs/apk/debug/app-debug.apk\r\nUsing global Appium binary.\r\nPlease, make sure it is installed globally.\r\n\r\n\r\nSending telnet command device: avd name to localhost:5554\r\nSocket connection to device created\r\nSocket connection to device ready\r\nTelnet command got response: Emulator-Api27-Google\r\nWe couldn't find any devices. We will try to proceed to appium! Maybe avd manager is missing\r\nAvailable devices:\r\n []\r\nNo such device Emulator-Api27-Google!!!\r\n Check your device name!!!\r\nAvailable devices:\r\n []\r\nTrying to resolve automatically appPackage!\r\nSetting capabilities android27{ \"appPackage\" : \"com.maj.FiTracker\" }!\r\nTrying to resolve automatically appActivity!\r\nSetting capabilities android27{ \"appActivity : \"com.tns.NativeScriptActivity\" }!\r\nSetting application name as FiTracker\r\nApplication: com.maj.FiTracker is not installed!\r\nStarting server...\r\n\u001B[35m[Appium]\u001B[39m Welcome to Appium v1.8.1\r\n\r\n\u001B[35m[Appium]\u001B[39m Non-default server args:\r\n\r\n\u001B[35m[Appium]\u001B[39m   port: 8300\r\n\r\n\u001B[35m[Appium]\u001B[39m Appium REST http interface listener started on 0.0.0.0:8300\r\n\r\n  sample scenario\r\nCreating driver!\r\n > undefinedundefined \r\n > undefined/session undefined\r\n\u001B[35m[HTTP]\u001B[39m \u001B[37m-->\u001B[39m \u001B[37mPOST\u001B[39m \u001B[37m/wd/hub/session\u001B[39m\r\n\r\n\u001B[35m[HTTP]\u001B[39m \u001B[90m{\"desiredCapabilities\":{\"platformName\":\"android\",\"platformVersion\":\"8.1\",\"deviceName\":\"Emulator-Api27-Google\",\"lt\":60000,\"newCommandTimeout\":720,\"noReset\":true,\"fullReset\":false,\"app\":\"platforms/android/app/build/outputs/apk/debug/app-debug.apk\",\"appPackage\":\"com.maj.FiTracker\",\"appActivity\":\"com.tns.NativeScriptActivity\"}}\u001B[39m\r\n\r\n[debug] \u001B[35m[MJSONWP]\u001B[39m Calling AppiumDriver.createSession() with args: [{\"platformName\":\"android\",\"platformVersion\":\"8.1\",\"deviceName\":\"Emulator-Api27-Google\",\"lt\":60000,\"newCommandTimeout\":720,\"noReset\":true,\"fullReset\":false,\"app\":\"platforms/android/app/build/outputs/apk/debug/app-debug.apk\",\"appPackage\":\"com.maj.FiTracker\",\"appActivity\":\"com.tns.NativeScriptActivity\"},null,null]\r\n\r\n[debug] \u001B[35m[BaseDriver]\u001B[39m Event 'newSessionRequested' logged at 1530393681469 (22:21:21 GMT+0100 (GMT Summer Time))\r\n\r\n\u001B[35m[Appium]\u001B[39m Consider setting 'automationName' capability to 'uiautomator2' on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.\r\n\r\n\u001B[35m[Appium]\u001B[39m Creating new AndroidDriver (v2.7.0) session\r\n\r\n\u001B[35m[Appium]\u001B[39m Capabilities:\r\n\r\n\u001B[35m[Appium]\u001B[39m   platformName: android\r\n\r\n\u001B[35m[Appium]\u001B[39m   platformVersion: 8.1\r\n\r\n\u001B[35m[Appium]\u001B[39m   deviceName: Emulator-Api27-Google\r\n\r\n\u001B[35m[Appium]\u001B[39m   lt: 60000\r\n\r\n\u001B[35m[Appium]\u001B[39m   newCommandTimeout: 720\r\n\r\n\u001B[35m[Appium]\u001B[39m   noReset: true\r\n\r\n\u001B[35m[Appium]\u001B[39m   fullReset: false\r\n\u001B[35m[Appium]\u001B[39m   app: platforms/android/app/build/outputs/apk/debug/app-debug.apk\r\n\r\n\u001B[35m[Appium]\u001B[39m   appPackage: com.maj.FiTracker\r\n\r\n\u001B[35m[Appium]\u001B[39m   appActivity: com.tns.NativeScriptActivity\r\n\r\n[debug] \u001B[35m[BaseDriver]\u001B[39m Creating session with MJSONWP desired capabilities: {\"platformName\":\"android\",\"...\r\n\r\n\u001B[35m[BaseDriver]\u001B[39m The following capabilities were provided, but are not recognized by appium: lt.\r\n\r\n\u001B[35m[BaseDriver]\u001B[39m Session created with session id: ee39ff62-7f44-4df4-ad3a-117c836beab8\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Getting Java version\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Java version is: 1.8.0_172\r\n\r\n\r\n\u001B[35m[ADB]\u001B[39m Checking whether adb is present\r\n\r\n\u001B[35m[ADB]\u001B[39m Found 20 'build-tools' folders under 'C:\\Android\\android-sdk' (newest first):\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/28.0.0\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/27.0.3\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/27.0.2\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/27.0.1\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/27.0.0\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/26.0.3\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/26.0.2\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/26.0.1\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/26.0.0\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/25.0.3\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/25.0.2\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/25.0.1\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/25.0.0\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/24.0.3\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/24.0.2\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/24.0.1\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/24.0.0\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/23.0.3\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/23.0.2\r\n\r\n\u001B[35m[ADB]\u001B[39m     C:/Android/android-sdk/build-tools/23.0.1\r\n\r\n\u001B[35m[ADB]\u001B[39m Using adb.exe from C:\\Android\\android-sdk\\platform-tools\\adb.exe\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Retrieving device list\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Trying to find a connected android device\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Getting connected devices...\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m 1 device(s) connected\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Looking for a device with Android '8.1'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Setting device id to emulator-5554\r\n\r\n\u001B[35m[ADB]\u001B[39m Getting device platform version\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Current device property 'ro.build.version.release': 8.1.0\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Using device: emulator-5554\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Setting device id to emulator-5554\r\n\r\n\u001B[35m[BaseDriver]\u001B[39m Using local app 'platforms/android/app/build/outputs/apk/debug/app-debug.apk'\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Checking whether app is actually present\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Starting Android session\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 wait-for-device'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell echo ping'\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Pushing settings apk to device...\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Getting install status for io.appium.settings\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell pm list packages io.appium.settings'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m App is not installed\r\n[debug] \u001B[35m[ADB]\u001B[39m App 'C:\\Users\\Majed\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\io.appium.settings\\app\\build\\outputs\\apk\\settings_apk-debug.apk' not installed. Installing\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Current device property 'ro.build.version.sdk': 27\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Device API level: 27\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 install -g C\\:\\\\Users\\\\Majed\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\appium\\\\node_modules\\\\io.appium.settings\\\\app\\\\build\\\\outputs\\\\apk\\\\settings_apk-debug.apk'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Install command stdout: Success\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell ps'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Device API level: 27\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Device API level: 27\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell appops set io.appium.settings android\\:mock_location allow'\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m setDeviceLanguageCountry requires language or country.\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Got language: 'null' and country: 'null'\r\n\r\n[debug] \u001B[35m[Logcat]\u001B[39m Starting logcat capture\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Pushing unlock helper app to device...\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Getting install status for io.appium.unlock\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell pm list packages io.appium.unlock'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m App is not installed\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m App 'C:\\Users\\Majed\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-unlock\\bin\\unlock_apk-debug.apk' not installed. Installing\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Device API level: 27\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 install -g C\\:\\\\Users\\\\Majed\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\appium\\\\node_modules\\\\appium-unlock\\\\bin\\\\unlock_apk-debug.apk'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Install command stdout: Success\r\n\r\n\u001B[35m[ADB]\u001B[39m Getting device platform version\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Current device property 'ro.build.version.release': 8.1.0\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell wm size'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell getprop ro.product.model'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Current device property 'ro.product.model': Android SDK built for x86\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell getprop ro.product.manufacturer'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Current device property 'ro.product.manufacturer': Google\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Getting install status for com.maj.FiTracker\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell pm list packages com.maj.FiTracker'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m App is not installed\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m App 'platforms/android/app/build/outputs/apk/debug/app-debug.apk' not installed. Installing\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 install platforms/android/app/build/outputs/apk/debug/app-debug.apk'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Install command stdout: Success\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell rm -rf /data/local/tmp/strings.json'\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Extracting strings from apk\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m platforms/android/app/build/outputs/apk/debug/app-debug.apk\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m null\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m C:\\Users\\Majed\\AppData\\Local\\Temp\\com.maj.FiTracker\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Extracting strings for language: default\r\n\r\n\u001B[35m[ADB]\u001B[39m Checking whether aapt is present\r\n\r\n\u001B[35m[ADB]\u001B[39m Using aapt.exe from C:\\Android\\android-sdk\\build-tools\\28.0.0\\aapt.exe\r\n\r\n\u001B[35m[ADB]\u001B[39m Successfully extracted 43 strings from 'platforms/android/app/build/outputs/apk/debug/app-debug.apk' resources for '(default)' configuration\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 push C\\:\\\\Users\\\\Majed\\\\AppData\\\\Local\\\\Temp\\\\com.maj.FiTracker\\\\strings.json /data/local/tmp'\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m Watching for bootstrap disconnect\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Forwarding system: 4724 to device: 4724\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 forward tcp\\:4724 tcp\\:4724'\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Starting UiAutomator\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Moving to state 'starting'\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Parsing uiautomator jar\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Found jar name: 'AppiumBootstrap.jar'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 push C\\:\\\\Users\\\\Majed\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\appium\\\\node_modules\\\\appium-android-bootstrap\\\\bootstrap\\\\bin\\\\AppiumBootstrap.jar /data/local/tmp/'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Attempting to kill all uiautomator processes\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Getting all processes with uiautomator\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell ps'\r\n\r\n\u001B[35m[ADB]\u001B[39m No uiautomator process found to kill, continuing...\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Starting UIAutomator\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Creating ADB subprocess with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"uiautomator\",\"runtest\",\"AppiumBootstrap.jar\",\"-c\",\"io.appium.android.bootstrap.Bootstrap\",\"-e\",\"pkg\",\"com.maj.FiTracker\",\"-e\",\"disableAndroidWatchers\",false,\"-e\",\"acceptSslCerts\",false]\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Moving to state 'online'\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m [BOOTSTRAP LOG] [debug] json loading complete.\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m [BOOTSTRAP LOG] [debug] Registered crash watchers.\r\n\r\n\u001B[35m[AndroidBootstrap]\u001B[39m Android bootstrap socket is now connected\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell dumpsys window'\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m [BOOTSTRAP LOG] [debug] Client connected\r\n\r\n\u001B[35m[AndroidDriver]\u001B[39m Screen already unlocked, doing nothing\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Device API level: 27\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell am start -W -n com.maj.FiTracker/com.tns.NativeScriptActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'\r\n\r\n\u001B[35m[Appium]\u001B[39m New AndroidDriver session created successfully, session ee39ff62-7f44-4df4-ad3a-117c836beab8 added to master session list\r\n\r\n[debug] \u001B[35m[BaseDriver]\u001B[39m Event 'newSessionStarted' logged at 1530393697616 (22:21:37 GMT+0100 (GMT Summer Time))\r\n\r\n[debug] \u001B[35m[MJSONWP]\u001B[39m Responding to client with driver.createSession() result: {\"platform\":\"LINUX\",\"webStorageEnabled\":false,\"takesScreenshot\":true,\"javascriptEnabled\":true,\"databaseEnabled\":false,\"networkConnectionEnabled\":true,\"locationContextEnabled\":false,\"warnings\":{},\"desired\":{\"platformName\":\"android\",\"platformVersion\":\"8.1\",\"deviceName\":\"Emulator-Api27-Google\",\"lt\":60000,\"newCommandTimeout\":720,\"noReset\":true,\"fullReset\":false,\"app\":\"platforms/android/app/build/outputs/apk/debug/app-debug.apk\",\"appPackage\":\"com.maj.FiTracker\",\"appActivity\":\"com.tns.NativeScriptActivity\"},\"platformName\":\"android\",\"platformVersion\":\"8.1.0\",\"deviceName\":\"emulator-5554\",\"lt\":60000,\"newCommandTimeout\":720,\"noReset\":true,\"fullReset\":false,\"app\":\"platforms/android/app/build/outputs/apk/debug/app-debug.apk\",\"appPackage\":\"com.maj.FiTracker\",\"appActivity\":\"com.tns.NativeScriptActivity\",\"deviceUDID\":\"emulator-5554\",\"deviceScreenSize\":\"1440x2880\",\"deviceModel\":\"Android SDK built for x86\",\"deviceManufacturer\":\"Google\"}\r\n\r\nundefined\r\n > undefinedundefined \"ee39ff62-7f44-4df4-ad3a-117c836beab8\",{\"platform\":\"LINUX\",\"webStorageEnabled\":false,\"takesScreenshot\":true,\"javascriptEnabled\":true,\"databaseEnabled\":false,\"networkConnectionEnabled\":true,\"locationContextEnabled\":false,\"warnings\":{},\"desired\":{\"platformName\":\"android\",\"platformVersion\":\"8.1\",\"deviceName\":\"Emulator-Api27-Google\",\"lt\":60000,\"newCommandTimeout\":720,\"noReset\":true,\"fullReset\":false,\"app\":\"platforms/android/app/build/outputs/apk/debug/app-debug.apk\",\"appPackage\":\"com.maj.FiTracker\",\"appActivity\":\"com.tns.NativeScriptActivity\"},\"platformName\":\"android\",\"platformVersion\":\"8.1.0\",\"deviceName\":\"emulator-5554\",\"lt\":60000,\"newCommandTimeout\":720,\"noReset\":true,\"fullReset\":false,\"app\":\"platforms/android/app/build/outputs/apk/debug/app-debug.apk\",\"appPackage\":\"com.maj.FiTracker\",\"appActivity\":\"com.tns.NativeScriptActivity\",\"deviceUDID\":\"emulator-5554\",\"deviceScreenSize\":\"1440x2880\",\"deviceModel\":\"Android SDK built for x86\",\"deviceManufacturer\":\"Google\"}\r\nAppium driver has started successfully!\r\n    1) \"before all\" hook\r\n    2) \"after all\" hook\r\n\r\n\u001B[35m[HTTP]\u001B[39m \u001B[37m<-- POST /wd/hub/session \u001B[39m\u001B[32m200\u001B[39m \u001B[90m16152 ms - 1005\u001B[39m\r\n\u001B[35m[HTTP]\u001B[39m \u001B[90m\u001B[39m\r\n\r\nKilling driver\r\n > undefinedundefined \r\n > undefined/session/:sessionID undefined\r\n\u001B[35m[HTTP]\u001B[39m \u001B[37m-->\u001B[39m \u001B[37mDELETE\u001B[39m \u001B[37m/wd/hub/session/ee39ff62-7f44-4df4-ad3a-117c836beab8\u001B[39m\r\n\r\n\u001B[35m[HTTP]\u001B[39m \u001B[90m{}\u001B[39m\r\n\r\n[debug] \u001B[35m[MJSONWP]\u001B[39m Calling AppiumDriver.deleteSession() with args: [\"ee39ff62-7f44-4df4-ad3a-117c836beab8\"]\r\n\r\n[debug] \u001B[35m[BaseDriver]\u001B[39m Event 'quitSessionRequested' logged at 1530393697796 (22:21:37 GMT+0100 (GMT Summer Time))\r\n\r\n\u001B[35m[Appium]\u001B[39m Removing session ee39ff62-7f44-4df4-ad3a-117c836beab8 from our master session list\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Shutting down Android driver\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.maj.FiTracker'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Pressing the HOME button\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell input keyevent 3'\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m Sending command to android: {\"cmd\":\"shutdown\"}\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m [BOOTSTRAP LOG] [debug] Got data from client: {\"cmd\":\"shutdown\"}\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m Received command result from bootstrap\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Shutting down UiAutomator\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Moving to state 'stopping'\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN\r\n\r\n[debug] \u001B[35m[AndroidBootstrap]\u001B[39m [BOOTSTRAP LOG] [debug] Returning result: {\"status\":0,\"value\":\"OK, shutting down\"}\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m UiAutomator shut down normally\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Moving to state 'stopped'\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Attempting to kill all uiautomator processes\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Getting all processes with uiautomator\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell ps'\r\n\r\n\u001B[35m[ADB]\u001B[39m No uiautomator process found to kill, continuing...\r\n\r\n[debug] \u001B[35m[UiAutomator]\u001B[39m Moving to state 'stopped'\r\n\r\n[debug] \u001B[35m[Logcat]\u001B[39m Stopping logcat capture\r\n\r\n[debug] \u001B[35m[ADB]\u001B[39m Running 'C:\\Android\\android-sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.unlock'\r\n\r\n[debug] \u001B[35m[AndroidDriver]\u001B[39m Not cleaning generated files. Add `clearSystemFiles` capability if wanted.\r\n\r\n[debug] \u001B[35m[BaseDriver]\u001B[39m Event 'quitSessionFinished' logged at 1530393699408 (22:21:39 GMT+0100 (GMT Summer Time))\r\n\r\n[debug] \u001B[35m[MJSONWP]\u001B[39m Received response: null\r\n\r\n[debug] \u001B[35m[MJSONWP]\u001B[39m But deleting session, so not returning\r\n\r\n[debug] \u001B[35m[MJSONWP]\u001B[39m Responding to client with driver.deleteSession() result: null\r\n\r\nundefined\r\n > undefinedundefined \r\n > undefinedundefined \r\n > undefined/session/:sessionID undefined\r\n\u001B[35m[HTTP]\u001B[39m \u001B[37m<-- DELETE /wd/hub/session/ee39ff62-7f44-4df4-ad3a-117c836beab8 \u001B[39m\u001B[32m200\u001B[39m \u001B[90m1613 ms - 76\u001B[39m\r\n\u001B[35m[HTTP]\u001B[39m \u001B[90m\u001B[39m\r\n\r\n\u001B[35m[HTTP]\u001B[39m \u001B[37m-->\u001B[39m \u001B[37mDELETE\u001B[39m \u001B[37m/wd/hub/session/ee39ff62-7f44-4df4-ad3a-117c836beab8\u001B[39m\r\n\r\n\u001B[35m[HTTP]\u001B[39m \u001B[90m{}\u001B[39m\r\n\r\nundefined\r\nDriver is dead\r\nKilling simulator with udid undefined\r\nStopping server...\r\n<Buffer 53 55 43 43 45 53 53 3a 20 54 68 65 20 70 72 6f 63 65 73 73 20 77 69 74 68 20 50 49 44 20 31 35 31 32 20 28 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 ... >\r\nShut down!!!\r\n\u001B[35m[HTTP]\u001B[39m \u001B[37m<-- DELETE /wd/hub/session/ee39ff62-7f44-4df4-ad3a-117c836beab8 \u001B[39m\u001B[33m404\u001B[39m \u001B[90m1 ms - 131\u001B[39m\r\n\u001B[35m[HTTP]\u001B[39m \u001B[90m\u001B[39m\r\n\r\nAppium terminated due signal: null and code: 1\r\n\r\n  0 passing (30s)\r\n  2 failing\r\n\r\n  1) sample scenario \"before all\" hook:\r\n     Error: Failed to set \"Don't keep activities\" to false!\r\n      at Function.setDontKeepActivities (node_modules\\mobile-devices-controller\\lib\\android-controller.js:697:19)\r\n      at AppiumDriver.<anonymous> (node_modules\\nativescript-dev-appium\\lib\\appium-driver.js:653:63)\r\n      at Generator.next (<anonymous>)\r\n      at node_modules\\nativescript-dev-appium\\lib\\appium-driver.js:7:71\r\n      at new Promise (<anonymous>)\r\n      at __awaiter (node_modules\\nativescript-dev-appium\\lib\\appium-driver.js:3:12)\r\n      at AppiumDriver.setDontKeepActivities (node_modules\\nativescript-dev-appium\\lib\\appium-driver.js:651:16)\r\n      at Object.<anonymous> (node_modules\\nativescript-dev-appium\\index.js:81:28)\r\n      at Generator.next (<anonymous>)\r\n      at fulfilled (node_modules\\nativescript-dev-appium\\index.js:4:58)\r\n      at <anonymous>\r\n      at process._tickDomainCallback (internal/process/next_tick.js:228:7)\r\n\r\n  2) sample scenario \"after all\" hook:\r\n     TypeError: Cannot read property 'sessionId' of undefined\r\n      at Object.<anonymous> (e2e\\sample.e2e.js:18:16)\r\n      at Generator.next (<anonymous>)\r\n      at node_modules\\tslib\\tslib.js:107:75\r\n      at new Promise (<anonymous>)\r\n      at Object.__awaiter (node_modules\\tslib\\tslib.js:103:16)\r\n      at Context.after (e2e\\sample.e2e.js:17:25)\r\n\r\n```"}}
{"actor":{"display_login":"Majed93"}}