A usage guide to test websites hosted on localhost, staging and private environments.
Once you’ve enabled Local Testing, start a Live session, and enter the website
address in the remote browser’s address bar (for instance, localhost:3000
).
Browse as you would on your own device.
localhost
URLs
will automatically change to http://bs-local.com
. This lets us load your
website assets properly. Remember to ensure that your local server is configured
to serve requests from bs-local.com
You can securely test websites hosted on private or internal servers on our remote browsers and devices with Local Testing. To enable this, follow the steps below:
Start a Live session. In the toolbar dock, click on the Local Testing icon and check Resolve all URLs through my network option. This option ensures that all the requests on our remote browsers and devices are routed through your device.
Establish the Local Testing connection with a --force-local
flag. This ensures
that all the requests on our remote browsers and devices are routed through
your device.
BrowserStackLocal --key YOUR_ACCESS_KEY --force-local
Learn more about enabling Local Testing with the Local binary here
You can test local websites with SSL certificates on our remote browsers and devices through Local Testing.
Once you’ve enabled Local Testing, start a Live session and enter the website
address in the remote browser’s address bar (for instance:
https://localhost:3000
or https://staging.example.com
). Browse as you would
on your own machine.
You can test local websites with assets on multiple internal or public servers,
with Local Testing. For example, staging.example.
com could have content hosted
on assets1.staging.example.com
, certain public servers, and
assets2.staging.example.com
.
Once you’ve enabled Local Testing, the content will render as expected - no changes required. Just enter the website address in the remote browser’s address bar and browse as you would on your own machine. There’s no additional setup required.
You can test your HTML files on BrowserStack, without first hosting them internally or locally with Local Testing.
To enable Folder Testing, you’ll need to establish the Local Testing connection with an added –folder flag, along with the absolute path of your HTML file.
BrowserStackLocal --key YOUR_ACCESS_KEY --folder <absolute_path_to_html_file>
After enabling Folder testing, you’ll need your account’s Local Folder URL.
Your Local Folder URL will be formatted as http://YOUR_USERNAME.browserstack.com
.
This Local Folder URL can only be accessed by BrowserStack remote machines.
You can also find your account’s Local Folder URL by following the steps below:
Contact our Support team for immediate help while we work on improving our docs.
Contact our Support team for immediate help while we work on improving our docs.
Thank you for your valuable feedback!