Miss any of our Open RFC calls?Watch the recordings here! »

@wdio/crossbrowsertesting-service

6.1.14 • Public • Published

WebdriverIO CrossBrowserTesting Service

A WebdriverIO service that manages local tunnel and job metadata for CrossBrowserTesting users.

Installation

The easiest way is to keep @wdio/crossbrowsertesting-service as a devDependency in your package.json.

{
    "devDependencies": {
        "@wdio/crossbrowsertesting-service": "^5.0.0"
    }
}

Or simply run:

npm install  @wdio/crossbrowsertesting-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

In order to use the service you need to set user and key in your wdio.conf.js file, and set the host option to hub.crossbrowsertesting.com. If you want to use CrossBrowserTesting Tunnel you just need to set cbtTunnel: true.

// wdio.conf.js
export.config = {
    // ...
    userprocess.env.CBT_USERNAME,
    keyprocess.env.CBT_AUTHKEY,
    services: [
        ['crossbrowsertesting', {
            cbtTunneltrue,
            cbtTunnelOpts: {
                // any additional options from cbt_tunnels
            },
        }]
    ],
    // ...
};

Options

In order to authorize to the CrossBrowserTesting service your config needs to contain a user and key option.

cbtTunnel

If true secure CBT local connection is started.

Type: Boolean
Default: false

cbtTunnelOpts

Any additional options to pass along to the start() function of cbt_tunnels

Type: Object
Default: {}


For more information on WebdriverIO see the homepage.

Install

npm i @wdio/crossbrowsertesting-service

DownloadsWeekly Downloads

458

Version

6.1.14

License

MIT

Unpacked Size

33.7 kB

Total Files

13

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar