SauceLabs is a cloud service that enables you to perform simple manual and automated testing using a variety of browser types and real mobile devices.
It is likely the largest provider of Selenium / Appium test execution Clouds in the industry, providing a full range of features.
Compatible browsers/OS version
You can select and confirm the necessary environment here. The detailed method of use will be described later.
Method of use
First, register your account by clicking the Try it free button on the SauceLabs main page. When you receive an authentication email, click this to log in to SauceLabs. You will then be taken to the dashboard screen shown in figure 1. Your 14-day trial will start from this point.
Figure 1. SauceLabs Dashboard.
Now that the preparations are complete, continue to the batch run settings panel and enter the necessary items as shown in figure 2.
Figure 2. SauceLabs test execution settings.
 Username/access key
Specify the username and access key displayed in ACCOUNT (figure 3) > User settings (figure 4) on the top right of the SauceLabs screen.
Figure 3. ACCOUNT menu.
Figure 4. User Settings.
 Data Center
Set the data center selected when creating the account. This is displayed on the top right of the dashboard.
Set, in general terms, whether the test is for a PC browser or mobile browser.
- Desktop: Test with a normal PC browser.
- Mobile emulation (Chrome): Emulates the iOS or Android browser on Chrome.
- Mobile real device: Test with a browser on an iOS / Android real device. A SauceLabs “Real Device Cloud” browser contract is required.
 Further detailed settings
Referring to the SauceLabs Platform Configurator page(figure 5), specify the information for the environment you wish to use.
- Select the OS/version for the test you wish to run.
- If the device type is Desktop, you can also select the browser type and version.
- If you set the language for CONFIG SCRIPT on the right side as node.js, it will be easier to see the corresponding values.
Figure 5. Platform Configurator.
If you select items in order, the items to be set shall be displayed in the column at the bottom. As this is an example written as code, it is a bit difficult to see, but the correspondence with MagicPod items is as shown below. Note that this may not work if the number of places after the decimal point is different. figure 2 described above shows the configuration on MagicPod according to the options in figure 5.
In the case of a Desktop browser test
|OS and version
|If omitted, this is automatically set as SauceLabs
(Not described in the figure above)
Mandatory input. Select necessary items from the pulldown menu at the top of the MagicPod screen.
|If omitted, this is automatically set as SauceLabs. Since many browsers change versions on a frequent basis, it is convenient to select "latest" if you have no particular preference.
In the case of a Mobile browser test
|Select either iOS or Android
From https://saucelabs.com/platform/supported-browsers-devices, select “Real devices” -> where you can choose the OS.
In addition to the MagicPod test results screen, test results can also be viewed on the SauceLabs screen. On this screen, it is possible to view test logs and videos for tests that are currently being run, as well as those for post-execution tests. (figure 6)
Figure 6. SauceLabs test results screen.
Command line execution
Using the method here, you can also batch run tests from the command line.
Batch test execution for multiple types of devices
Using the method here, you can run tests as a batch for multiple types of devices. Although the linked instructions are for the mobile application, the operation procedure is the same for the web application.
- If Japanese characters are included in the test case name or batch execution setting name, they will not be displayed in the test result name on the SauceLabs web console.