JavaScript Testing API
Learn about the JS Testing API, and the language bindings available.
API overview
BrowserStack HTTPS-based API provides browser-as-a-service. The API that can be used to open any URL, in any combination of browser and OS currently available on BrowserStack.
A common use case of the BrowserStack API is with tools such as Jasmine, QUnit, Mocha, Jest, Yeti, TestSwarm, and more, to automate running your JavaScript tests on the BrowserStack cloud.
You can view the entire list of supported browsers and OSes for JavaScript Testing.
API versions
API version | Status | Changelog |
---|---|---|
5.0 | Active | Added session IDs and dashboard URLs to responses. |
4.0 | Active | Moved all API endpoints to HTTPS. |
3.0 | Retired | Added support for specifying OS versions. |
2.0 | Retired | Added support for Mac OS and mobile devices. |
1.0 | Retired | Automated JS testing for browsers running on Windows. |
Using the API
You can use the JS testing API in one of the following ways:
- Use one of the supported test runners
- Use one of the language bindings for the API
- Use the API directly
Language Bindings
Language bindings are a wrapper over the HTTPS API. The language bindings are currently available in:
HTTPS API
You can alternatively use the HTTPS API directly. Refer to the documentation on the API’s Github repo for details.
Next Steps
- Integrate your JS unit test framework
- Learn how to run your tests from a CI
- Run your tests in parallel to get faster feedback
- Explore the browsers and devices you can test on to gain confidence in your code
- Run your first JS unit test on BrowserStack
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!