wdio-trueautomation-service
v0.4.2
Published
TrueAutomation.IO integration for webdriver.io
Downloads
7
Readme
WDIO TrueAutomation.IO Service
This service allows to run TrueAutomation.IO tests with the WDIO TestRunner. It should be used with trueautomation-helper module.
Installation
The easiest way is to keep wdio-trueautomation-service
as a devDependency in your package.json
.
{
"devDependencies": {
"wdio-trueautomation-service": "~0.4"
}
}
You can simple do it by:
npm install wdio-trueautomation-service --save-dev
Instructions on how to install WebdriverIO
can be found here.
Configuration
In order to use the service you need to add trueautomation
to your service array:
// wdio.conf.js
export.config = {
// ...
services: ['trueautomation'],
// ...
};
Remote webdriver
By default TrueAutomation.IO works only with local webdrivers managed by its client.
To connect to remote webdriver use remote
option in wdio.conf.js
:
// wdio.conf.js
export.config = {
// ...
services: ['trueautomation'],
remote: true,
hostname: 'example.com',
port: 4444
// ...
};
In this case TrueAutomation.IO client will be started locally on port 9151 and connect to remote webdriver specified in wdio config options.
Options
trueautomationLog
Path to logfile
Type: String
Default: log/trueautomation-${Date.now()}.log
trueautomationPort
Port that truautomation
will be listen to
Type: Integer
Default: 9515
driver
TrueAutomation.IO driver to use
Type: String
Default: chromedriver
driverVersion
TrueAutomation.IO driver version to use
Type: String
Default: latest