• 模拟器下可以使用,求解,谢谢

  • Launching Appium server with command: D:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --app D:\androidworkspace\appium_demo\apps\ContactManager.apk --platform-name Android --platform-version 21 --automation-name Appium --device-name "mx5" --log-no-color
    info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
    info: Appium REST http interface listener started on 127.0.0.1:4723
    info: [debug] Non-default server args: {"app":"D:\androidworkspace\appium_demo\apps\ContactManager.apk","address":"127.0.0.1","logNoColors":true,"deviceName":"mx5","platformName":"Android","platformVersion":"21","automationName":"Appium"}
    info: Console LogLevel: debug
    info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"5.0.1","app":"D:\androidworkspace\appium_demo\apps\ContactManager.apk","platformName":"Android","deviceName":"mx5","browserName":"","appActivity":".ContactManager","appPackage":"com.example.android.contactmanager"}}
    info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)
    info: [debug] Using local app from desired caps: D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] Creating new appium session cb849dfa-ca5e-4f85-b5cf-b4ea53cb5551
    info: Starting android appium
    info: [debug] Getting Java version
    info: Java version is: 1.7.0_67
    info: [debug] Checking whether adb is present
    info: [debug] Using adb from D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe
    info: [debug] Using fast reset? true
    info: [debug] Preparing device for session
    info: [debug] Checking whether app is actually present
    info: Retrieving device
    info: [debug] Trying to find a connected android device
    info: [debug] Getting connected devices...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" devices
    info: [debug] 1 device(s) connected
    info: Found device 85GBBM922JJY
    info: [debug] Setting device id to 85GBBM922JJY
    info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY wait-for-device
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "echo 'ready'"
    info: [debug] Starting logcat capture
    info: [debug] Getting device API level
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "getprop ro.build.version.sdk"
    info: [debug] Device is at API Level 21
    info: Device API level is: 21
    info: [debug] Extracting strings for language: default
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "getprop persist.sys.language"
    info: [debug] Current device persist.sys.language:
    info: [debug] java -jar "D:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\androidworkspace\appium_demo\apps\ContactManager.apk" "C:\Users\寰愭稕娑沑 AppData\Local\Temp\com.example.android.contactmanager"
    info: [debug] Reading strings from converted strings.json
    info: [debug] Setting language to default
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY push "C:\Users\寰愭稕娑沑\AppData\Local\Temp\com.example.android.contactmanager\strings.json" /data/local/tmp
    info: [debug] Checking whether aapt is present
    info: [debug] Using aapt from D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe
    info: [debug] Retrieving process from manifest.
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe" dump xmltree D:\androidworkspace\appium_demo\apps\ContactManager.apk AndroidManifest.xml
    info: [debug] Set app process to: com.example.android.contactmanager
    info: [debug] Not uninstalling app since server not started with --full-reset
    info: [debug] Checking app cert for D:\androidworkspace\appium_demo\apps\ContactManager.apk.
    info: [debug] executing cmd: java -jar "D:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] App already signed.
    info: [debug] Zip-aligning D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] Checking whether zipalign is present
    info: [debug] Using zipalign from D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\zipalign.exe
    info: [debug] Zip-aligning apk.
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\zipalign.exe" -f 4 D:\androidworkspace\appium_demo\apps\ContactManager.apk C:\Users\寰愭稕娑沑 AppData\Local\Temp\11663-4896-11xuowd\appium.tmp
    info: [debug] MD5 for app is b2d2916bb5388e1dc281ec3e71ef1234
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "ls /data/local/tmp/b2d2916bb5388e1dc281ec3e71ef1234.apk"
    info: [debug] Getting install status for com.example.android.contactmanager
    info: [debug] Getting device API level
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "getprop ro.build.version.sdk"
    info: [debug] Device is at API Level 21
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "pm list packages -3 com.example.android.contactmanager"
    info: [debug] App is installed
    info: App is already installed, resetting app
    info: [debug] Running fast reset (stop and clear)
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "am force-stop com.example.android.contactmanager"
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "pm clear com.example.android.contactmanager"
    info: [debug] Forwarding system:4724 to device:4724
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY forward tcp:4724 tcp:4724
    info: [debug] Pushing appium bootstrap to device...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY push "D:\Program Files (x86)\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar" /data/local/tmp/
    info: [debug] Pushing settings apk to device...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY install "D:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
    info: [debug] Pushing unlock helper app to device...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY install "D:\Program Files (x86)\Appium\node_modules\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 cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "ps 'uiautomator'"
    info: [debug] No matching processes found
    info: [debug] Running bootstrap
    info: [debug] spawning: D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s 85GBBM922JJY shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.example.android.contactmanager -e disableAndroidWatchers false
    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] [BOOTSTRAP] [debug] Got command of type ACTION
    info: [debug] [BOOTSTRAP] [debug] Got command action: wake
    info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "dumpsys window"
    info: [debug] Stopping logcat capture
    info: [debug] Logcat terminated with code null, signal SIGTERM
    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: {"status":0,"value":"OK, shutting down"}
    info: [debug] [UIAUTOMATOR STDOUT] [CDS] close[4724]
    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: 1.027
    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...
    error: Failed to start an Appium session, err was: Error: stdout maxBuffer exceeded.
    info: [debug] UiAutomator shut down normally
    info: [debug] Cleaning up android objects
    info: [debug] Cleaning up appium session
    info: [debug] Error: stdout maxBuffer exceeded.
    at Socket. (child_process.js:792:12)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at Pipe.onread (net.js:540:20)
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: stdout maxBuffer exceeded.)","cmd":"C:\Windows\system32\cmd.exe /s /c \"\"D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe\" -s 85GBBM922JJY shell \"dumpsys window\"\"","origValue":"stdout maxBuffer exceeded."},"sessionId":null}
    info: <-- POST /wd/hub/session 500 9229.592 ms - 339
    info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"5.0.1","app":"D:\androidworkspace\appium_demo\apps\ContactManager.apk","platformName":"Android","deviceName":"mx5","browserName":""}}
    info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)
    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] Using local app from desired caps: D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] Creating new appium session 6d0e2b97-5a6e-4e41-a787-af7203683436
    info: Starting android appium
    info: [debug] Getting Java version
    info: Java version is: 1.7.0_67
    info: [debug] Checking whether adb is present
    info: [debug] Using adb from D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe
    info: [debug] Parsing package and activity from app manifest
    info: [debug] Checking whether aapt is present
    info: [debug] Using aapt from D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe
    info: [debug] Extracting package and launch activity from manifest.
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe" dump badging D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] badging package: com.example.android.contactmanager
    info: [debug] badging act: com.example.android.contactmanager.ContactManager
    info: [debug] Parsed package and activity are: com.example.android.contactmanager/com.example.android.contactmanager.ContactManager
    info: [debug] Using fast reset? true
    info: [debug] Preparing device for session
    info: [debug] Checking whether app is actually present
    info: Retrieving device
    info: [debug] Trying to find a connected android device
    info: [debug] Getting connected devices...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" devices
    info: [debug] 1 device(s) connected
    info: Found device 85GBBM922JJY
    info: [debug] Setting device id to 85GBBM922JJY
    info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY wait-for-device
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "echo 'ready'"
    info: [debug] Starting logcat capture
    info: [debug] Getting device API level
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "getprop ro.build.version.sdk"
    info: [debug] Device is at API Level 21
    info: Device API level is: 21
    info: [debug] Extracting strings for language: default
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "getprop persist.sys.language"
    info: [debug] Current device persist.sys.language:
    info: [debug] java -jar "D:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\androidworkspace\appium_demo\apps\ContactManager.apk" "C:\Users\寰愭稕娑沑 AppData\Local\Temp\com.example.android.contactmanager"
    info: [debug] Reading strings from converted strings.json
    info: [debug] Setting language to default
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY push "C:\Users\寰愭稕娑沑\AppData\Local\Temp\com.example.android.contactmanager\strings.json" /data/local/tmp
    info: [debug] Checking whether aapt is present
    info: [debug] Using aapt from D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe
    info: [debug] Retrieving process from manifest.
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe" dump xmltree D:\androidworkspace\appium_demo\apps\ContactManager.apk AndroidManifest.xml
    info: [debug] Set app process to: com.example.android.contactmanager
    info: [debug] Not uninstalling app since server not started with --full-reset
    info: [debug] Checking app cert for D:\androidworkspace\appium_demo\apps\ContactManager.apk.
    info: [debug] executing cmd: java -jar "D:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] App already signed.
    info: [debug] Zip-aligning D:\androidworkspace\appium_demo\apps\ContactManager.apk
    info: [debug] Checking whether zipalign is present
    info: [debug] Using zipalign from D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\zipalign.exe
    info: [debug] Zip-aligning apk.
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\zipalign.exe" -f 4 D:\androidworkspace\appium_demo\apps\ContactManager.apk C:\Users\寰愭稕娑沑 AppData\Local\Temp\11663-4896-7rmlqa\appium.tmp
    info: [debug] MD5 for app is b2d2916bb5388e1dc281ec3e71ef1234
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "ls /data/local/tmp/b2d2916bb5388e1dc281ec3e71ef1234.apk"
    info: [debug] Getting install status for com.example.android.contactmanager
    info: [debug] Getting device API level
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "getprop ro.build.version.sdk"
    info: [debug] Device is at API Level 21
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "pm list packages -3 com.example.android.contactmanager"
    info: [debug] App is installed
    info: App is already installed, resetting app
    info: [debug] Running fast reset (stop and clear)
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "am force-stop com.example.android.contactmanager"
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "pm clear com.example.android.contactmanager"
    info: [debug] Forwarding system:4724 to device:4724
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY forward tcp:4724 tcp:4724
    info: [debug] Pushing appium bootstrap to device...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY push "D:\Program Files (x86)\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar" /data/local/tmp/
    info: [debug] Pushing settings apk to device...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY install "D:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
    info: [debug] Pushing unlock helper app to device...
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY install "D:\Program Files (x86)\Appium\node_modules\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 cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "ps 'uiautomator'"
    info: [debug] No matching processes found
    info: [debug] Running bootstrap
    info: [debug] spawning: D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s 85GBBM922JJY shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.example.android.contactmanager -e disableAndroidWatchers false
    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] [BOOTSTRAP] [debug] Got command of type ACTION
    info: [debug] [BOOTSTRAP] [debug] Got command action: wake
    info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
    info: [debug] executing cmd: "D:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" -s 85GBBM922JJY shell "dumpsys window"
    info: [debug] Stopping logcat capture
    info: [debug] Logcat terminated with code null, signal SIGTERM
    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: {"status":0,"value":"OK, shutting down"}
    info: [debug] [UIAUTOMATOR STDOUT] [CDS] close[4724]
    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: 1.06
    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
    error: Failed to start an Appium session, err was: Error: stdout maxBuffer exceeded.
    info: [debug] Error: stdout maxBuffer exceeded.
    at Socket. (child_process.js:792:12)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at Pipe.onread (net.js:540:20)