Closed A142170 closed 3 years ago
@A142170
Hello,
I cannot reproduce this issue in my environment: Windows 10, TestCafe v1.14.0, testcafe-browser-provider-saucelabs@1.8.2
, Node.js v15.14.0. I ran this test successfully on my machine. Could you please install and run this test project?
./package.json:
{
"name": "saucelabs-provider-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "npx testcafe \"saucelabs:Chrome@85.0:macOS 10.13\" test.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"testcafe": "^1.14.0",
"testcafe-browser-provider-saucelabs": "^1.8.2"
}
}
./test.js:
fixture `Fixture`
.page('https://google.com');
test('test 1', async t => {
await t.expect(true).ok();
});
test('test 2', async t => {
await t.expect(true).ok();
});
test('test 3', async t => {
await t.expect(true).ok();
});
test('test 4', async t => {
await t.expect(true).ok();
});
Run command:
npm run test
I store Sauce Labs credentials in my environment variables.
Please share your sc-xxxxxxxxxxxxx.log
file. You can find it in a project directory after the test fails.
Thanks for looking into this. The code you have provided is able to connect to Saucelabs. I have come to the conclusion for now, that there is some common dependency between testcafe-browser-provider-saucelabs and other npm libraries I have in my project which might be causing this. I will compare the npm lock files and confirm.
@A142170
Thank you for the clarification. I will close this thread as the issue is related to a specific project and its dependencies. If you still face with this issue after updating project dependencies, feel free to open a new bug report with a minimal working example.
Testcafe: v1.14.0 testcafe-browser-provider-saucelabs: v1.8.2
Receiving the following error on trying to open any browser on any platform:
Printed the Params variable from
saucelabs-connector/lib/index.js:109
:method: 'GET', url: 'https://saucelabs.com/rest/v1/users/A142170/concurrency', username: 'A142170', password: 'Removed Password from here'
Command that was run:
Saucelabs View:
The sauce connect tunnel is established successfully. And then the above error occurs, as soon as the tunnel is ready.
Other Sauce Data Centres:
Tried the EU data centre. exactly the same error. Tunnel is established successfully and then I receive
RequestError: connect ECONNREFUSED 127.0.0.1:443
error