Skip to content

Instantly share code, notes, and snippets.

@bootstraponline
Created March 19, 2014 16:36
Show Gist options
  • Save bootstraponline/9645696 to your computer and use it in GitHub Desktop.
Save bootstraponline/9645696 to your computer and use it in GitHub Desktop.
$ node .
info: Welcome to Appium v0.17.2 (REV f46a221b380630a1cbf6dbcb18511c3dc2d5e916)
info: Appium REST http interface listener started on 0.0.0.0:4723
   info  - socket.io started
info: Non-default server args: {"merciful":true}
debug: Appium request initiated at /wd/hub/session/9c4abc4d-917c-40be-8e44-36f45ae587ab
debug: Request received with params: {}
DELETE /wd/hub/session/9c4abc4d-917c-40be-8e44-36f45ae587ab 404 10ms - 53b
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"compressXml":false,"platform":"Linux","version":"4.3","device":"Android","device-type":"tablet","device-orientation":"portrait","name":"Ruby Console Android Appium","app-package":null,"app-activity":null,"app-wait-activity":".ui.SplashActivity","app":"/Users/user/woven/woven-automation/binary/woven.apk"}}
info: No app-activity desired capability or server param. Parsing from apk.
info: No app-package desired capability or server param. Parsing from apk.
info: Using local app from desired caps: /Users/user/woven/woven-automation/binary/woven.apk
info: Creating new appium session 6afb85e0-d9f9-4d4d-b464-b61d069175f3
info: Starting android appium
debug: Using fast reset? true
info: Preparing device for session
info: Checking whether app is actually present
info: Checking whether adb is present
info: [ADB] Using adb from /Users/user/woven/android-sdk-macosx/platform-tools/adb
info: Trying to find a connected android device
info: [ADB] Getting connected devices...
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" devices
info: [ADB] 1 device(s) connected
info: Setting device id to emulator-5554
info: [ADB] Waiting for device to be ready and to respond to shell commands (timeout = 5)
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 wait-for-device
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "echo 'ready'"
info: Starting logcat capture
info: Checking whether aapt is present
info: [ADB] Using aapt from /Users/user/woven/android-sdk-macosx/build-tools/19.0.1/aapt
debug: packageAndLaunchActivityFromManifest: "/Users/user/woven/android-sdk-macosx/build-tools/19.0.1/aapt" dump badging /Users/user/woven/woven-automation/binary/woven.apk
debug: badging package: com.litl.FireDrill
debug: badging act: com.litl.FireDrill.ui.RootActivity
info: Getting device API level
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: Device is at API Level 19
debug: java -jar "/Users/user/woven/appium/lib/devices/android/helpers/strings_from_apk.jar" "/Users/user/woven/woven-automation/binary/woven.apk" "/tmp/com.litl.FireDrill"
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 push "/tmp/com.litl.FireDrill/strings.json" /data/local/tmp
info: Checking whether aapt is present
info: [ADB] Using aapt from /Users/user/woven/android-sdk-macosx/build-tools/19.0.1/aapt
debug: processFromManifest: "/Users/user/woven/android-sdk-macosx/build-tools/19.0.1/aapt" dump xmltree /Users/user/woven/woven-automation/binary/woven.apk AndroidManifest.xml
debug: Set app process to: com.litl.Woven
debug: Not uninstalling app since server not started with --full-reset
info: MD5 for app is a0f6c86fd61be39dff44dcd727d6703a
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/a0f6c86fd61be39dff44dcd727d6703a.apk"
debug: Getting install status for com.litl.FireDrill
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 com.litl.FireDrill"
info: [ADB] App is installed
info: Running old fashion clear (reinstall)
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/a0f6c86fd61be39dff44dcd727d6703a.apk"
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "am force-stop com.litl.FireDrill"
info: Uninstalling com.litl.FireDrill
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 uninstall com.litl.FireDrill
debug: App was uninstalled
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/a0f6c86fd61be39dff44dcd727d6703a.apk"
info: [ADB] Forwarding system:4724 to device:4724
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 forward tcp:4724 tcp:4724
debug: Pushing appium bootstrap to device...
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 push "/Users/user/woven/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
debug: Pushing unlock helper app to device...
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 install "/Users/user/woven/appium/build/unlock_apk/unlock_apk-debug.apk"
info: Attempting to kill all 'uiautomator' processes
info: Getting all processes with 'uiautomator'
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "ps 'uiautomator'"
info: No matching processes found
info: Running bootstrap
debug: spawning: /Users/user/woven/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
info: [UIAUTOMATOR STDOUT] WARNING: linker:
info: [UIAUTOMATOR STDOUT] libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [BOOTSTRAP] [info] Socket opened on port 4724
info: [BOOTSTRAP] [info] Appium Socket Server Ready
info: [BOOTSTRAP] [info] Loading json...
debug: Waking up device if it's not alive
info: Pushing command to appium work queue: ["wake",{}]
info: [BOOTSTRAP] [info] json loading complete.
info: [BOOTSTRAP] [info] Registered crash watchers.
info: [BOOTSTRAP] [info] Client connected
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"action","action":"wake","params":{}}
info: [BOOTSTRAP] [info] Got command of type ACTION
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: [BOOTSTRAP] [debug] Got command action: wake
info: [BOOTSTRAP] [info] Returning result: {"value":true,"status":0}
info: Writing dumpsys output to /Users/user/woven/appium/.dumpsys.log
debug: Screen already unlocked, continuing.
info: Pushing command to appium work queue: ["getDataDir",{}]
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
info: [BOOTSTRAP] [info] Got command of type ACTION
info: [BOOTSTRAP] [debug] Got command action: getDataDir
info: [BOOTSTRAP] [info] Returning result: {"value":"\/data","status":0}
debug: dataDir set to: /data
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.litl.FireDrill/com.litl.FireDrill.ui.RootActivity"
info: Waiting for activity to  be focused
info: Getting focused package and activity
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: Getting focused package and activity
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: Device launched! Ready for commands
info: Setting command timeout to the default of 60 secs
info: Appium session started with sessionId 6afb85e0-d9f9-4d4d-b464-b61d069175f3
POST /wd/hub/session 303 9946ms - 9b
debug: Appium request initiated at /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3
debug: Request received with params: {}
info: Responding to client with success: {"status":0,"value":{"platform":"Linux","browserName":"Android","version":"4.3","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"compressXml":false,"device":"Android","device-type":"tablet","device-orientation":"portrait","name":"Ruby Console Android Appium","app-package":null,"app-activity":null,"app-wait-activity":".ui.SplashActivity","app":"/Users/user/woven/woven-automation/binary/woven.apk"},"sessionId":"6afb85e0-d9f9-4d4d-b464-b61d069175f3"}
GET /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3 200 4ms - 613b
debug: Appium request initiated at /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3/execute
debug: Request received with params: {"script":"mobile: setCommandTimeout","args":[{"timeout":9999}]}
info: Setting command timeout to 9999 secs
info: Responding to client with success: {"status":0,"value":9999,"sessionId":"6afb85e0-d9f9-4d4d-b464-b61d069175f3"}
POST /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3/execute 200 4ms - 89b
debug: Appium request initiated at /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3/execute
debug: Request received with params: {"script":"mobile: reset","args":[]}
info: Resetting app mid-session
info: Running fast reset on device
info: Running old fashion clear (reinstall)
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/a0f6c86fd61be39dff44dcd727d6703a.apk"
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "am force-stop com.litl.FireDrill"
info: Uninstalling com.litl.FireDrill
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 uninstall com.litl.FireDrill
debug: App was uninstalled
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/a0f6c86fd61be39dff44dcd727d6703a.apk"
info: Waiting for activity to not be focused
info: Getting focused package and activity
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.litl.FireDrill/com.litl.FireDrill.ui.RootActivity"
info: Waiting for activity to  be focused
info: Getting focused package and activity
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: Getting focused package and activity
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "dumpsys window windows"
info: Responding to client with success: {"status":0,"value":null,"sessionId":"6afb85e0-d9f9-4d4d-b464-b61d069175f3"}
POST /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3/execute 200 6251ms - 89b
debug: Appium request initiated at /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3
debug: Request received with params: {}
info: Shutting down appium session...
info: [ADB] Pressing the HOME button
debug: executing: "/Users/user/woven/android-sdk-macosx/platform-tools/adb" -s emulator-5554 shell "input keyevent 3"
info: Stopping logcat capture
debug: Logcat terminated with code null, signal SIGTERM
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"shutdown"}
info: [BOOTSTRAP] [info] Got command of type SHUTDOWN
info: [BOOTSTRAP] [info] Returning result: {"value":"OK, shutting down","status":0}
info: [BOOTSTRAP] [info] Closed client connection
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [UIAUTOMATOR STDOUT] Time: 15.977
info: [UIAUTOMATOR STDOUT] OK (1 test)
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: Sent shutdown command, waiting for UiAutomator to stop...
info: UiAutomator shut down normally
info: Cleaning up android objects
info: Cleaning up appium session
info: Responding to client with success: {"status":0,"value":null,"sessionId":"6afb85e0-d9f9-4d4d-b464-b61d069175f3"}
DELETE /wd/hub/session/6afb85e0-d9f9-4d4d-b464-b61d069175f3 200 5342ms - 89b
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"compressXml":false,"platform":"Linux","version":"4.3","device":"Android","device-type":"tablet","device-orientation":"portrait","name":"Ruby Console Android Appium","app-package":null,"app-activity":null,"app-wait-activity":".ui.SplashActivity","app":"/Users/user/woven/woven-automation/binary/woven.apk"}}
info: No app-activity desired capability or server param. Parsing from apk.
info: No app-package desired capability or server param. Parsing from apk.
info: Using local app from desired caps: /Users/user/woven/woven-automation/binary/woven.apk
info: Creating new appium session 997eca5a-1b14-4234-8a7b-4177f56e32f0
info: Starting android appium
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: this.args.fastReset must not be undefined
info: Error: this.args.fastReset must not be undefined
    at Android.start (/Users/user/woven/appium/lib/devices/android/android.js:91:17)
    at Appium.invoke (/Users/user/woven/appium/lib/appium.js:210:17)
    at null.<anonymous> (/Users/user/woven/appium/lib/appium.js:87:14)
    at /Users/user/woven/appium/lib/devices/device.js:64:7
    at Object.oncomplete (fs.js:107:15)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: this.args.fastReset must not be undefined)","origValue":"this.args.fastReset must not be undefined"},"sessionId":null}
POST /wd/hub/session 500 9ms - 232b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment