DevExpress / testcafe-browser-provider-saucelabs

This is the Sauce Labs browser provider plugin for TestCafe.

Home Page:https://devexpress.github.io/testcafe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run testcafe test on Saucelabs

bryant-sfdo opened this issue · comments

Trying to run the following on saucelabs with testcafe. All my test are failing, but wanted to isolate the issue here:

test.js

fixture`Test`.page("https://www.google.com");

test("Just Wait", async t => {
  await t.wait(100000);
});

command I ran after configuring the correct values for SAUCE_ACCESS_KEY and SAUCE_USERNAME.

testcafe "saucelabs:Chrome@68.0:Windows 10" test.js

This use to work about 2 weeks ago. Test just hangs forever and I see the following on Saucelabs:

image

See the following browser error:

Unable to forward this request at this time

client error (ERR_CANNOT_FORWARD)

This request could not be forwarded to the origin server or to any parent caches.

Works when running test locally.

Both of these are installed globally:
testcafe-browser-provider-saucelabs@1.3.1
testcafe@0.21.1

Hi @bryant-sfdo!

Unfortunately I can't reproduce the issue, but I did some research on this problem. The error text shown in the browser looks like a Squid (caching web server) error - a message in the Squid's mailing list about the error, and looks like that Sauce Connect (tunneling software that allows you to test your local site on Saucelabs Cloud machines) uses Squid internally.

So likely the problem is in the Sauce Connect, so I suggest you to start it manually (Sauce Connect docs), start a Manual Testing session on Saucelabs, and connect a Manual Session's browser to TestCafe as a remote.

It seems like it could be related to saucelabs. I can't repro the issue anymore as of today. I didn't change anything and now it works locally and everywhere. Next time I see this I'll follow up with SauceLabs.

Thanks!