Reputation: 83
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?
Upvotes: 3
Views: 722
Reputation: 83
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.
Upvotes: 0
Reputation: 5227
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:
public-ip-address
-> root site folder
.public-ip-address
/testcafe-browser-provider-browserstack
plugin and run TestCafe with itUpvotes: 3