- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
SauceLabsIntegration
WebDriverExtras provides a few features which aid in the integration with Sauce Labs remote web drivers.
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.
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:
var receivesStatus = webDriver as ICanReceiveScenarioStatus;
if(receivesStatus != null)
    receivesStatus.MarkScenarioAsSuccess();