58 Commits
Author SHA1 Message Date
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
Dan Cuellar d4bc84f4d3 Completing Android Element Class Map 2013-05-12 15:42:38 -07:00
Jonathan Lipps 3f202442ff make sure readyCb uses err as first argument 2013-05-10 14:15:30 -07:00
bootstraponline 79ca2e2842 Merge pull request #570 from bootstraponline/scroll_into_view
Add scroll_into_view to mobile: find
2013-05-10 08:52:20 -07:00
bootstraponline 4640877b8f Add scroll_into_view to mobile: find
Fix #566
Example. Scroll to an element with text or name matching 'account'

text = 'account'
       # scroll vertical ListView
args = 'scroll',
       # textContains(text)
       [ [3, text] ],
       # descriptionContains(text)
       [ [7, text] ]

mobile :find, args
2013-05-10 09:48:14 -04:00
Jonathan Lipps 08669ce542 allow android to launch app already on device by package name and activity 2013-05-09 12:34:12 -07:00
Jonathan Lipps 3edcadac2d remove @author tags
fix #531
2013-05-08 19:01:24 -07:00
Jonathan Lipps 8244d13b5f have appium use all external binaries/libraries in build/ rather than submodules/
this is so we can easily wrap up build/ say for an npm publish without getting all the submodule code as well
2013-05-07 16:37:29 -07:00
bootstraponline fb70cee88e Fix mobile find
Return proper error when element is not found
Raise runtime exception on disconnect so Appium restarts bootstrap

Fix #541
2013-05-07 12:43:56 -04:00