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.
For information on mobile app testing, please refer to here.
It is one of the largest providers of Selenium / Appium test execution clouds in the industry, providing a full range of features and good customer support.
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.
[1] 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.
[2] Data Center
Set the data center selected when creating the account. This is displayed on the top right of the dashboard.
[3]Device Type
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.
[4] 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
MagicPod | Platform Configurator | Reference |
OS and version | platformName | If omitted, this is automatically set as SauceLabs |
Browser | browserName (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
MagicPod | Platform Configurator | Reference |
OS | platformName | Select either iOS or Android |
Version | - |
From https://saucelabs.com/platform/supported-browsers-devices, select “Real devices” -> where you can choose the OS. |
Model | - |
Test results
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.
Limitations
- 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.