LambdaTestAutomation Testing ● npm Plugin For TestCafe Integration With LambdaTest

npm Plugin For TestCafe Integration With LambdaTest

TestCafe offers a comprehensive, and extensive platform to perform End-to-End tests for node.js applications. It supports both JavaScript and Typescript, so you can write tests in either one of the two. With TestCafe, you can create stable tests which are easy to integrate with your continuous integration process. You can also execute multiple test cases in parallel.

LambdaTest, a cloud-based, cross browser testing platform is out with an npm plugin that would allow you to integrate TestCafe with your LambdaTest account. That way, you can expand your test coverage using LambdaTest Selenium Grid of 2000+ real browsers, and browser versions running across various operating systems for mobile, desktop, and tablets. Similar to TestCafe, LambdaTest Selenium Grid also allows you to perform parallel testing.


Important: Visit LambdaTest npm package for TestCafe.

  • Make sure you have your TestCafe Credentials.
  • LambdaTest Authentication Credentials
  • Be aware of your LambdaTest authentication credentials i.e. your LambdaTest username, access key and HubURL. You need to set them up as your environment variables. You can retrieve them from your LambdaTest automation dashboard by clicking on the key icon near the help button.

    • For Linux/Mac:
    • For Windows:

Install LambdaTest npm plugin For TestCafe

Use the below command for installing the npm plugin to integrate LambdaTest with TestCafe.

How To Use npm Plugin For LambdaTest & TestCafe Integration?

To acknowledge all available browsers aliases offered by LambdaTest Selenium Grid, type the below command:

To execute the test from cmd/terminal by declaring the browsers and operating systems to test:

If you are using API, then you need to declare the aliases inside your browser() method:

Additional Configuration Parameters

Note: TestCafe integration with LambdaTest does not support Geolocation testing.

In case you wish to make some additional configurations to your automation test scripts then you can incorporate the below variables:

Variable Description
LT_TEST_NAME To specify a name to your test on LambdaTest Selenium Grid.
LT_BUILD To specify a name to your build on LambdaTest Selenium Grid.
LT_CAPABILITY_PATH To specify the path of a JSON file that declares additional Desired Capabilities. Here, Chrome@63.0:Windows 8.1 represents browser alias.
LT_RESOLUTION to perform cross browser testing on a specific screen resolution in the ${width}x${height} format.
LT_LOGFILE Presents detailed logs of your automation script execution. 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 Set flag for verbose to either true or false
LT_PROXY_HOST A mandatory variable if you wish to perform cross browser testing through proxy. This variable is where you need to declare the hostname/IP of proxy.
LT_PROXY_PORT Port of the proxy. Default value for proxy port would be 3128.
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
LT_CONSOLE Set flag as true or false.
LT_NETWORK Set flag as true or false.
LT_VIDEO Set flag as true or false.
LT_SCREENSHOT Set flag as true or false.
LT_TIMEZONE Configure tests to run on a custom time zone.