npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

testcafe-browser-provider-lambdatest

v3.0.1

Published

lambdatest TestCafe browser provider plugin.

Downloads

10,949

Readme

npm Plugin For TestCafe Integration With LambdaTest

Testcafe Health Check

This plugin integrates TestCafe with the LambdaTest Testing Cloud.

Install

$ npm install testcafe-browser-provider-lambdatest

Usage

Before using this plugin, save the LambdaTest username and access key to environment variables LT_USERNAME and LT_ACCESS_KEY, as described in LambdaTest Documentation.

You can determine the available browser aliases by running

$ testcafe -b lambdatest

If you run tests from the command line, use the browser alias when specifying browsers: For Single Configuration

$ testcafe "lambdatest:[email protected]:Windows 8" "path/to/test/file.js"

For Parallel/Multiple Configuration

$ testcafe "lambdatest:[email protected]:Windows 8","lambdatest:[email protected]:Windows 10" "path/to/test/file.js"

For Real Devices

$ testcafe "lambdatest:Galaxy S8@9:android:isReal" "path/to/test/file.js"
Not valid for real Devices: ---
                              v

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

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('lambdatest:[email protected]:Windows 8')
    .run();

Build Plugin Locally (Development Mode)

  1. Clone this repository,
  2. Rename Project
$ mv testcafe-browser-provider-lambdatest lambdatest
  1. Go to the project path
$ cd lambdatest
  1. Install Packages and Build
$ npm i
$ npm run build
  1. Link Testcafe with lambdatest
$ sudo npm link
  1. See this for Credentials

Configuration

Use the following environment variables to set additional configuration options:

  • LT_TEST_NAME - Test name on LambdaTest.

  • LT_BUILD - Build name on LambdaTest.

  • LT_CAPABILITY_PATH - Path to a file which contains additional capability options as JSON file (eg. config.json)

    {
        "[email protected]:Windows 8.1": {
            "network": true,
            "visual": true,
            "timezone": "UTC+11:00"
        }
    }
  • LT_RESOLUTION - allows setting the screen resolution for desktop browsers in the ${width}x${height} format.

  • LT_LOGFILE - Logfile You can provide a specific path to this file. If you won't provide a path then the logs would be saved in your present working directory by the filename: tunnel.log.

  • LT_VERBOSE - true or false.

  • LT_MITM - true or false.

  • LT_W3C - true or false.

  • LT_ENABLE_TRACE - true or false.

  • LT_PROXY_HOST - Hostname/IP of proxy, this is a mandatory value.

  • LT_PROXY_PORT - Port for the proxy, by default it would consider 3128 if proxyhost is used For Basic Authentication, we use the below proxy options.

  • LT_PROXY_USER - Username for connecting to proxy, mandatory value for using 'proxypass'.

  • LT_PROXY_PASS - Password for the USERNAME option.

  • LT_TUNNEL_NAME - Human readable tunnel identifier (Name of the tunnel).

  • LT_DIR - Path of the local folder you want to test.

  • LT_SELENIUM_VERSION - Browser specific capability (Not for Real Devices)

  • LT_CONSOLE - true or false.

  • LT_NETWORK - true or false.

  • LT_VIDEO - true or false.

  • LT_SCREENSHOT - true or false.

  • LT_TIMEZONE - Configure tests to run on a custom time zone. (Not for Real Devices)

  • LT_TUNNEL_NUMBER - Number of tunnel to be spawned at a time.

  • LOAD_BALANCED_MODE - Load balancing between multiple tunnels spawned.

  • LOG_LT_SESSION_URL - true or false, to log all the session urls.

  • LT_SESSION_LOG_PATH - Configure the specific path for the .txt file containing session urls.

Example:

export LT_RESOLUTION="1920x1080"
export LT_TEST_NAME="Test TestCafe"
export LT_BUILD="Build x"
testcafe "lambdatest:Chrome","lambdatest:[email protected]:Windows 8" tests/
LT_TIMEZONE
LT_SELENIUM_VERSION
LT_RESOLUTION

Above are not valid for real devices

About LambdaTest

LambdaTest is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your selenium automation testing to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.

License

Licensed under the MIT license.