66 Commits

Author SHA1 Message Date
Jonathan Lipps 1c789c2979 use cross-platform path.resolve in adb.js 2013-06-12 15:04:59 -04:00
Jonathan Lipps 49a93db50d selendroid needs to use this.adbCmd 2013-06-07 13:45:12 -07:00
bootstraponline 92f40c07d1 Quote adb push path 2013-06-07 11:03:03 -04:00
bootstraponline 38e98a64cf Use adbCmd 2013-06-07 08:29:11 -04:00
Jonathan Lipps d3fc5a081d update appium to reflect changes in new selendroid 2013-06-06 09:39:13 -07:00
bootstraponline e422d23435 Spawn breaks with quotes and exec breaks without them 2013-06-06 10:52:07 -04:00
bootstraponline 404eeda86c Quote make strings command 2013-06-06 10:39:41 -04:00
bootstraponline bc34c15ad6 Quote binary location to fix space in path
Log runBootstrap command
2013-06-06 10:39:41 -04:00
bootstraponline 6b9419e3f5 Use the same error message on iOS and Android
Fixes #689
2013-06-05 16:42:57 -04:00
bootstraponline c4568f809a Wait for activity takes an array
Fix #691
2013-06-05 16:02:33 -04:00
Jonathan Lipps ab9ad3eed3 make noReset sound and act like what's intended (fix #651) 2013-06-04 15:02:54 -07:00
Jonathan Lipps 92682e41e4 resend last command for adb, not for android (fix #705) 2013-06-04 13:16:24 -07:00
bootstraponline df92440068 Merge pull request #703 from bootstraponline/675
Fix java.lang.IllegalStateException: UiAutomationService not connected.
2013-06-04 08:11:35 -07:00
Jonathan Lipps d88a0ea169 java style fixes 2013-06-04 07:56:56 -07:00
bootstraponline 4a2b957ae5 Fix java.lang.IllegalStateException: UiAutomationService not connected.
Fixes #675
2013-06-04 10:55:41 -04:00
Jonathan Lipps e58b0083a3 factor out android telnet commands for reusability 2013-06-03 16:18:35 -07:00
Jonathan Lipps af7759ee58 refactor emulator port retrieval and nodify penguinho code 2013-06-03 15:57:54 -07:00
Jonathan Lipps 4f2564a165 make sure device wakes up before trying to run test (fix #490) 2013-06-03 15:20:44 -07:00
Jonathan Lipps e66113bfe6 make sure androidmanifest.xml.apk is writable (fix #690) 2013-06-03 14:28:33 -07:00
Jonathan Lipps 5581880d15 make sure app is still uninstalled when not using fast reset (fix #687) 2013-06-03 13:54:27 -07:00
Jonathan Lipps 9e846f3379 clean up adb restart code 2013-06-03 11:26:45 -07:00
bootstraponline cc776ed9f5 Use adb push and have server load on startup 2013-06-03 11:12:16 -04:00
Eric Plaster 2e6e1c58c7 Updated to use Timer 2013-05-31 20:04:06 -04:00
Jonathan Lipps 4724621018 Apply @jlipps patch 2013-05-31 20:04:06 -04:00
bootstraponline 80adf8efa7 Wrap doRun 2013-05-31 20:04:06 -04:00
bootstraponline 0f550e12cd Detect not found error early. 2013-05-31 20:04:06 -04:00
bootstraponline 89ac84823e Fix NPE crash by using spin wait 2013-05-31 20:04:05 -04:00
bootstraponline 839729d177 Start moving find by id to server 2013-05-31 20:04:05 -04:00
Jonathan Lipps 59dab35265 Merge pull request #679 from bootstraponline/fix_webview
WebView is not a widget
2013-05-30 17:01:07 -07:00
bootstraponline 745c170bdd WebView is not a widget 2013-05-30 18:57:21 -04:00
Jonathan Lipps c8d74fca57 make exception check broader 2013-05-30 08:34:34 -07:00
Jonathan Lipps f84cd0b08f add getLocation for android 2013-05-29 18:55:19 -07:00
Jonathan Lipps 4a7019a3cb Merge pull request #624 from mutualmobile/websocket_notifications_for_alerts
Added changes to notify websocket listeners of alert dialogs.
2013-05-28 12:49:26 -07:00
Eric Plaster 5d7cc06ae8 Added changes to notify websocket listeners of alert dialogs.
One thing to keep in mind: iOS and Android treat dialogs differently. iOS "system" dialogs can be triggered from the application under test as well as from external sources (the system). However, Android treats dialogs as any other window. So, to make this work, the bootstrap app looks for windows with the package name of "com.android.systemui". These are dialogs that the system has instantiated, but not the app.

So, for example, if we had the same application written on both platforms, and they both had a login screen, and you click on the login button without putting in a username. On iOS, you would be notified if they used a standard system dialog, and you would not be notified on Android. However, if the system put up a low battery dialog, it would be detected on both systems.

So... The main reason for implementing this is to stop failing tests from unintentional dialogs appearing during an overnight test.

Updated call signiture to instruments.
2013-05-28 13:11:36 -05:00
bootstraponline 2f2fb5480f Fix fast reset race condition
adb shell am commands return immediately, not when they're finished. am
instrument will close the app once it completes. It's possible for instrument to
be running, the am start command is issued, then instrument finishes and closes
the app. Appium is now waiting for an activity that will never appear and the
tests fail.

The fix is to only start the app once reset has closed the app.

Fixes #662
2013-05-28 13:30:17 -04:00
Dan Cuellar bd1f735204 No longer restarting avd if it's already running 2013-05-24 19:32:52 -07:00
Jonathan Lipps 9cef2bedd1 kill selendroid-instrumented app after test (fix #641) 2013-05-24 11:52:38 -07:00
Jonathan Lipps 7171a61a21 selendroid should also unlock screen before test 2013-05-24 11:40:49 -07:00
bootstraponline c8644f6152 Return JSON
Fixes mobile find all search
2013-05-24 11:44:07 -04:00
bootstraponline e3ff8f360d Fix Android scroll_to 2013-05-24 10:30:41 -04:00
Jonathan Lipps 03e31b137c make selendroid build new servers in /tmp, and uniquify the modded server name 2013-05-23 14:58:16 -07:00
bootstraponline b3c3cb1c32 Fix ADT 22 path
Fixes #638
2013-05-23 11:49:25 -04:00
bootstraponline ea3450e7f7 Fix NPE
Fixes https://github.com/appium/appium/issues/628
2013-05-22 15:34:39 -04:00
Eric Plaster 2b44565b5d Added "wait for page load" support for android 2013-05-20 12:23:44 -05:00
bootstraponline cf73dd5bae Fix SDK binary path for ADT 22
Fix #615
2013-05-20 10:54:38 -04:00
Eric Plaster 1be068e9a5 Find by name now checks to see if it found the UiObject (by content-desc), and if it doesn't exist, searches by text (i.e. visible text displayed for a widget) 2013-05-16 17:08:23 -05:00
Dan Cuellar 2f8a4da85e Adding reset.bat for Windows
Fixes #580
2013-05-14 16:34:27 -07:00
Dan Cuellar 8b7138aa16 Fixing Android fast-reset to work with Windows 2013-05-14 16:34:27 -07:00
Dan Cuellar 8267234279 Android Works on Windows (must use --no-reset) 2013-05-14 07:51:13 -07:00
Dan Cuellar d03ea5376c Windows Support for building and installing Android Bootstrap 2013-05-13 11:40:25 -07:00