Socket
Socket
Sign inDemoInstall

testcafe-browser-provider-cbt-official

Package Overview
Dependencies
235
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    testcafe-browser-provider-cbt-official

crossbrowsertesting TestCafe browser provider plugin.


Version published
Weekly downloads
27
increased by12.5%
Maintainers
1
Install size
22.2 MB
Created
Weekly downloads
 

Readme

Source

testcafe-browser-provider-crossbrowsertesting

Build Status

This plugin integrates TestCafe with the CrossBrowserTesting Cloud.

Install

npm install testcafe-browser-provider-cbt-official

Usage

Before using this plugin, save the CrossBrowserTesting username and auth key to environment variables CBT_TUNNELS_USERNAME and CBT_TUNNELS_AUTHKEY.

Setting Environment Variables for Mac OS X/Linux

In Terminal mode, enter vi ~/.bash_profile, and then press Enter. Press i to insert text into your profile file. Enter these lines:

export CBT_TUNNELS_USERNAME="your crossbrowsertesting username/email address"
export CBT_TUNNELS_AUTHKEY="your crossbrowsertesting auth key"

Press Escape. Hold Shift and press Z twice (z z) to save your file and quit vi. In the terminal, enter source ~/.bash_profile.

Check available browsers

You can determine the available browser aliases by running

testcafe -b cbt-official

Run tests

When you run tests from the command line, use the alias when specifying browsers:

testcafe "cbt-official:Internet Explorer@11:Windows 10" "path/to/test/file.js"

When you use API, pass the alias to the browsers() method:

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('cbt-official:Internet Explorer@11:Windows 10')
    .run();

Configuration

Use the following environment variables to set additional configuration options:

  • CBT_BUILD - Number of the build within your test to get a high-level view of build performance.
  • CBT_RECORD_VIDEO - Start a video recording of your screen during the test session. (max length 10 minutes)
  • CBT_RECORD_NETWORK - Start a recording of your network packets during the test session.
  • CBT_MAX_DURATION - By default, a test will have a maximum run time of 600 seconds (10 minutes). If you need more time you can change that by passing the max_duration capability along with a value.The highest value is 14400 seconds (4 hours). More details
  • CBT_CHROME_ARGS - Extra arguments to pass to Chrome. e.g. --autoplay-policy=no-user-gesture-required

Debugging

Having trouble with the plugin? Set the following environment variable to get additional logging:

export CBT_DEBUG=true

Keywords

FAQs

Last updated on 27 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc