Commit Graph
50 Commits
Author SHA1 Message Date
Jonathan Lipps c10c243760 feat: add ability for drivers to update server and add method maps like plugins
also ensure that each session gets its own plugin instances so plugins for different sessions can't share state
2021-02-23 14:41:09 -08:00
Jonathan Lipps 601a6f785b feat: add --keep-alive-timeout CLI arg to adjust server keepalive and connection timeout 2020-12-15 11:01:08 -08:00
Jonathan Lipps 7bd8f15c39 Merge branch 'master' into 2.0, most importantly by applying argparse 2.x updates 2020-11-17 16:16:51 -08:00
Jonathan Lipps 1f50580fdc chore: use appium2 version of base driver (#14772) 2020-10-02 09:45:06 -07:00
dependabot-preview[bot]andMykola Mokhnach 163b34dc2f chore(deps): bump argparse from 1.0.10 to 2.0.1 (#14687)
Bumps [argparse](https://github.com/nodeca/argparse) from 1.0.10 to 2.0.1.
- [Release notes](https://github.com/nodeca/argparse/releases)
- [Changelog](https://github.com/nodeca/argparse/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/argparse/compare/1.0.10...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Mykola Mokhnach <mokhnach@gmail.com>
2020-09-02 22:01:20 +02:00
Jonathan Lipps 8bb644d874 feat: allow use of --plugins=all to activate all plugins, and show helpful startup text 2020-08-31 13:30:49 -07:00
Jonathan Lipps ce165a1b92 feat: restrict plugin activation to plugins enabled using --plugins=p1,p2 flag 2020-08-31 13:30:49 -07:00
Jonathan Lipps 3dd63175c5 feat: allow installed plugins to modify server, method map, and act as command handlers 2020-08-31 13:30:49 -07:00
Jonathan Lipps 2f56309f77 feat: add plugin CLI subcommands 2020-08-31 13:30:49 -07:00
Jonathan Lipps 6eafdf63a6 refactor: generalize DriverConfig into ExtensionConfig and make DriverConfig a special case of it 2020-08-31 13:30:49 -07:00
Jonathan Lipps e1e23a77a6 refactor: move all cli related functionality into a cli dir 2020-06-11 12:52:24 -07:00
Jonathan Lipps ae19b5133e refactor: separate parser logic and cli args more clearly 2020-06-10 07:16:38 -07:00
Jonathan Lipps 9d9823258c refactor: address various code issues and move to ora for cli spinner 2020-06-10 07:16:38 -07:00
Jonathan Lipps 0410572573 refactor: move various driver cli bits into classes 2020-06-10 07:16:38 -07:00
Jonathan Lipps 7294f9d8b4 feat: add --appium-home (alias --home, -ah) to allow setting location of appium dir
fix: install and require driver modules from appium home dir instead of appium node package

refactor: use toPairs instead of Object.keys wherever possible

refactor: move driver data validation to a better

refactor: make a server-parser file to mirror driver-parser

feat: change install source arg to --source. Also add unit tests for driver parser

feat: use yaml for driver manifest format instead of json

feat: add schema version to yaml format
2020-06-10 07:16:38 -07:00
Jonathan Lipps bb0313ce1a breaking change: do not depend directly on drivers anymore
instead look for a reference to them in a drivers json file which will be
managed by the appium driver cli tool. this is a WIP and tests are not yet fixed

(breaking change)

feat: add driver CLI and subcommands; start to implement them beginning with list

feat: enable showing possible updates during 'driver list'

feat: enable installation of drivers via 'driver install'

feat: enable installation of drivers via local, git, and github specs

fix: lint and unit test updates to get everything passing

fix: make sure travis installs fakedriver

refactor: move cli helpers into own file and clean up driver json validation
2020-06-10 07:16:38 -07:00
Mykola Mokhnach 2033ce6c55 feat: Add server command line option for logs filtering (#14239) 2020-04-29 09:39:55 +02:00
Mykola Mokhnach 30c8cb353f feat: Make sure all active sessions are cleaned up properly after a termination signal is received (#13913) 2020-02-05 07:48:09 +01:00
Jonathan Lipps 4d406d128d feat: add --base-path cli arg which allows setting a custom route prefix (#13079)
depends on https://github.com/appium/appium-base-driver/pull/346
2019-08-29 14:21:21 -07:00
Jonathan Lipps d9dfa35c00 chore: update imports to use basedriver v4 (#13135)
* chore: update imports to use basedriver v4

* fix: don't use /wd/hub in docs anymore
2019-08-27 18:32:48 -07:00
Mykola Mokhnach 1d2f4d62ac Remove the obsolete --enable-heapdump command line arg (#12609) 2019-05-09 19:27:43 +02:00
Isaac A. Murchie 3fbe003c84 Make heapdump a manual dependency (#12420) 2019-04-02 16:44:38 -07:00
Isaac A. Murchie 8e5ec38d3f Add function names (#12370) 2019-03-22 15:13:02 -04:00
Jonathan Lipps caa40a9366 only allow cors when using a special flag (#11719)
* only allow cors when using a special flag

* add docs about --allow-cors flag
2018-11-22 13:14:51 -08:00
Isaac A. Murchie 7f3f136557 Update appium-gulp-plugins (#11461) 2018-10-03 09:39:25 -04:00
Isaac A. Murchie 7a00b3f875 Clean up argument for long stacktraces (#11174) 2018-08-14 06:25:33 -04:00
Mykola Mokhnach 0774ffcefc Attach server instance to each driver being created (#10400) 2018-03-23 07:39:15 +01:00
Isaac Murchie 3d7dd1e857 Fix logging of caps 2017-11-06 09:21:59 -05:00
Mykola Mokhnach c04c8e4758 Add --enable-heapdump feature (#8176)
* Add possibility to take snapshots of node process memory heap

* Move heapdump to optional dependencies
2017-04-18 12:06:39 -04:00
Isaac Murchie 0142e5a917 Fix formatting of default capabilities 2017-02-14 11:19:49 -05:00
Isaac Murchie 9503b3d03d Once catch signals once 2017-01-05 08:04:29 -05:00
Chris Kruger f43247e38b graceful handling of SIGTERM and SIGINT such that return codes are more in line Unix process exit codes 2016-10-19 17:30:53 +08:00
Jonathan Lipps 02b9fcb30c add option for calling library to have appium throw instead of process.exit 2016-07-19 21:51:05 -07:00
Jonathan Lipps c22c00fb82 add ability for importing package to send in logHandler which can spy on logs
this is necessary for the new appium desktop
2016-07-19 15:03:05 -07:00
Isaac Murchie 5a67708df0 Add ability to use automationName XCUITest 2016-06-22 09:56:45 -07:00
Jonathan Lipps a09e3e00f6 use appium-base-driver instead of mjsonwp/express/proxy 2016-05-19 14:02:12 -07:00
Akhil Lb 4d9c01bced Renaming forgotten pairs to toPairs in lib/main.js
Renaming forgotten pairs to toPairs

Removing unneccessary console.log in logDefaultCapabilitiesWarning
2016-03-22 20:23:22 +05:30
Srinivasan Sekar a62c7f5909 Lo-dash library update to improve js performance
Removed migration library

Removed migration library

updated request-promise to support to lo-dash 4.0

Reverted request promise update till we upgrade bluebird

Dont fix caps (will be done in inner drivers)

reverted other lib updates

Removed helpers as it is moved to base driver

Update dependencies and fix node version

Resolved merge conflicts

Updated lodash after merge conflicts
2016-03-19 00:03:15 +05:30
Jonah Stiennon c35875cc1a log server information before listening on port. 2016-01-05 16:15:53 -08:00
Isaac Murchie 67c7e935ef Fix logging of args and caps 2016-01-05 13:17:46 -08:00
Isaac Murchie c4c7039f6e Add grid registration 2015-11-11 10:48:16 -08:00
Isaac Murchie b31295a7d9 Clean up and fix sync 2015-11-11 10:47:31 -08:00
Isaac Murchie 194f012b6c Move to latest appium-express 2015-10-07 16:01:30 -07:00
Isaac Murchie 8a7a794322 Fix an issue with session deletion 2015-09-30 09:34:29 -07:00
sebv 99551ca9a3 fixes appium bin 2015-09-09 14:19:52 +08:00
Isaac Murchie 1c5c80f084 Deprecate server args that are also desired caps 2015-06-08 09:55:22 -07:00
Jonathan Lipps 84317aaf36 WIP integrating fakedriver for full e2e involving appium and a driver 2015-06-02 18:41:18 +01:00
sebv 1c64bf06c8 logger + logsink 2015-05-27 12:09:22 +08:00
Isaac Murchie f4cd02446b Add tests for config 2015-05-26 09:30:31 -07:00
Jonathan Lipps f925f761f9 port parser, server startup, config, and express 2015-05-21 23:43:31 -07:00