Skip to content

Instantly share code, notes, and snippets.

@sebv
Created November 10, 2014 11:00
Show Gist options
  • Save sebv/01764b44b98db1c8993b to your computer and use it in GitHub Desktop.
Save sebv/01764b44b98db1c8993b to your computer and use it in GitHub Desktop.
^C% ➜ appium git:(master) node . --full-reset
info: Welcome to Appium v1.3.1 (REV 64f934709b13aed163726dc1134504b8ff31c986)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {"fullReset":true}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"","appium-version":"1.0","platformName":"Android","platformVersion":"4.4.2","deviceName":"Android Emulator","app":"http://appium.github.io/appium/assets/ApiDemos-debug.apk"}}
info: Client User-Agent string: undefined
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version
info: [debug] No appActivity desired capability or server param. Parsing from apk.
info: [debug] No appPackage desired capability or server param. Parsing from apk.
info: [debug] http://appium.github.io/appium/assets/ApiDemos-debug.apk downloaded to /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk
info: [debug] Creating new appium session 6550c900-81bd-4a11-abc4-21a4ae765f2b
info: Starting android appium
info: [debug] Using fast reset? false
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: [debug] Checking whether adb is present
info: [debug] Using adb from /Users/baba/Documents/Tools/android/sdk/platform-tools/adb
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" devices
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 wait-for-device
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Parsing package and activity from app manifest
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt
info: [debug] packageAndLaunchActivityFromManifest: "/Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt" dump badging "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk"
info: [debug] Logcat terminated with code 1, signal null
info: [debug] badging package: io.appium.android.apis
info: [debug] badging act: io.appium.android.apis.ApiDemos
info: [debug] Parsed package and activity are: io.appium.android.apis/io.appium.android.apis.ApiDemos
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop persist.sys.language"
info: [debug] Current device language: en
info: [debug] java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk" "/tmp/io.appium.android.apis" en
info: [debug] No strings.xml for language 'en', getting default strings.xml
info: [debug] java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk" "/tmp/io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 push "/tmp/io.appium.android.apis/strings.json" /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt
info: [debug] processFromManifest: "/Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt" dump xmltree "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk" AndroidManifest.xml
info: [debug] Set app process to: io.appium.android.apis
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] Checking app cert for /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk: java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/verify.jar" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk"
info: [debug] App not signed with debug cert.
info: [debug] Resigning apk with: java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/sign.jar" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk" --override
info: [debug] Zip-aligning /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/baba/Documents/Tools/android/sdk/build-tools/21.1.1/zipalign
info: [debug] zipAlignApk: "/Users/baba/Documents/Tools/android/sdk/build-tools/21.1.1/zipalign" -f 4 "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1lt43so/appium-app.apk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/appium1141010-92669-1gb2x6p.tmp"
info: [debug] MD5 for app is f106608e94bc9c1a18562dee1299c68f
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk"
info: [debug] Getting install status for io.appium.android.apis
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 io.appium.android.apis"
info: [debug] App is not installed
info: Installing App
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "mkdir -p /data/local/tmp/"
info: [debug] Removing any old apks
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/*.apk"
info: [debug] Found an apk we want to keep at /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk
info: [debug] Couldn't find any apks to remove
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk"
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/baba/Documents/Work/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 install "/Users/baba/Documents/Work/appium/build/settings_apk/settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 install "/Users/baba/Documents/Work/appium/build/unlock_apk/unlock_apk-debug.apk"
info: Starting App
info: [debug] Attempting to kill all 'uiautomator' processes
info: [debug] Getting all processes with 'uiautomator'
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ps 'uiautomator'"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: /Users/baba/Documents/Tools/android/sdk/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] WARNING: linker:
info: [debug] [UIAUTOMATOR STDOUT] libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json...
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] Waking up device if it's not alive
info: [debug] Pushing command to appium work queue: ["wake",{}]
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"\/data","status":0}
info: [debug] dataDir set to: /data
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":false,"status":0}
info: [debug] Device is at API Level 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.android.apis/io.appium.android.apis.ApiDemos"
info: [debug] Waiting for pkg "io.appium.android.apis" and activity "io.appium.android.apis.ApiDemos" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId 6550c900-81bd-4a11-abc4-21a4ae765f2b
info: <-- POST /wd/hub/session 303 10953.280 ms - 9
info: --> POST /wd/hub/session/6550c900-81bd-4a11-abc4-21a4ae765f2b/timeouts/implicit_wait {"ms":3000}
info: [debug] Set Android implicit wait to 3000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6550c900-81bd-4a11-abc4-21a4ae765f2b"}
info: <-- POST /wd/hub/session/6550c900-81bd-4a11-abc4-21a4ae765f2b/timeouts/implicit_wait 200 3.451 ms - 76 {"status":0,"value":null,"sessionId":"6550c900-81bd-4a11-abc4-21a4ae765f2b"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.1","revision":"64f934709b13aed163726dc1134504b8ff31c986"}},"sessionId":"6550c900-81bd-4a11-abc4-21a4ae765f2b"}
info: <-- GET /wd/hub/status 200 1.871 ms - 155 {"status":0,"value":{"build":{"version":"1.3.1","revision":"64f934709b13aed163726dc1134504b8ff31c986"}},"sessionId":"6550c900-81bd-4a11-abc4-21a4ae765f2b"}
info: --> DELETE /wd/hub/session/6550c900-81bd-4a11-abc4-21a4ae765f2b {}
info: Shutting down appium session
info: [debug] Removing app from device
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was uninstalled
info: [debug] Pressing the HOME button
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "input keyevent 3"
info: [debug] Stopping logcat capture
info: [debug] Logcat already stopped
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"OK, shutting down","status":0}
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 4.786
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6550c900-81bd-4a11-abc4-21a4ae765f2b"}
info: <-- DELETE /wd/hub/session/6550c900-81bd-4a11-abc4-21a4ae765f2b 200 2413.903 ms - 76 {"status":0,"value":null,"sessionId":"6550c900-81bd-4a11-abc4-21a4ae765f2b"}
info: --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"","appium-version":"1.0","platformName":"Android","platformVersion":"4.4.2","deviceName":"Android Emulator","app":"http://appium.github.io/appium/assets/ApiDemos-debug.apk"}}
info: Client User-Agent string: undefined
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version
info: [debug] No appActivity desired capability or server param. Parsing from apk.
info: [debug] No appPackage desired capability or server param. Parsing from apk.
info: [debug] http://appium.github.io/appium/assets/ApiDemos-debug.apk downloaded to /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk
info: [debug] Creating new appium session e3f564fb-9a4f-426a-b0c2-fab6333bf869
info: Starting android appium
info: [debug] Using fast reset? false
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: [debug] Checking whether adb is present
info: [debug] Using adb from /Users/baba/Documents/Tools/android/sdk/platform-tools/adb
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" devices
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 wait-for-device
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Parsing package and activity from app manifest
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt
info: [debug] packageAndLaunchActivityFromManifest: "/Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt" dump badging "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk"
info: [debug] Logcat terminated with code 1, signal null
info: [debug] badging package: io.appium.android.apis
info: [debug] badging act: io.appium.android.apis.ApiDemos
info: [debug] Parsed package and activity are: io.appium.android.apis/io.appium.android.apis.ApiDemos
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop persist.sys.language"
info: [debug] Current device language: en
info: [debug] java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk" "/tmp/io.appium.android.apis" en
info: [debug] No strings.xml for language 'en', getting default strings.xml
info: [debug] java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk" "/tmp/io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 push "/tmp/io.appium.android.apis/strings.json" /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt
info: [debug] processFromManifest: "/Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt" dump xmltree "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk" AndroidManifest.xml
info: [debug] Set app process to: io.appium.android.apis
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] Checking app cert for /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk: java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/verify.jar" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk"
info: [debug] App not signed with debug cert.
info: [debug] Resigning apk with: java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/sign.jar" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk" --override
info: [debug] Zip-aligning /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/baba/Documents/Tools/android/sdk/build-tools/21.1.1/zipalign
info: [debug] zipAlignApk: "/Users/baba/Documents/Tools/android/sdk/build-tools/21.1.1/zipalign" -f 4 "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-1abyr0/appium-app.apk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/appium1141010-92669-1gbmqbk.tmp"
info: [debug] MD5 for app is f106608e94bc9c1a18562dee1299c68f
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk"
info: [debug] Getting install status for io.appium.android.apis
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 io.appium.android.apis"
info: [debug] App is not installed
info: Installing App
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "mkdir -p /data/local/tmp/"
info: [debug] Removing any old apks
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/*.apk"
info: [debug] Found an apk we want to keep at /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk
info: [debug] Couldn't find any apks to remove
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk"
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/baba/Documents/Work/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 install "/Users/baba/Documents/Work/appium/build/settings_apk/settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 install "/Users/baba/Documents/Work/appium/build/unlock_apk/unlock_apk-debug.apk"
info: Starting App
info: [debug] Attempting to kill all 'uiautomator' processes
info: [debug] Getting all processes with 'uiautomator'
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ps 'uiautomator'"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: /Users/baba/Documents/Tools/android/sdk/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] WARNING: linker:
info: [debug] [UIAUTOMATOR STDOUT] libdvm.so
info: [debug] [UIAUTOMATOR STDOUT] has text relocations. This is wasting memory and is a security risk. Please fix.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json...
info: [debug] Waking up device if it's not alive
info: [debug] Pushing command to appium work queue: ["wake",{}]
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"\/data","status":0}
info: [debug] dataDir set to: /data
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":false,"status":0}
info: [debug] Device is at API Level 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.android.apis/io.appium.android.apis.ApiDemos"
info: [debug] Waiting for pkg "io.appium.android.apis" and activity "io.appium.android.apis.ApiDemos" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId e3f564fb-9a4f-426a-b0c2-fab6333bf869
info: <-- POST /wd/hub/session 303 10398.848 ms - 9
info: --> POST /wd/hub/session/e3f564fb-9a4f-426a-b0c2-fab6333bf869/timeouts/implicit_wait {"ms":3000}
info: [debug] Set Android implicit wait to 3000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e3f564fb-9a4f-426a-b0c2-fab6333bf869"}
info: <-- POST /wd/hub/session/e3f564fb-9a4f-426a-b0c2-fab6333bf869/timeouts/implicit_wait 200 1.110 ms - 76 {"status":0,"value":null,"sessionId":"e3f564fb-9a4f-426a-b0c2-fab6333bf869"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.1","revision":"64f934709b13aed163726dc1134504b8ff31c986"}},"sessionId":"e3f564fb-9a4f-426a-b0c2-fab6333bf869"}
info: <-- GET /wd/hub/status 200 0.979 ms - 155 {"status":0,"value":{"build":{"version":"1.3.1","revision":"64f934709b13aed163726dc1134504b8ff31c986"}},"sessionId":"e3f564fb-9a4f-426a-b0c2-fab6333bf869"}
info: --> DELETE /wd/hub/session/e3f564fb-9a4f-426a-b0c2-fab6333bf869 {}
info: Shutting down appium session
info: [debug] Removing app from device
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was uninstalled
info: [debug] Pressing the HOME button
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "input keyevent 3"
info: [debug] Stopping logcat capture
info: [debug] Logcat already stopped
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"OK, shutting down","status":0}
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 3.837
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e3f564fb-9a4f-426a-b0c2-fab6333bf869"}
info: <-- DELETE /wd/hub/session/e3f564fb-9a4f-426a-b0c2-fab6333bf869 200 1819.348 ms - 76 {"status":0,"value":null,"sessionId":"e3f564fb-9a4f-426a-b0c2-fab6333bf869"}
info: --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"","appium-version":"1.0","platformName":"Android","platformVersion":"4.4.2","deviceName":"Android Emulator","app":"http://appium.github.io/appium/assets/ApiDemos-debug.apk"}}
info: Client User-Agent string: undefined
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version
info: [debug] No appActivity desired capability or server param. Parsing from apk.
info: [debug] No appPackage desired capability or server param. Parsing from apk.
info: [debug] http://appium.github.io/appium/assets/ApiDemos-debug.apk downloaded to /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk
info: [debug] Creating new appium session 78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956
info: Starting android appium
info: [debug] Using fast reset? false
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: [debug] Checking whether adb is present
info: [debug] Using adb from /Users/baba/Documents/Tools/android/sdk/platform-tools/adb
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" devices
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 wait-for-device
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Parsing package and activity from app manifest
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt
info: [debug] packageAndLaunchActivityFromManifest: "/Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt" dump badging "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk"
info: [debug] Logcat terminated with code 1, signal null
info: [debug] badging package: io.appium.android.apis
info: [debug] badging act: io.appium.android.apis.ApiDemos
info: [debug] Parsed package and activity are: io.appium.android.apis/io.appium.android.apis.ApiDemos
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop persist.sys.language"
info: [debug] Current device language: en
info: [debug] java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk" "/tmp/io.appium.android.apis" en
info: [debug] No strings.xml for language 'en', getting default strings.xml
info: [debug] java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk" "/tmp/io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 push "/tmp/io.appium.android.apis/strings.json" /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt
info: [debug] processFromManifest: "/Users/baba/Documents/Tools/android/sdk/build-tools/android-4.4/aapt" dump xmltree "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk" AndroidManifest.xml
info: [debug] Set app process to: io.appium.android.apis
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] Checking app cert for /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk: java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/verify.jar" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk"
info: [debug] App not signed with debug cert.
info: [debug] Resigning apk with: java -jar "/Users/baba/Documents/Work/appium/submodules/appium-adb/jars/sign.jar" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk" --override
info: [debug] Zip-aligning /var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/baba/Documents/Tools/android/sdk/build-tools/21.1.1/zipalign
info: [debug] zipAlignApk: "/Users/baba/Documents/Tools/android/sdk/build-tools/21.1.1/zipalign" -f 4 "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/1141010-92669-b88s1m/appium-app.apk" "/var/folders/p0/lkbpcy393q918q38vf7clb0c0000gq/T/appium1141010-92669-19gjvx7.tmp"
info: [debug] MD5 for app is f106608e94bc9c1a18562dee1299c68f
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk"
info: [debug] Getting install status for io.appium.android.apis
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 io.appium.android.apis"
info: [debug] App is not installed
info: Installing App
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "mkdir -p /data/local/tmp/"
info: [debug] Removing any old apks
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/*.apk"
info: [debug] Found an apk we want to keep at /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk
info: [debug] Couldn't find any apks to remove
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/f106608e94bc9c1a18562dee1299c68f.apk"
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/baba/Documents/Work/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 install "/Users/baba/Documents/Work/appium/build/settings_apk/settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 install "/Users/baba/Documents/Work/appium/build/unlock_apk/unlock_apk-debug.apk"
info: Starting App
info: [debug] Attempting to kill all 'uiautomator' processes
info: [debug] Getting all processes with 'uiautomator'
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "ps 'uiautomator'"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: /Users/baba/Documents/Tools/android/sdk/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] WARNING: linker:
info: [debug] [UIAUTOMATOR STDOUT] libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json...
info: [debug] Waking up device if it's not alive
info: [debug] Pushing command to appium work queue: ["wake",{}]
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"\/data","status":0}
info: [debug] dataDir set to: /data
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] Getting device API level
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":false,"status":0}
info: [debug] Device is at API Level 19
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.android.apis/io.appium.android.apis.ApiDemos"
info: [debug] Waiting for pkg "io.appium.android.apis" and activity "io.appium.android.apis.ApiDemos" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId 78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956
info: <-- POST /wd/hub/session 303 9120.776 ms - 9
info: --> POST /wd/hub/session/78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956/timeouts/implicit_wait {"ms":3000}
info: [debug] Set Android implicit wait to 3000ms
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956"}
info: <-- POST /wd/hub/session/78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956/timeouts/implicit_wait 200 1.847 ms - 76 {"status":0,"value":null,"sessionId":"78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.1","revision":"64f934709b13aed163726dc1134504b8ff31c986"}},"sessionId":"78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956"}
info: <-- GET /wd/hub/status 200 1.235 ms - 155 {"status":0,"value":{"build":{"version":"1.3.1","revision":"64f934709b13aed163726dc1134504b8ff31c986"}},"sessionId":"78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956"}
info: --> DELETE /wd/hub/session/78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956 {}
info: Shutting down appium session
info: [debug] Removing app from device
info: [debug] Uninstalling io.appium.android.apis
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop io.appium.android.apis"
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 uninstall io.appium.android.apis
info: [debug] App was uninstalled
info: [debug] Pressing the HOME button
info: [debug] executing: "/Users/baba/Documents/Tools/android/sdk/platform-tools/adb" -s emulator-5554 shell "input keyevent 3"
info: [debug] Stopping logcat capture
info: [debug] Logcat already stopped
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"OK, shutting down","status":0}
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 3.225
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956"}
info: <-- DELETE /wd/hub/session/78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956 200 1360.739 ms - 76 {"status":0,"value":null,"sessionId":"78d2e0e2-e2b3-4b6f-91d4-ed6ebd4e7956"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment