DevExpress / testcafe-browser-provider-browserstack

This is the BrowserStack browser provider plugin for TestCafe.
https://testcafe.io
MIT License
86 stars 65 forks source link

a qustion regarding local testing and testcafe proxy #210

Closed vasilyevi closed 11 months ago

vasilyevi commented 11 months ago

Hello, I'm trying to run my tests on BS on a real device. My web app is published and accessible from the globe. I would like to use BROWSERSTACK_NO_LOCAL: "1", but on browserstack it says "Trying to test a private URL?" image

Why does that happen? Does it mean there is no way to turn off local testing at all?

And one more question. I would like to specify BROWSERSTACK_LOCAL_IDENTIFIER, but once I execute the tests, the execution fails with Error: API error 13: [browserstack.local] is set to true but local testing through BrowserStack is not connected. Without works fine. BROWSERSTACK_ACCESS_KEY is set. What I do wrong?

AlexKamaev commented 11 months ago

Please refer to the following thread to read the full discussion related to your question: https://github.com/DevExpress/testcafe/issues/3757

And one more question. I would like to specify BROWSERSTACK_LOCAL_IDENTIFIER , but once I execute the tests, the execution fails with Error: API error 13: [browserstack.local] is set to true but local testing through BrowserStack is not connected. Without works fine. BROWSERSTACK_ACCESS_KEY is set. What I do wrong?

I'm not familiar with such an error. It looks like BrowserStack requires BrowserStackLocal enabled, but there is no connection for some reason. I believe this question is more related to BrowserStack than to TestCafe.

vasilyevi commented 11 months ago

Your TestCafe machine should have a public IP address or domain name in order to run tests without establishing a BrowserStack Local tunnel What does that mean?

AlexKamaev commented 11 months ago

TestCafe runs locally on your machine, even when your website is public. This means that BrowserStack needs to have access to your local machine. BrowserStack can reach your machine only if it has a public IP address/domain name; otherwise, you need to use BrowserStackLocal.