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 on 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 test batch execution screen 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||platformName||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.
|Browser version||browserVersion||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
|OS||platformName||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 7)
Figure 7 SauceLabs test results screen
Command line execution
Using the method here, you can also batch run tests from the command line. Although the linked instructions are for the mobile application, the operation procedure is the same for the web application.
Running tests in relation to multiple types of devices as a batch
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.