@rbbn/werkout-startup
v1.0.2
Published
## Description
Downloads
419
Readme
Werkout-Startup
Description
Werkout-Startup is a command-line utility for launching Werkout partners in preparation for a test run. This will start an HTTP server to serve your partner application and launch Chrome and/or Firefox browsers to load the partner app using Selenium. You must provide the script a command to run once the partners are launched. This is intended to be the command to start your tests.
Installation
Latest version:
npm install @rbbn/werkout-startup --save-dev
Usage
Werkout-startup
is used on the command line.
werkout-startup -d ./dist/ -a http://172.28.225.198:4444/wd/hub -c config.json -- karma start
Arguments
| Options | Alias | Description | Type | Required | Default | | ----------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------- | ------- | | --version | | Show version number | boolean | No | N/A | | --directory | -d | The directory to serve content from over HTTP | string | Yes | N/A | | --addr | -a | The address of the Selenium hub | string | Yes | N/A | | --config | -c | A JavaScript configuration file providing an Array of browser configuration objects. For each object, Selenium will attempt to create a Partner and launch the appropriate browser as specified in the object. | string | Yes | N/A | | --key | -k | The path to the key for SSL. Must provide --cert as well. Using these options will cause the server to only accept secure connections. | string | No | N/A | | --cert | -t | The path to the certificate for SSL. Must provide --key as well. Using these options will cause the server to only accept secure connections. | string | No | N/A | | --https | | Defaults to true when cert and key are provided. You may want use --https without providing a cert and key. This is so you can start an http server but point browsers to https if you've setup a proxy that adds SSL between the server and the browser. | boolean | No | false | | --help | -h | Show help | boolean | No | N/A | | --logsDir | | The directory that Partner logs should be saved to after a test case. | string | | No | | N/A |