Skip to content

Instantly share code, notes, and snippets.

@prolificcoder
Created April 15, 2013 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prolificcoder/5391403 to your computer and use it in GitHub Desktop.
Save prolificcoder/5391403 to your computer and use it in GitHub Desktop.
Whole stack trace
info: [ADB] Waiting for device emulator-5554 to be ready and to respond to shell commands (timeout = 5)
debug: Getting install/clean status for com.urbanspoon
info: [ADB] Forwarding system:4724 to device:4724
info: [ADB] Pushing appium bootstrap to device...
info: [ADB] Starting app com.urbanspoon/com.urbanspoon.activities.DashboardActivity
info: [ADB] Attempting to unlock screen
info: Waiting for app's activity to become focused
info: [ADB STDOUT] INSTRUMENTATION_STATUS: current=1
info: [ADB STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [ADB STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [ADB STDOUT] INSTRUMENTATION_STATUS: stream=
info: [ADB STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [ADB STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [ADB STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [ADB STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [ANDROID] [info] Socket opened on port 4724
info: [ADB] Connecting to server on device...
info: [ANDROID] [info] Appium Socket Server Ready
info: [ADB] Connected!
info: ADB launched! Ready for commands (will time out in 60secs)
info: Appium session started with sessionId babeb406-14aa-4ff2-956b-16aadbd6c024
POST /wd/hub/session 303 7390ms - 9
debug: Appium request initiated at /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024/timeouts/implicit_wait
debug: Request received with params: {"ms":5000}
info: Set Android implicit wait to 5000ms
info: Responding to client with success: {"status":0,"value":null,"sessionId":"babeb406-14aa-4ff2-956b-16aadbd6c024"}
POST /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024/timeouts/implicit_wait 200 1ms - 89
info: [ANDROID] [info] Client connected
debug: Appium request initiated at /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024/execute
debug: Request received with params: {"script":"mobile: swipe","args":[{"startX":100,"startY":300,"endX":300,"endY":300,"duration":3}]}
info: Pushing command to appium work queue: ["swipe",{"startX":100,"startY":300,"endX":300,"endY":300,"steps":15}]
info: [ADB] Sending command to android: {"cmd":"action","action":"swipe","params":{"startX":100,"startY":300,"endX":300,"endY":300,"steps":15}}
debug: Appium request initiated at /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024/element
debug: Request received with params: {"using":"xpath","value":"//text[@value='Sign In']"}
info: Pushing command to appium work queue: ["find",{"strategy":"xpath","selector":"//text[@value='Sign In']","context":"","multiple":false,"path":[{"node":"text","search":"desc"}],"attr":"value","constraint":"Sign In","substr":false}]
info: [ADB] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//text[@value='Sign In']","context":"","multiple":false,"path":[{"node":"text","search":"desc"}],"attr":"value","constraint":"Sign In","substr":false}}
info: [ADB STDOUT] [APPIUM-UIAUTO] [info] Got data from client: {"cmd":"action","action":"swipe","params":{"startX":100,"startY":300,"endX":300,"endY":300,"steps":15}}
info: [ADB STDOUT] {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//text[@value='Sign In']","context":"","multiple":false,"path":[{"node":"text","search":"desc"}],"attr":"value","constraint":"Sign In","substr":false}}[/APPIUM-UIAUTO]
info: [ANDROID] [info] Got command of type ACTION
info: [ANDROID] [debug] Got command action: swipe
info: [ANDROID] [info] Swiping from [x=100.0, y=300.0] to [x=300.0, y=300.0] with steps: 15
info: [ANDROID] [info] Returning result: {"value":false,"status":0}
info: [ADB] Received command result from bootstrap
info: Responding to client with success: {"status":0,"value":false,"sessionId":"babeb406-14aa-4ff2-956b-16aadbd6c024"}
POST /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024/element 200 721ms - 90
info: Didn't get a new command in 60 secs, shutting down...
info: [ADB] Pressing the HOME button
debug: Appium request initiated at /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024
info: Shutting down appium session...
info: [ADB] Pressing the HOME button
info: [ADB] Sending command to android: {"cmd":"shutdown"}
info: [ANDROID] [info] Got data from client: {"cmd":"shutdown"}
info: [ANDROID] [info] Got command of type SHUTDOWN
info: [ANDROID] [info] Returning result: {"value":"OK, shutting down","status":0}
info: [ADB] Received command result from bootstrap
info: Sent shutdown command, waiting for ADB to stop...
info: [ANDROID] [info] Closed client connection
info: [ADB STDOUT] INSTRUMENTATION_STATUS: current=1
info: [ADB STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [ADB STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [ADB STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [ADB STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [ADB STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [ADB STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [ADB STDOUT] INSTRUMENTATION_STATUS: stream=
info: [ADB STDOUT] Test results for WatcherResultPrinter=.
info: [ADB STDOUT] Time: 63.059
info: [ADB STDOUT] OK (1 test)
info: [ADB STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [ADB] Not uninstalling app since server started with --reset
info: Clearing out appium devices
info: Responding to client with success: {"status":0,"value":null,"sessionId":"babeb406-14aa-4ff2-956b-16aadbd6c024"}
DELETE /wd/hub/session/babeb406-14aa-4ff2-956b-16aadbd6c024 200 2942ms - 89
error: uncaughtException date=Mon Apr 15 2013 14:21:18 GMT-0700 (PDT), pid=17098, uid=1394480118, gid=288195695, cwd=/Users/malugus/code/exp/appium, execPath=/usr/local/bin/node, version=v0.8.18, argv=[node, /Users/malugus/code/exp/appium/server.js, --app, /Users/malugus/code/android-master/urbanspoon/bin/DashboardActivity.apk, -V, --no-reset], rss=30019584, heapTotal=20575488, heapUsed=15063016, loadavg=[1.37841796875, 1.49267578125, 1.552734375], uptime=258133, trace=[column=16, file=/Users/malugus/code/exp/appium/app/android.js, function=Android.stop.queue, line=161, method=stop.queue, native=false, column=5, file=/Users/malugus/code/exp/appium/uiautomator/adb.js, function=ADB.goToHome, line=1028, method=goToHome, native=false, column=7, file=child_process.js, function=ChildProcess.exithandler, line=538, method=exithandler, native=false, column=17, file=events.js, function=ChildProcess.EventEmitter.emit, line=99, method=EventEmitter.emit, native=false, column=16, file=child_process.js, function=maybeClose, line=638, method=null, native=false, column=11, file=child_process.js, function=Socket.ChildProcess.spawn.stdin, line=815, method=ChildProcess.spawn.stdin, native=false, column=17, file=events.js, function=Socket.EventEmitter.emit, line=96, method=EventEmitter.emit, native=false, column=10, file=net.js, function=Socket._destroy.destroyed, line=358, method=_destroy.destroyed, native=false, column=9, file=node.js, function=process.startup.processNextTick.process._tickCallback, line=244, method=startup.processNextTick.process._tickCallback, native=false], stack=[TypeError: Cannot call method 'sendShutdownCommand' of null, at Android.stop.queue (/Users/malugus/code/exp/appium/app/android.js:161:16), at ADB.goToHome (/Users/malugus/code/exp/appium/uiautomator/adb.js:1028:5), at ChildProcess.exithandler (child_process.js:538:7), at ChildProcess.EventEmitter.emit (events.js:99:17), at maybeClose (child_process.js:638:16), at Socket.ChildProcess.spawn.stdin (child_process.js:815:11), at Socket.EventEmitter.emit (events.js:96:17), at Socket._destroy.destroyed (net.js:358:10), at process.startup.processNextTick.process._tickCallback (node.js:244:9)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment