Commit Graph
75 Commits
Author SHA1 Message Date
bootstraponline 3db97078a0 Fix typo 2013-06-26 09:59:17 -04:00
bootstraponline f3900b3411 Check for null websocket
Fix #744
2013-06-11 17:16:56 -04: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
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
Jonathan Lipps 91c4e05e60 safe javascriptage 2013-04-09 12:02:35 -07:00
Jonathan Lipps d409a20844 better failure behavior 2013-03-29 09:16:37 -07:00
Jonathan Lipps 91ebe5f229 don't set type of real device, and add instruments launch logging 2013-03-28 15:30:27 -07:00
Steven Hazel 223d55b57e oops, export needs the new parameter 2013-03-11 19:13:53 -07:00
Steven Hazel 9a6a484a3e resolve paths relative to __dirname so we don't depend on the cwd 2013-03-11 19:06:38 -07:00
Steven Hazel 6cb36a6878 a better way to clone the environment 2013-03-11 19:03:12 -07:00
Steven Hazel dbd35d1417 adding --without-delay, to use the awesome instruments-without-delay! 2013-03-11 18:10:35 -07:00
Jonathan Lipps eda92dd09f comment out this superfluous logging 2013-03-05 10:07:45 -08:00
Jonathan Lipps f6153e5bef more logging about UDID 2013-02-20 11:32:42 -08:00
Gaige B Paulsen 63bdcd282d Fix #148 leaving domain sockets open
In order to make sure the domain socket closes, we need to close() the
socket server itself, which requires paying attention to its creation
and
2013-02-14 18:12:22 -05:00
Gaige B Paulsen ed432ee127 Fix #148 leaving domain sockets open
In order to make sure the domain socket closes, we need to close() the
socket server itself, which requires paying attention to its creation
and
2013-02-14 18:01:15 -05:00
bootstraponline 64714f3915 Remove commented code 2013-02-14 13:30:46 -05:00
bootstraponline 0412eae8f8 Fix style 2013-02-14 13:12:27 -05:00
Gaige B Paulsen 8ce29bbe89 Object leak removal, and some work at removing the file descriptor leaks coming from the unix domain sockets. 2013-02-14 10:42:59 -05:00
Sebastian Tiedtke 6967643407 Fixing all the lintz! 2013-02-04 14:19:23 -08:00
Sebastian Tiedtke ead7358195 Added bin (npm install -g) for instruments socket client. 2013-02-04 14:11:00 -08:00
Santiago Suarez Ordoñez b69cbe328f Wrapping up execute script with jlipps 2013-02-04 12:38:04 -08:00
Jonathan Lipps 398904be31 initial work on listing web frames/windows via remote debugger 2013-02-01 16:39:16 -08:00
Jonathan Lipps f3c2c38a1d add callFunctionOn capability to remote debugger 2013-02-01 15:34:13 -08:00
Jonathan Lipps e721639d44 fixing lint! 2013-02-01 15:09:58 -08:00
Jonathan Lipps 2000c33b5e refactor remote debugger 2013-02-01 15:05:52 -08:00
Jonathan Lipps ace982a051 playing around with remote debugger for automating webviews 2013-01-31 20:09:19 -08:00
Jonathan Lipps 06a6dcae38 make instruments use same logger as appium 2013-01-29 16:23:12 -08:00
Jonathan Lipps 81fb712c1f up socket client timeout 2013-01-28 20:12:27 -08:00
Sebastian Tiedtke 9a48899e1b Green on black is much easier to read. 2013-01-27 15:06:59 -08:00
Jonathan Lipps a9d58a6ce7 allow loading of app by path or url from desired capabilities
also a lot of stability improvements and error handling
2013-01-25 11:34:57 -08:00
Sebastian Tiedtke f683fc7834 Better debugging: Output the contents of the object instead of the type. 2013-01-24 15:42:26 -08:00
Jonathan Lipps f06ffd6f14 allow instruments to handle data transmissions larger than buffer size 2013-01-24 12:34:21 -08:00
Jonathan Lipps 8ee56988dc downgrade instruments stderr output so it doesn't clutter test output 2013-01-23 16:25:29 -08:00
Jonathan Lipps 1e9fc04306 allow appium to recover from surprise instruments exits, and tests 2013-01-23 16:16:05 -08:00
berni 7ab2c36667 porting '/wd/hub/session/:sessionId/screenshot', update in instruments - creating unique temp dir that is used by UIAutomation to store screenshots, there is some problem with test - socket times out waiting for new command 2013-01-17 02:09:36 +01:00
Sebastian Tiedtke 9f66f0f25a No more plain console.log across node js code. 2013-01-15 19:33:50 -08:00
Jonathan Lipps 16f3f54a25 clean up and refactor instruments 2013-01-15 13:20:41 -08:00
Jonathan Lipps 5abc71c393 modularize instruments client 2013-01-15 12:45:22 -08:00
jeremy avnet ed1a53bcb2 add use strict to client.js (inside the function) 2013-01-15 11:46:19 -08:00
jeremy avnet b1f5bb4922 have grunt lint use js strict mode and fix up the codebase to pass 2013-01-15 11:43:08 -08:00
Jonathan Lipps 1d25789233 fixing lint errors 2013-01-15 11:37:41 -08:00
Sebastian Tiedtke f8ee9f3e1e Made jshint and travis happy. 2013-01-15 11:34:17 -08:00
Jonathan Lipps 2662bdeb30 modify appium so it uses the new, cleaner exit interface with socket-based instruments server 2013-01-15 11:23:59 -08:00
Jonathan Lipps 44fa7a4582 rewrite of instruments to use sockets rather than HTTP 2013-01-15 11:03:04 -08:00
Jonathan Lipps 30b7a4b4b1 added grunt task for building test app 2013-01-14 12:38:06 -08:00
Jonathan Lipps cc4ccb3ae6 add a debug mode to instruments 2013-01-14 12:14:50 -08:00
Jonathan Lipps 2c74fc7df5 instruments organization; add shutdown handler for dealing with trace dirs; more cleanup 2013-01-14 12:06:56 -08:00
Jonathan Lipps 0b5707d3a8 update instruments example with new paths 2013-01-14 11:13:14 -08:00
Jonathan Lipps bb874db84b moving instruments js files to appium 2013-01-14 11:04:07 -08:00
Jonathan Lipps 34e5262f01 various instruments cleanup; also don't think we need artificial delay 2013-01-14 10:51:40 -08:00