GithubHelp home page GithubHelp logo

joezo / testcafe-browser-provider-crossbrowsertesting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sijosyn/testcafe-browser-provider-crossbrowsertesting

0.0 1.0 0.0 111 KB

This is the CrossBrowserTesting.com browser provider plugin for TestCafe. https://devexpress.github.io/testcafe/

License: MIT License

JavaScript 100.00%

testcafe-browser-provider-crossbrowsertesting's Introduction

testcafe-browser-provider-crossbrowsertesting

Build Status

This plugin integrates TestCafe with the CrossBrowserTesting Cloud.

Install

npm install testcafe-browser-provider-crossbrowsertesting

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 crossbrowsertesting

Run tests

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

testcafe "crossbrowsertesting: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('crossbrowsertesting: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

Author

Sijo Cheeran (https://synacor.com)

testcafe-browser-provider-crossbrowsertesting's People

Contributors

radtuti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.