You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Craig Fowler edited this page Feb 1, 2018
·
1 revision
Sauce Labs integration
WebDriverExtras provides a few features which aid in the integration with Sauce Labs remote web drivers.
What is Sauce Labs
Sauce Labs is a cloud-based provider of browser platforms, useful for continuous integration (CI) testing.
To use Sauce Labs you would typically start up your web application on a local web server, activate the Sauce Connect proxy (so that the remote web browser can connect to your application) and then connect to a remote web driver on Sauce Labs servers.
Using WebDriverExtras
WebDriverExtras provides a web driver factory which offers native integration with some of Sauce Labs features, including:
Decorating the test run with a build name
Decorating the test scenario with a scenario name
Offering an API to send test success or failure information
Those first two are achieved just by using SauceConnectDriverFactory. The corresponding factory options class exposes a property for the build name. Also, a scenario name may always be passed to the factory when creating a web driver.
The last of these is accomplished via the interface ICanReceiveScenarioStatus, like so: