Configuring WebSummoner
This section describes supported ways of automatic WebSummoner configuration.
WebSummoner can be configured in two ways:
- Using Docker containers (default)
- Using standalone binaries (when
--use-driversis added)
To view the list of available commands:
./cm websummoner --helpTo launch command:
./cm websummoner <command> [args...]Supported commands are:
| Command | Meaning |
|---|---|
args | Print WebSummoner command line arguments |
cleanup | Removes WebSummoner traces |
configure | Creates WebSummoner configuration file (implies download) |
download | Downloads WebSummoner binary or container image |
start | Starts WebSummoner process or container (implies download and configure) |
status | Shows actual configuration status (whether WebSummoner is downloaded, configured or running) |
stop | Stops WebSummoner process or container |
update | Updates WebSummoner and configuration to latest version |
To see supported flags for each command append --help:
./cm websummoner start --helpExample commands
Section titled “Example commands”download command downloads latest or specified WebSummoner release as
standalone binary or container image:
./cm websummoner download --version 1.2.1 --forceThis command does nothing when already downloaded. Use --force flag to
download again.
configure command in addition to downloading WebSummoner also downloads
container images or webdriver binaries and generates configuration file:
./cm websummoner configure --browsers firefox:>45.0;opera:53.0 --last-versions 2 --tmpfs 128Use --browsers to limit browsers to be configured, --tmpfs — to add
Tmpfs support, --last-versions — to
limit how many last browser versions to download. If you wish to download all
available versions — specify --last-versions 0.
start command configures WebSummoner and starts it:
./cm websummoner startBy default WebSummoner data is stored in ~/.websummoner/websummoner but you
can specify another directory using --config-dir flag. To download images
with VNC server (to see live browser screen) use --vnc flag:
./cm websummoner start --vncTo override WebSummoner listen port add --port flag:
./cm websummoner start --port 4445To override WebSummoner startup arguments sessions add --args flag:
./cm websummoner start --args "-limit 10"To download images from private registry — log in with docker login command
and add --registry flag:
docker login my-registry.example.com # Specify user name and password./cm websummoner start --registry https://my-registry.example.comDownloading only some browser versions
Section titled “Downloading only some browser versions”By default CM downloads browser images corresponding to 2 last versions of
Firefox, Chrome and Opera. To download concrete browser versions — use
--browsers flag as follows.
Download concrete versions of Firefox and Chrome:
./cm websummoner start --browsers 'firefox:51.0;firefox:55.0;chrome:66.0'Download a range of Firefox versions and 3 last Opera versions:
./cm websummoner start --browsers 'firefox:>51.0,<=55.0;opera' --last-versions 3Using an existing configuration file
Section titled “Using an existing configuration file”In some cases you may want to configure WebSummoner to use an existing
browsers.json configuration file. This is mainly needed to always use the
same browser versions instead of downloading latest versions. To achieve this:
-
Prepare a desired
browsers.jsonconfiguration file. -
Launch
cmwith--browsers-jsonflag:Terminal window ./cm websummoner start --browsers-json /path/to/browsers.json
Legacy spelling
Section titled “Legacy spelling”cm selenoid … is accepted as an alias of cm websummoner …, so scripts written for
Selenoid keep working unchanged.