Using Testrunner Toolkit
Sauce Labs Testrunner Toolkit is designed to support native Javascript frameworks through a containerized testing solution that simplifies user set up and speeds up test execution time.
This approach combines the power and expressiveness of different test frameworks with the dashboards, infrastructure, and analytics of Sauce Labs.
Most importantly, by running these tests through Sauce Labs, you can:
- Run tests using popular JavaScript frameworks: Cypress, Playwright, and TestCafe.
- Take advantage of low latency provided by a containerized solution
- Review, share, and evaluate your test assets, such as logs, test results, and test videos
- Use our Insights feature to perform deeper analysis of test outcomes
- Take advantage of other Sauce-specific options as development continues, including VMs, parallelization, and so on
#
How to Get StartedTo get started quickly, please see this page.
#
How it WorksTestrunner Toolkit achieves JavaScript framework testing through the combination of Sauce Labs, Jest, and the JavaScript framework of your choice.
#
Supported Frameworks and BrowsersIn the current beta, the toolkit supports the following frameworks: Cypress, Playwright, and TestCafe. The specific framework you use for testing depends on the types of tests you need to run, and the environment where you run the tests.
Furthermore, the framework and browser version support depends on the Sauce Labs docker images. The table below indicates framework and browser support based on the requisite docker image tag.
note
Each docker image tag is the 'latest' image that supports the specific framework version
- Cypress
- Playwright
- TestCafe
Cypress Version | Supported Browsers | Release Notes | Sauce Cloud Support [?] |
---|---|---|---|
5.6.0 | Please see release notes. | saucelabs/sauce-cypress-runner | Windows 10 |
Playwright Version | Supported Browsers | Release Notes | Sauce Cloud Support [?] |
---|---|---|---|
1.7.1 | Please see release notes. | saucelabs/sauce-playwright-runner |
TestCafe Version | Supported Browsers | Release Notes | Sauce Cloud Support [?] |
---|---|---|---|
1.11.0 | Please see release notes. | saucelabs/sauce-testcafe-runner | |
1.8.5 | Please see release notes. | saucelabs/sauce-testcafe-runner |
#
Workflow OverviewBelow are the general steps for executing tests with Testrunner Toolkit. For further information, follow the links below:
- Download and Install
saucectl
- Authenticate with your Sauce Labs Credentials
- Generate a Configuration File and Tests Directory
- Run the Tests
- Analyze Test Results on Sauce Labs
#
Common Use CasesBelow are some example user journeys and use cases that Testrunner Toolkit supports.
#
Sample TestsIf you're starting from scratch and don't have any tests currently running as a part of your development workflow, saucectl
will automatically generate an example test when you choose an automation framework and run the initial command. From there you can modify or expand upon the existing test.
#
Existing TestsIf you already have existing tests in your project (like say in cypress
for example), you can simply download and install saucectl
, modify the existing configuration, and run your existing tests.
#
Pipeline TestsIf you wish to run saucectl
as part of your DevOps CI toolchain, you can add it in your workflow by following one of our CI integration guides.
#
Additional ResourcesTo learn more about the tools associated with this project please see the links below:
- Jest: https://jestjs.io/
- Cypress: https://github.com/cypress-io/cypress
- The Microsoft Playwright project: https://github.com/microsoft/playwright
- TestCafe: https://devexpress.github.io/testcafe/
Visit the links below to view information and release notes regarding the docker images' contents: