Skip to content

Instantly share code, notes, and snippets.

@vicwomg
Created June 30, 2015 23:06
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 vicwomg/35705da6cab74f50a23c to your computer and use it in GitHub Desktop.
Save vicwomg/35705da6cab74f50a23c to your computer and use it in GitHub Desktop.
selendroid backgrounding bug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.1","revision":"ce6220829063679bcccf5724515c29569c4a16d9"}}}
info: <-- GET /wd/hub/status 200 0.584 ms - 104 {"status":0,"value":{"build":{"version":"1.4.1","revision":"ce6220829063679bcccf5724515c29569c4a16d9"}}}
info: --> POST /wd/hub/session {"desiredCapabilities":{"automationName":"Selendroid","app":"http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.15.0/selendroid-test-app-0.15.0.apk","platformVersion":"4.4","deviceName":"Emulator","platformName":"Android","appActivity":".HomeScreenActivity","appWaitActivity":".HomeScreenActivity","appPackage":"io.selendroid.testapp"}}
info: Client User-Agent string: Apache-HttpClient/4.3.5 (java 1.5)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.15.0/selendroid-test-app-0.15.0.apk downloaded to /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] Creating new appium session 1b2a184c-f547-4a87-aaf2-41f0d6313774
info: [debug] Starting selendroid server
info: [debug] Getting Java version
info: Java version is: 1.7.0_71
info: [debug] Checking whether adb is present
info: [debug] Using adb from /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb
info: [debug] Checking whether selendroid is built yet
info: [debug] Selendroid server exists!
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: /Users/vic/p4/android/tools/android-sdk-macosx/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 cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 wait-for-device
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/aapt
info: [debug] Checking if has internet permission from manifest.
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/aapt dump badging /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] Rebuilt selendroid server already exists, no need to rebuild it with a new manifest
info: [debug] Checking signed status of /tmp/selendroid.io.selendroid.testapp.apk
info: [debug] Checking app cert for /tmp/selendroid.io.selendroid.testapp.apk.
info: [debug] executing cmd: java -jar /Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/verify.jar /tmp/selendroid.io.selendroid.testapp.apk
info: [debug] Checking signed status of /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] Checking app cert for /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk.
info: [debug] executing cmd: java -jar /Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/verify.jar /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] App not signed with debug cert.
info: [debug] Resigning apk.
info: [debug] executing cmd: java -jar /Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/sign.jar /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk --override
info: [debug] App already signed.
info: [debug] Zip-aligning /tmp/selendroid.io.selendroid.testapp.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/zipalign
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/zipalign -f 4 /tmp/selendroid.io.selendroid.testapp.apk /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-19p203f/appium.tmp
info: [debug] Zip-aligning /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/zipalign
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/zipalign -f 4 /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-k9wmwd/appium.tmp
info: [debug] Rebuilt selendroid apk exists, doing nothing
info: [debug] Getting install status for io.selendroid.testapp.selendroid
info: [debug] Getting device API level
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] MD5 for selendroid server is 8a044bc5a6c70155fcba4856896c79e8
info: [debug] Device is at API Level 19
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "pm list packages -3 io.selendroid.testapp.selendroid"
info: [debug] App is installed
info: [debug] Rebuilt selendroid is already installed
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "getprop persist.sys.language"
info: [debug] Current device persist.sys.language: en
info: [debug] java -jar "/Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk" "/tmp/io.selendroid.testapp" en
info: [debug] No strings.xml for language 'en', getting default strings.xml
info: [debug] java -jar "/Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk" "/tmp/io.selendroid.testapp"
info: [debug] Reading strings from converted strings.json
info: [debug] Setting language to default
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk.
info: [debug] executing cmd: java -jar /Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/verify.jar /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] App already signed.
info: [debug] Zip-aligning /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/zipalign
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/build-tools/19.1.0/zipalign -f 4 /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-4cb54l/appium-app.apk /var/folders/_0/mfxmfms95399181fm924s5740000ks/T/115530-83947-1oyx9sg/appium.tmp
info: [debug] MD5 for app is cdcfa019f100890ee0e610efef7f4bb1
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "ls /data/local/tmp/cdcfa019f100890ee0e610efef7f4bb1.apk"
info: [debug] Getting install status for io.selendroid.testapp
info: [debug] Getting device API level
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "pm list packages -3 io.selendroid.testapp"
info: --> GET /wd/hub/status {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Did not successfully proxy server command"},"sessionId":"1b2a184c-f547-4a87-aaf2-41f0d6313774"}
info: <-- GET /wd/hub/status 500 8.899 ms - 210
info: [debug] App is installed
info: App is already installed, resetting app
info: [debug] Running fast reset (stop and clear)
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "am force-stop io.selendroid.testapp"
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "pm clear io.selendroid.testapp"
info: [debug] Forwarding system:8080 to device:8080
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 forward tcp:8080 tcp:8080
info: [debug] Pushing settings apk to device...
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 install "/Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/build/settings_apk/settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 install "/Applications/Appium-1.4.app/Contents/Resources/node_modules/appium/build/unlock_apk/unlock_apk-debug.apk"
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "dumpsys window"
info: [debug] Screen already unlocked, continuing.
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "am instrument -e main_activity 'io.selendroid.testapp.HomeScreenActivity' io.selendroid.testapp.selendroid/io.selendroid.server.ServerInstrumentation"
info: --> GET /wd/hub/status {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Did not successfully proxy server command"},"sessionId":"1b2a184c-f547-4a87-aaf2-41f0d6313774"}
info: <-- GET /wd/hub/status 500 5.601 ms - 210
info: --> GET /wd/hub/status {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Did not successfully proxy server command"},"sessionId":"1b2a184c-f547-4a87-aaf2-41f0d6313774"}
info: <-- GET /wd/hub/status 500 5.699 ms - 210
info: --> GET /wd/hub/status {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Did not successfully proxy server command"},"sessionId":"1b2a184c-f547-4a87-aaf2-41f0d6313774"}
info: <-- GET /wd/hub/status 500 4.235 ms - 210
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: [debug] Selendroid server is alive!
info: [debug] Listening for Selendroid logs
info: [debug] Creating Selendroid session
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/session","method":"POST","json":{"desiredCapabilities":{"warnings":{},"desired":{"automationName":"Selendroid","app":"http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.15.0/selendroid-test-app-0.15.0.apk","platformVersion":"4.4","deviceName":"Emulator","platformName":"Android","appActivity":".HomeScreenActivity","appWaitActivity":".HomeScreenActivity","appPackage":"io.selendroid.testapp"},"automationName":"Selendroid","app":"http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.15.0/selendroid-test-app-0.15.0.apk","platformVersion":"4.4","deviceName":"Emulator","platformName":"Android","appActivity":".HomeScreenActivity","appWaitActivity":".HomeScreenActivity","appPackage":"io.selendroid.testapp"}}}
info: [debug] Successfully started selendroid session
info: [debug] Waiting for pkg "io.selendroid.testapp" and activity ".HomeScreenActivity" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "dumpsys window windows"
info: [debug] Overriding session id with "28d11d8a-f94b-7e40-bd0b-481ccc816caf"
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 7200 secs
info: [debug] Appium session started with sessionId 28d11d8a-f94b-7e40-bd0b-481ccc816caf
info: <-- POST /wd/hub/session 303 8264.185 ms - 74
info: --> GET /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf","method":"GET"}
info: [debug] Proxied response received with status 200: {"value":{"automationName":"selendroid","platform":"android","app":"http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.15.0/selendroid-test-app-0.15.0.apk","acceptSslCerts":true,"javascriptEnabled":true,"browserName":"selendroid","appActivity":".HomeScreenActivity","networkConnectionEnabled":true,"rotatable":true,"desired":{"automationName":"Selendroid","app":"http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.15.0/selendroid-test-app-0.15.0.apk","platformVersion":"4.4","deviceName":"Emulator","platformName":"Android","appActivity":".HomeScreenActivity","appWaitActivity":".HomeScreenActivity","appPackage":"io.selendroid.testapp"},"appPackage":"io.selendroid.testapp","version":"0.15.0","platformVersion":"19","deviceName":"Emulator","platformName":"android","handlesAlerts":true,"appWaitActivity":".HomeScreenActivity","warnings":{},"takesScreenshot":true},"status":0,"sessionId":"28d11d8a-f94b-7e40-bd0b-481ccc816caf"}
info: <-- GET /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf 200 15.229 ms - 961
info: --> GET /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/source {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/source","method":"GET"}
info: [debug] Proxied response received with status 200: {"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><views><DecorView name=\"\" label=\"\" value=\"\" ref=\"b17cc246-79b0-492e-034d-186b1648040a\" id=\"\" shown=\"true\"><rect x=\"0\" y=\"0\" height=\"800\" width=\"480\"/><LinearLayout name=\"\" label=\"\" value=\"\" ref=\"efdd5755-b52c-c59d-da25-aad51c1a3b7d\" id=\"\" shown=\"true\"><rect x=\"0\" y=\"0\" height=\"800\" width=\"480\"/><ViewStub name=\"\" label=\"\" value=\"\" ref=\"d5143e79-eff5-cf6d-e147-29b3c9ca810b\" id=\"action_mode_bar_stub\" shown=\"false\"><rect x=\"0\" y=\"0\" height=\"0\" width=\"0\"/></ViewStub><FrameLayout name=\"\" label=\"\" value=\"\" ref=\"d4296975-b2d9-a06b-a969-a004d4ffe21c\" id=\"\" shown=\"true\"><rect x=\"0\" y=\"38\" height=\"38\" width=\"480\"/><TextView name=\"\" label=\"\" value=\"selendroid-test-app\" ref=\"13a3caf2-0477-eedc-5ce5-a47466f871e0\" id=\"title\" shown=\"true\"><rect x=\"6\" y=\"39\" height=\"35\" width=\"468\"/></TextView></FrameLayout><FrameLayout name=\"\" label=\"\" value=\"\" ref=\"f87cc347-8d35-b2ac-1a7b-52a5e5f144a8\" id=\"content\" shown=\"true\"><rect x=\"0\" y=\"76\" height=\"724\" width=\"480\"/><LinearLayout name=\"\" label=\"\" value=\"\" ref=\"5580bcab-5b5f-8451-6e6e-7542a8996baa\" id=\"\" shown=\"true\"><rect x=\"0\" y=\"76\" height=\"709\" width=\"480\"/><TextView name=\"\" label=\"\" value=\"Hello Default Locale, Selendroid-test-app!\" ref=\"373b4727-7abd-751b-3adf-b5bd1a7aeee0\" id=\"\" shown=\"true\"><rect x=\"0\" y=\"76\" height=\"29\" width=\"480\"/></TextView><LinearLayout name=\"l10nCD\" label=\"\" value=\"\" ref=\"c7f8b130-8831-b820-7f12-646c17b6d8b7\" id=\"l10n\" shown=\"true\"><rect x=\"0\" y=\"105\" height=\"72\" width=\"480\"/><TextView name=\"\" label=\"\" value=\"Localization (L10n) locator test\" ref=\"c2a6aa7f-f28e-4116-d4a7-12a8f252d881\" id=\"\" shown=\"true\"><rect x=\"0\" y=\"123\" height=\"29\" width=\"293\"/></TextView><Button name=\"buttonTestCD\" label=\"\" value=\"EN Button\" ref=\"a7dd91a5-2d57-4ae7-dbc8-9187a0031e0f\" id=\"buttonTest\" shown=\"true\"><rect x=\"293\" y=\"105\" height=\"72\" width=\"128\"/></Button></LinearLayout><LinearLayout name=\"imageViewCD\" label=\"\" value=\"\" ref=\"ed36e006-9fa9-f962-2801-a0bb1d72da32\" id=\"imageView\" shown=\"true\"><rect x=\"0\" y=\"177\" height=\"91\" width=\"480\"/><ImageButton name=\"buttonStartWebviewCD\" label=\"\" value=\"\" ref=\"eaa55861-c15b-0f5d-252e-ec04d66eb6c9\" id=\"buttonStartWebview\" shown=\"true\"><rect x=\"0\" y=\"177\" height=\"91\" width=\"240\"/></ImageButton><ImageButton name=\"startUserRegistrationCD\" label=\"\" value=\"\" ref=\"3118732f-49cf-8fda-4e0b-6d3de004cb3d\" id=\"startUserRegistration\" shown=\"true\"><rect x=\"240\" y=\"177\" height=\"91\" width=\"240\"/></ImageButton></LinearLayout><EditText name=\"my_text_fieldCD\" label=\"\" value=\"\" ref=\"1479b04c-0a60-3ba8-e571-d8bea41fd2ee\" id=\"my_text_field\" shown=\"true\"><rect x=\"0\" y=\"268\" height=\"72\" width=\"480\"/></EditText><LinearLayout name=\"imageViewCD\" label=\"\" value=\"\" ref=\"59d2feae-7cb2-ea23-31aa-e7f2218f8f11\" id=\"lastElementRow\" shown=\"true\"><rect x=\"0\" y=\"340\" height=\"72\" width=\"480\"/><Button name=\"waitingButtonTestCD\" label=\"\" value=\"Show Progress Bar for a while\" ref=\"3f67d4a1-6987-39f4-8258-377cfdf74765\" id=\"waitingButtonTest\" shown=\"true\"><rect x=\"0\" y=\"340\" height=\"72\" width=\"314\"/></Button><CheckBox name=\"\" label=\"\" value=\"I accept adds\" ref=\"3c1a6f5f-2721-c3ee-ec6d-e16f59843e70\" id=\"input_adds_check_box\" shown=\"true\"><rect x=\"314\" y=\"350\" height=\"72\" width=\"166\"/></CheckBox></LinearLayout><LinearLayout name=\"visibleTestAreaCD\" label=\"\" value=\"\" ref=\"03d9973f-4ba8-0fc4-70a7-34b00db1b66f\" id=\"visibleTestArea\" shown=\"true\"><rect x=\"0\" y=\"412\" height=\"72\" width=\"480\"/><Button name=\"visibleButtonTestCD\" label=\"\" value=\"Display text view\" ref=\"e9cc5c00-ea87-a596-0ae0-54e718d0e189\" id=\"visibleButtonTest\" shown=\"true\"><rect x=\"0\" y=\"412\" height=\"72\" width=\"192\"/></Butto
n><TextView name=\"\" label=\"\" value=\"Text is sometimes displayed\" ref=\"45e58060-7b95-4839-26f5-edd4e6ae699d\" id=\"visibleTextView\" shown=\"false\"><rect x=\"192\" y=\"430\" height=\"29\" width=\"267\"/></TextView></LinearLayout><LinearLayout name=\"visibleTestAreaCD\" label=\"\" value=\"\" ref=\"2bd84521-1a74-de0b-c12f-0e0bf1cd94b7\" id=\"visibleTestArea\" shown=\"true\"><rect x=\"0\" y=\"484\" height=\"128\" width=\"480\"/><Button name=\"showToastButtonCD\" label=\"\" value=\"Displays a Toast\" ref=\"6b52a69d-6c13-2c7c-74ab-127a83c6247b\" id=\"showToastButton\" shown=\"true\"><rect x=\"0\" y=\"484\" height=\"128\" width=\"160\"/></Button><Button name=\"showPopupWindowButtonCD\" label=\"\" value=\"Display Popup Window\" ref=\"6805415b-29ad-b676-dec0-bc6cdf531b85\" id=\"showPopupWindowButton\" shown=\"true\"><rect x=\"160\" y=\"484\" height=\"128\" width=\"160\"/></Button><Button name=\"exceptionTestButtonCD\" label=\"\" value=\"Press to throw unhandled exception\" ref=\"4f815e1c-c21c-816a-1cf3-56753e12773c\" id=\"exceptionTestButton\" shown=\"true\"><rect x=\"320\" y=\"484\" height=\"128\" width=\"160\"/></Button></LinearLayout><EditText name=\"\" label=\"\" value=\"\" ref=\"93c0e014-1e4d-5de3-8c88-f3a42f5bdb0d\" id=\"exceptionTestField\" shown=\"true\"><rect x=\"0\" y=\"612\" height=\"72\" width=\"480\"/></EditText><TextView name=\"\" label=\"\" value=\"パソコン版にする\" ref=\"51f5c6fd-2dae-8da9-988f-156624e7aaf3\" id=\"encodingTextview\" shown=\"true\"><rect x=\"0\" y=\"684\" height=\"29\" width=\"480\"/></TextView><Button name=\"\" label=\"\" value=\"Display and focus on layout\" ref=\"4afd0dab-f6d8-5b9c-232e-989bad4a2642\" id=\"topLevelElementTest\" shown=\"true\"><rect x=\"0\" y=\"713\" height=\"72\" width=\"295\"/></Button><LinearLayout name=\"\" label=\"\" value=\"\" ref=\"30efd26c-95b7-f16e-bd67-b8d2b869515c\" id=\"focusedLayout\" shown=\"false\"><rect x=\"0\" y=\"76\" height=\"0\" width=\"0\"/><TextView name=\"\" label=\"\" value=\"Should only be found once\" ref=\"764920cf-080a-9fe9-09a0-c80735d90d7f\" id=\"focusedText\" shown=\"false\"><rect x=\"0\" y=\"76\" height=\"0\" width=\"0\"/></TextView></LinearLayout></LinearLayout></FrameLayout></LinearLayout></DecorView></views>","status":0,"sessionId":"28d11d8a-f94b-7e40-bd0b-481ccc816caf"}
info: <-- GET /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/source 200 94.577 ms - 6332
info: --> GET /wd/hub/status {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: --> POST /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/appium/app/background {"seconds":2}
info: [debug] Getting focused package and activity
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "dumpsys window windows"
info: [debug] Proxied response received with status 200: {"value":{"supportedApps":[],"build":{"browserName":"selendroid","version":"0.15.0"},"os":{"arch":"x86","version":"19","name":"Android"},"supportedDevices":[]},"status":0}
info: <-- GET /wd/hub/status 200 17.931 ms - 171
info: --> GET /wd/hub/status {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/status","method":"GET"}
info: [debug] Proxied response received with status 200: {"value":{"supportedApps":[],"build":{"browserName":"selendroid","version":"0.15.0"},"os":{"arch":"x86","version":"19","name":"Android"},"supportedDevices":[]},"status":0}
info: <-- GET /wd/hub/status 200 18.350 ms - 171
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "input keyevent 3"
info: [debug] Getting device API level
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing cmd: /Users/vic/p4/android/tools/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 io.selendroid.testapp/.HomeScreenActivity"
info: [debug] Waiting for pkg "io.selendroid.testapp" and activity ".HomeScreenActivity" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: /Users/vic/p4/android/tools/android-sdk-macosx/platform-tools/adb -s emulator-5554 shell "dumpsys window windows"
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"28d11d8a-f94b-7e40-bd0b-481ccc816caf"}
info: <-- POST /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/appium/app/background 200 3077.811 ms - 76 {"status":0,"value":null,"sessionId":"28d11d8a-f94b-7e40-bd0b-481ccc816caf"}
info: --> GET /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/source {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/source","method":"GET"}
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Did not successfully proxy server command"},"sessionId":"28d11d8a-f94b-7e40-bd0b-481ccc816caf"}
info: <-- GET /wd/hub/session/28d11d8a-f94b-7e40-bd0b-481ccc816caf/source 500 6.133 ms - 210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment