Commit Graph

43 Commits

Author SHA1 Message Date
Jonathan Lipps 27d482074c Merge pull request #1679 from bootstraponline/shell
Fix appium shell
2014-01-03 01:14:46 -08:00
bootstraponline f603af0684 Fix appium shell
node appium.js --shell
2013-12-26 21:09:30 -05:00
Jonathan Lipps 31bd697cf4 add ability to set launch timeout from the command line so it can be used in conjunction with pre-launch 2013-12-20 10:57:42 -08:00
Jonathan Lipps 42bd48bc36 actually, selendroid does need to support a few mobile methods as it turns out! cc @rockbot 2013-12-19 15:43:48 -08:00
Jonathan Lipps e08970b75d Merge pull request #1657 from jlipps/safari7
Safari on iOS 7
2013-12-19 13:36:21 -08:00
Jonathan Lipps eefb31edfc Merge pull request #1634 from grz0/master
Catch SyntaxError exception and log nice error message
2013-12-18 15:56:27 -08:00
Jonathan Lipps c9b6f55739 Merge pull request #1645 from rockbot/master
politely informs user that mobile commands don't work in selenium
2013-12-18 15:56:02 -08:00
grz0 f23748c29d Catch SyntaxError exception and log nice error message 2013-12-19 00:01:50 +01:00
Jonathan Lipps a4f82c31cd remove safari launcher as strategy for safari + sim 2013-12-18 14:03:30 -08:00
Jonathan Lipps 4a1cc2580c refactor instruments and add appium-internal flake support
This commit constitutes a pretty big refactor of the instruments
process handler. It also introduces a server flag, '--backend-retries',
with a default of '3', which specifies how many times Appium will retry
launching instruments before giving up and saying that it crashed or
timed out. This works in concert with launchTimeout, of course.

I think this refactor also fixes some longstanding callback reasoning
errors and maybe some other bugs.

It might also introduce some bugs of its own though :-)
2013-12-18 13:34:49 -08:00
rockbot 91caf798f7 politely informs user that mobile commands don't work in selenium
adds extra test to ensure it's the mobile: error message that's getting sent
2013-12-18 11:43:29 -08:00
Jonathan Lipps 24e899bdca make sure show-config works with npm (fix #1630) 2013-12-17 11:10:48 -08:00
Jonathan Lipps 1ebc3dd655 make sure we don't start FQInstruments on non-mac or mac < 10.9 (fix #1585) 2013-12-10 13:36:43 -08:00
Jonathan Lipps abe22334b1 refactor server/main
and add --merciful flag to avoid the force quit instruments watcher
2013-12-10 13:25:58 -08:00
Jonathan Lipps 4e3caf7043 Merge pull request #1602 from bootstraponline/master
Pipe force quit logs to console
2013-12-10 12:30:18 -08:00
bootstraponline 5181bb90dd Pipe force quit logs to console
info: [ForceQuitUnresponsiveApps] 2013-12-10 15:11:16.424 ForceQuitUnresponsiveApps[56799:507] Force quit unresponsive instruments v0.0.1
info: [ForceQuitUnresponsiveApps] 2013-12-10 15:11:42.708 ForceQuitUnresponsiveApps[56799:507] Force quitting: 'freeze2' at 'file:///Users/user/ForceQuitUnresponsiveApps/freeze2/./bin/freeze2.app/Contents/MacOS/instruments'
2013-12-10 15:12:11 -05:00
Jonathan Lipps 7b770c8411 add lots more tests for command timeout
testing setting via desired caps as well
also, make it so passing in 'false' also disables timeout
2013-12-10 11:46:07 -08:00
Matt Isaacs d0a1968fd0 Setting newCommandTimeout capability to 0 disables timeout. 2013-12-10 12:31:27 -05:00
Jonathan Lipps 6319f734b8 allow user to let instruments launch device with --default-device 2013-12-09 14:44:23 -08:00
Jonathan Lipps 0edd3a629d make sure --show-config doesn't crash main server :-) 2013-12-09 14:39:51 -08:00
Jonathan Lipps 52bb752773 add --show-config flag to show appium config, and include server build time 2013-12-09 14:13:42 -08:00
Jonathan Lipps 99f0c16d9a make sure we don't discount web locators in webviews 2013-12-04 12:24:31 -08:00
Jonathan Lipps f4477adfd1 fail sooner if user passes in a bad locator strategy (fix #1539) 2013-12-04 09:48:55 -08:00
bootstraponline eaa6cb3d18 Recover from unresponsive instruments process
Register for kCGSNotificationAppUnresponsive and if the process is Instruments then terminate it.
This enables Appium to continue even when instruments is unresponsive. The current behavior is to wait forever.

To test this feature works properly, run ./instruments.sh from https://github.com/appium/ForceQuitUnresponsiveApps

instruments.sh will launch a process that's unresponsive and appium will force quit the process. The unresponsive process can be visually confirmed by using OS X Activity Monitor.
2013-12-03 14:07:38 -05:00
Dan Cuellar 94f4e3eb69 select your iOS Simulator Device 2013-11-18 14:46:11 -08:00
Curtis Siemens 3d58646824 Adding the ability to get node path out of .appiumconfig (for users who modify .appiumconfig) 2013-11-14 17:37:00 -08:00
bootstraponline 338c54664f Merge pull request #1467 from paymand/log_no_colors
Make sure there's no color in the console output when --log-no-colors is used.
2013-11-14 13:18:48 -08:00
Payman Delshad 0c85864f43 Make sure there's no color in the console output when --log-no-colors is used. 2013-11-13 20:26:18 +01:00
Dan Cuellar 7b1e1badce Set iOS Simulator Language using ios-sim-locale from https://code.google.com/p/ios-sim-locale/ 2013-11-11 13:01:10 -08:00
Jonathan Lipps 1209d4b22a make sure command timeout is reset for proxied devices too (fix #1404) 2013-11-01 10:19:45 -07:00
Jonathan Lipps f73a030ad9 add logging initialization in bin/appium so npm will work (fix #1381) 2013-10-29 14:40:15 -07:00
Jonathan Lipps 3ba0e3f0c6 add --log-timestamp and --log-no-colors options
also clean up and consolidate logging code
2013-10-28 16:36:32 -07:00
Jonathan Lipps 805c55d464 command timeouts should be handled centrally by appium, not by each device 2013-10-28 11:39:50 -07:00
Jonathan Lipps b537c4ae71 remove confusing multiple session handling code
it doesn't actually do anything and was cruft
also, make session overriding non-default based on the mobile
JSONWP discussions
2013-10-28 11:39:50 -07:00
Payman Delshad 6aeb26574f Don't set Content-Length header for http POSTs with empty body. 2013-10-25 19:20:28 +02:00
Jonathan Lipps 4ae0cd9c28 upgrade express so we don't get warning messages 2013-10-24 10:49:33 -07:00
Payman Delshad 85f0b3aa73 (Android) Don't uninstall the app on fast reset. 2013-10-24 14:58:09 +02:00
Jonathan Lipps 64f5619331 move uiauto stuff into ios/ and extract status and xpath libs 2013-10-17 12:33:48 -07:00
Jonathan Lipps 3373f2ec46 upgrade npm packages 2013-10-17 10:30:12 -07:00
Jonathan Lipps 8a4641bb83 grid register belongs with server 2013-10-17 10:30:11 -07:00
Jonathan Lipps 9d323a3a35 move logic common to devices into devices dir 2013-10-17 10:30:11 -07:00
Jonathan Lipps 2878e62aa5 move more functionality into server/ 2013-10-17 10:30:11 -07:00
Jonathan Lipps 31c49f590d move server-related stuff into lib/server 2013-10-17 10:30:11 -07:00