Skip to content

Instantly share code, notes, and snippets.

@swapna-chennadi
Created May 22, 2013 14:19
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 swapna-chennadi/5627878 to your computer and use it in GitHub Desktop.
Save swapna-chennadi/5627878 to your computer and use it in GitHub Desktop.
Appium log trace while trying to find element by name on Android real device
info: Using local app from desiredCaps: /Users/swapna.chennadi/git/qa-automation-templateproject/src/test/resources/multidevice/NotesList.apk
debug: Appium request initiated at /wd/hub/session
info: Creating new appium session 5edc36b1-4a00-4679-bbbe-52816cef5f56
debug: Request received with params: {"desiredCapabilities":{"platform":"MAC","app":"/Users/swapna.chennadi/git/qa-automation-templateproject/src/test/resources/multidevice/NotesList.apk","browserName":"","app-package":"com.example.android.notepad","device":"Android","app-activity":"NotesList","version":"4.2"}}
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/swapna.chennadi/Development/sdk/platform-tools/adb
info: Trying to find a connected android device
info: [ADB] Getting connected devices...
info: [ADB] 1 device(s) connected
info: [ADB] Setting device id to 007c726*****
info: Found device, no need to retry
info: [ADB] Waiting for device 007c726******* to be ready and to respond to shell commands (timeout = 5)
info: Checking whether we need to run fast reset
debug: Checking app cert for /tmp/com.example.android.notepad.clean.apk: java -jar "/Users/swapna.chennadi/git_temp/appium/app/android/verify.jar" "/tmp/com.example.android.notepad.clean.apk"
debug: App already signed.
debug: Checking app cert for /Users/swapna.chennadi/git/qa-automation-templateproject/src/test/resources/multidevice/NotesList.apk: java -jar "/Users/swapna.chennadi/git_temp/appium/app/android/verify.jar" "/Users/swapna.chennadi/git/qa-automation-templateproject/src/test/resources/multidevice/NotesList.apk"
debug: App already signed.
debug: Getting install/clean status for com.example.android.notepad
info: Determining app install/clean status
debug: Running fast reset clean: /Users/swapna.chennadi/Development/sdk/platform-tools/adb -s 007c7266869691a6 shell am instrument com.example.android.notepad.clean/clean.apk.Clean
info: [ADB] Forwarding system:4724 to device:4724
info: [ADB] Pushing appium bootstrap to device...
info: Starting app
info: [ADB] Attempting to unlock screen
info: [ADB] Starting app com.example.android.notepad/com.example.android.notepad.NotesList
info: Waiting for app's activity to become focused
info: Getting focused package and activity
info: Running bootstrap
info: Checking for appium socket server to be ready
info: [ADB STDOUT] INSTRUMENTATION_STATUS: current=1
info: Checking for appium socket server to be ready
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: Checking for appium socket server to be ready
info: [ADB] Connecting to server on device...
info: [ANDROID] [info] Socket opened on port 4724
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 5edc36b1-4a00-4679-bbbe-52816cef5f56
POST /wd/hub/session 303 3535ms - 9
info: Checking for appium socket server to be ready
info: Checking for appium socket server to be ready
info: [ANDROID] [info] Client connected
debug: Appium request initiated at /wd/hub/session/5edc36b1-4a00-4679-bbbe-52816cef5f56
info: Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"Android","version":"4.1","webStorageEnabled":false,"takesScreenshots":true,"javascriptEnabled":true,"databaseEnabled":false},"sessionId":"5edc36b1-4a00-4679-bbbe-52816cef5f56"}
GET /wd/hub/session/5edc36b1-4a00-4679-bbbe-52816cef5f56 200 1ms - 289
debug: Appium request initiated at /wd/hub/session/5edc36b1-4a00-4679-bbbe-52816cef5f56/element
debug: Request received with params: {"using":"name","value":"New note"}
info: Pushing command to appium work queue: ["find",{"strategy":"name","selector":"New note","context":"","multiple":false}]
info: [ADB] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"name","selector":"New note","context":"","multiple":false}}
info: Checking for appium socket server to be ready
info: [ANDROID] [info] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"name","selector":"New note","context":"","multiple":false}}
info: Checking for appium socket server to be ready
info: [ANDROID] [info] Got command of type ACTION
info: Checking for appium socket server to be ready
info: [ANDROID] [debug] Got command action: find
info: [ANDROID] [debug] Finding New note using NAME with the contextId:
info: Checking for appium socket server to be ready
info: [ANDROID] [info] Returning result: {"value":"No element found","status":7}
info: Checking for appium socket server to be ready
info: [ADB] Received command result from bootstrap
info: Responding to client with error: {"status":7,"value":{"message":"An element could not be located on the page using the given search parameters.","origValue":"No element found"},"sessionId":"5edc36b1-4a00-4679-bbbe-52816cef5f56"}
POST /wd/hub/session/5edc36b1-4a00-4679-bbbe-52816cef5f56/element 500 541ms - 223
info: Didn't get a new command in 60 secs, shutting down...
info: [ADB] Pressing the HOME button
info: [ADB] Sending command to android: {"cmd":"shutdown"}
info: Checking for appium socket server to be ready
info: [ANDROID] [info] Got data from client: {"cmd":"shutdown"}
info: [ANDROID] [info] Got command of type SHUTDOWN
info: Checking for appium socket server to be ready
info: [ANDROID] [info] Returning result: {"value":"OK, shutting down","status":0}
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 UiAutomatorTestRunner=.
info: [ADB STDOUT] Time: 60.717
info: [ADB STDOUT] OK (1 test)
info: [ADB STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [ADB] Received command result from bootstrap
info: Sent shutdown command, waiting for ADB to stop...
info: [ADB] Not uninstalling app since server started with --reset
info: Clearing out appium devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment