Search code examples
browserstack

How to run BrowserStackLocal for website behind firewall


I'm trying to run my tests against a url that is behind our firewall.

I run this command:

./BrowserStackLocal [KEY] -force &

And then I run my tests:

py.test blah blah

In BrowserStack I see this error:

enter image description here

I must be doing something wrong when running the BrowserStackLocal binary, but I can't figure out what.

Any ideas?


Solution

  • To access the local servers on BrowserStack Automate, you can follow these steps:

    1. Setup the Local Testing connection by executing the Local Testing binaries.

    2. Add the capability 'browserstack.local' = true in your scripts.

    It seems you have done Step 1, have you added the capability as well?