3

I am running TestCafe tests and troubleshooting BrowserStack failures related to LocalTesting (https://www.browserstack.com/local-testing). I would like to NOT use LocalTesting in my test runs.

In reading up on TestCafe's BrowserStack plugin and its source code (https://github.com/DevExpress/testcafe-browser-provider-browserstack) I am seeing that LocalTesting is used by default (ref. https://github.com/DevExpress/testcafe-browser-provider-browserstack/blob/9d45bb621cc29d1a3e78cb94d92a32a1f0dff216/src/index.js#L14O).

When I set my config to BROWSERSTACK_NO_LOCAL="TRUE" I am finding that tests time out at the TestCafe initial proxy URL, e.g., http://{host}:{port}/browser/connect/{session}

Is it possible to run TestCafe tests on BrowserStack without LocalTesting?

Alex Skorkin
  • 4,034
  • 3
  • 21
  • 44
Carol M
  • 73
  • 6

2 Answers2

3

Yes, it's possible. To run TestCafe tests on BrowserStack without LocalTesting, you need a machine with a dedicated public IP address. The workflow is the following:  

  • deploy your tested site on the machine using this way: public-ip-address -> root site folder.
  • set BROWSERSTACK_NO_LOCAL="TRUE"
  • set up you test's page urls as public-ip-address/
  • install testcafe-browser-provider-browserstack plugin and run TestCafe with it
mlosev
  • 4,634
  • 1
  • 14
  • 27
0

I brought this question to the github project. As explained in issue 3757, the application under test does not need to be deployed to a machine with a public IP address. In order to avoid BrowserStack's Local Testing, TestCafe must be run on a machine with a public IP address.

Carol M
  • 73
  • 6