Sauce Labs Integration
Estimated reading time: 1 minute
Sauce Labs for Web testing
Create a Sauce Labs custom profile
Go to Project > Settings. Under the Plugins section in the left menu, you will see Sauce Labs Integration if the plugin has been installed.
The form on the right allows you to enter your credentials, your desired Sauce Labs operating environments and systems.
- API Key: use an API Key generated from Sauce Labs User Settings.
- Username: your username displayed in Sauce Labs.
Click Generate Sauce Labs Custom Profile to finalize your profile. Now you can use the newly created profile to execute tests.
It is important to keep in mind that the default custom profile will be named saucelabs_default. Additionally, only profiles with name saucelabs_customProfileName will be recognized as Sauce Labs profile.
Execute a test case with Sauce Labs profile
Open a test case
Click the Run button (Command + Shift + A)
Select Custom capabilities
Select your Sauce Labs profile
Execute a test suite with Sauce Labs profile
Execute a test suite collection with Sauce Labs profile
On Sauce Labs Dashboard, under Automated Tests tab the following result is displayed
Sauce Labs for Mobile testing and Hybrid application testing
The plug-in provides you with an intuitive user interface to create Sauce Labs custom profiles for Web Testing. However you can still manually add properties that will make it possible for mobile and hybrid application testing. The generated custom profiles will be available as below:
You can access and add capabilities to your profile. You will need to add specific capabilities that follow Sauce Labs's official document on mobile/hybrid application testing.