Quantcast
Channel: Developer Express Inc.
Viewing all articles
Browse latest Browse all 2370

TestCafe and BrowserStack: Run tests everywhere!

$
0
0

Marion from our support team for all things JavaScript – she knows more than me, I kid you not – has written this excellent article about the new support for BrowserStack in the 13.2 version of TestCafé. “BrowserStack”, what’s that? was my immediate reaction, coupled with a blank look, but Marion explains all:


We took great care to ensure that our TestCafe framework is easy to use no matter how you intend to test your applications. And now we’ve published our new testcafe-browserstack npm module, I am thrilled to let you know that testing your applications in all existing desktop and mobile browsers is now a breeze.

How? BrowserStack, FTW!

The testcafe-browserstack module allows you to create a tunnel between your machine and the BrowserStack network. Once a local tunnel is created, you can test your internal or external websites in BrowserStack remote browsers as easily as you would in your local browser. A nice capability, isn’t it?

Here are the three simple steps you need to follow in order to run your tests in the browsers listed on BrowserStack:

1. Install the TestCafe-BrowserStack module

Use the following command line to install the module from npm:

npm install testcafe-browserstack

2. Connect a worker

Get the sample code from here and create a new worker in TestCafe.

3. Enjoy!

Check whether you wish to run your tests with all the browsers installed on your machine or just in BrowserStack remote browsers or both.

To learn more about how to install and use the testcafe-browserstack module, read the following support article: TestCafe - How to add remote workers from the BrowserStack web service

Summary

Use the powerful TestCafe framework to create functional tests for your application. Then, run your tests in all browsers and on all devices of your choosing using BrowserStack.  A win-win for all!


Viewing all articles
Browse latest Browse all 2370

Trending Articles